From 0bb38409d76919b0eb15c6458d9381dd2fd9feb2 Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Jun 02 2020 14:01:50 +0000 Subject: initial release for ceph-15 Signed-off-by: Kaleb S. KEITHLEY --- diff --git a/.fmt.metadata b/.fmt.metadata new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.fmt.metadata diff --git a/README.md b/README.md new file mode 100644 index 0000000..5e22e29 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +This is a dist-git like repo for Ceph + +The master brach is unused. Use an existing branch instead. +Branch names follow convention like `c-sig-storage-ceph-VERSION>` +as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags] +(https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags) + +* c8-sig-storage-ceph-octopus: CentOS-8 +* ... + +Instructions for building the ceph package for the CentOS Storage SIG +can be found in the following places: + +* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem) +* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster) + + +E.g. build the src.rpm with: + $ rpmbuild -bs \ + --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \ + --define "dist .el8" SPECS/fmt.spec + +To build: + + $ `cbs build [--scratch] storage8-ceph-octopus-el8 fmt-6.2.1-1.el8.src.rpm` + + diff --git a/SPECS/fmt.spec b/SPECS/fmt.spec new file mode 100644 index 0000000..a4f2e92 --- /dev/null +++ b/SPECS/fmt.spec @@ -0,0 +1,190 @@ +%bcond_with doc +Name: fmt +Version: 6.2.1 +Release: 1%{?dist} +Summary: Small, safe and fast formatting library for C++ + +License: BSD +URL: https://github.com/fmtlib/%{name} +Source0: %{url}/archive/%{version}.tar.gz +# See https://github.com/fmtlib/fmt/issues/443 and https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LVKYLDLJVWAVJE4MQVKDO6PYZRD5MCP6/ +Patch1: doc-build-removed-all-pip-internet-stuff.patch +Patch3: doc-build-do-not-create-virtual-environment.patch +Patch4: doc-_templates-layout-stripped-Google-Analytics.patch +Patch5: doc-_templates-layout-stripped-download-links.patch +Patch6: doc-index-removed-GitHub-iframe.patch +Patch7: doc-build-use-sphinx-build-3.patch +Patch8: doc-build-use-python3.patch + +BuildRequires: gcc +BuildRequires: gcc-c++ +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: cmake3 +%else +BuildRequires: cmake +%endif +%if %{with doc} +BuildRequires: doxygen +BuildRequires: nodejs-less +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: python%{python3_version_nodots}-sphinx +BuildRequires: python%{python3_version_nodots}-breathe +%else +BuildRequires: python3-sphinx +BuildRequires: python3-breathe +%endif +%endif + +# This package replaces the old name of cppformat +Provides: cppformat = %{version}-%{release} +Obsoletes: cppformat < %{version}-%{release} + +%description +C++ Format is an open-source formatting library for C++. It can be used as a +safe alternative to printf or as a fast alternative to IOStreams. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +# This package replaces the old name of cppformat +Provides: cppformat-devel = %{version}-%{release} +Obsoletes: cppformat-devel < %{version}-%{release} + +%description devel +This package contains the header file for using %{name}. + +%if %{with doc} +%package doc +Summary: Documentation files for %{name} +License: Python +BuildArch: noarch + +# This package replaces the old name of cppformat +Provides: cppformat-doc = %{version}-%{release} +Obsoletes: cppformat-doc < %{version}-%{release} + +%description doc +This package contains documentation for developer documentation for %{name}. +%endif + +%prep +%autosetup -p1 +mkdir build + +%build +pushd build +%if 0%{?rhel} && 0%{?rhel} <= 7 +%cmake3 .. \ +%else +%cmake .. \ +%endif + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \ + -DFMT_LIB_DIR=%{_libdir} + +%if %{with doc} +# Remove --clean-css since that plugin isn't available +sed -i "s/'--clean-css',//" ../doc/build.py +%make_build all doc +# Remove temporary build products +rm -rf ../build/doc/html/{.buildinfo,.doctrees,objects.inv} +%endif + +%install +%make_install -C build + +%check +pushd build +ctest -VV %{?_smp_mflags} +popd + +%files +%license LICENSE.rst +%doc ChangeLog.rst README.rst +%{_libdir}/lib%{name}.so.6* + +%files devel +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_datadir}/cmake/%{name} +%{_libdir}/pkgconfig/%{name}.pc + +%if %{with doc} +%files doc +%doc %{_datadir}/doc/%{name} +%license doc/python-license.txt +%endif + +%changelog +* Sat May 09 2020 Vitaly Zaitsev - 6.2.1-1 +- Updated to version 6.2.1. + +* Thu Apr 30 2020 Kefu Chai - 6.2.0-2 +- Incorporate patch from upstream to address https://github.com/fmtlib/fmt/issues/1631 + +* Mon Apr 06 2020 Vitaly Zaitsev - 6.2.0-1 +- Updated to version 6.2.0. + +* Tue Jan 28 2020 Fedora Release Engineering - 6.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Dec 18 2019 Vitaly Zaitsev - 6.1.2-1 +- Updated to version 6.1.2. +- Recreated all documentation patches. +- SPEC file cleanup. + +* Thu Jul 25 2019 Fedora Release Engineering - 5.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 10 2019 Jan Staněk - 5.3.0-1 +- Update to 5.3.0 +- Recreate documentation build patches +- Package new pkg-config files + +* Thu Jan 31 2019 Fedora Release Engineering - 5.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Oct 11 2018 Kefu Chai - 5.2.1-1 +- Update to 5.2.1 +- Build using python3 packages on fedora +- Remove links in document accessing network +- Package ChangeLog.rst and README.rst +- Drop fmt-static package + +* Fri Aug 31 2018 Leigh Scott - 3.0.2-7 +- Fix python2 issue for doc + +* Fri Jul 13 2018 Fedora Release Engineering - 3.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 3.0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 09 2017 Dave Johansen - 3.0.2-4 +- Patch for Test 8 segfault + +* Wed Aug 02 2017 Fedora Release Engineering - 3.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jun 24 2017 Dave Johansen - 3.0.2-1 +- Upstream release + +* Mon May 15 2017 Fedora Release Engineering - 3.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild + +* Tue Dec 27 2016 Dave Johansen - 3.0.1-2 +- Build documentation + +* Fri Nov 25 2016 Dave Johansen - 3.0.1-1 +- Upstream release + +* Tue Nov 15 2016 Dave Johansen - 3.0.0-2 +- Fix expected unqualified-id before numeric constant error + +* Wed Aug 24 2016 Dave Johansen - 3.0.0-1 +- Initial RPM release