2016-08-30 03:55:35 +00:00
Name : fmt
2019-06-10 12:52:17 +00:00
Version : 5.3.0
Release : 1%{?dist}
2016-08-30 03:55:35 +00:00
Summary : Small, safe and fast formatting library for C++
License : BSD
URL : https://github.com/fmtlib/fmt
2018-10-26 04:08:59 +00:00
Source0 : https://github.com/fmtlib/fmt/archive/%{version} .tar.gz
2016-12-30 05:14:32 +00:00
# See https://github.com/fmtlib/fmt/issues/443 and https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LVKYLDLJVWAVJE4MQVKDO6PYZRD5MCP6/
2018-10-13 03:06:43 +00:00
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
2016-08-30 03:55:35 +00:00
2018-07-09 17:06:44 +00:00
BuildRequires : gcc
BuildRequires : gcc-c++
2018-07-24 14:11:32 +00:00
%if 0%{?rhel} && 0%{?rhel} <= 7
2016-08-30 03:55:35 +00:00
BuildRequires : cmake3
%else
BuildRequires : cmake
%endif
2016-12-29 05:12:16 +00:00
# For building documentation
BuildRequires : doxygen
BuildRequires : nodejs-less
2018-10-13 03:06:43 +00:00
%if 0%{?fedora}
BuildRequires : python3-sphinx
BuildRequires : python3-breathe
%else
2016-12-30 05:14:32 +00:00
BuildRequires : python2-sphinx
BuildRequires : python2-breathe
2018-10-13 03:06:43 +00:00
%endif
2016-08-30 03:55:35 +00:00
# This package replaces the old name of cppformat
Provides : cppformat = %{version} -%{release}
Obsoletes : cppformat < %{version} -%{release}
2016-12-30 05:14:57 +00:00
%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.
2016-08-30 03:55:35 +00:00
%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} .
%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} .
%prep
%autosetup -p1
%build
mkdir build
2018-10-13 03:06:43 +00:00
pushd build
2018-07-24 14:11:32 +00:00
%if 0%{?rhel} && 0%{?rhel} <= 7
2018-10-13 03:06:43 +00:00
%cmake3 .. \
2016-08-30 03:55:35 +00:00
%else
2018-10-13 03:06:43 +00:00
%cmake .. \
2016-08-30 03:55:35 +00:00
%endif
2018-10-13 03:06:43 +00:00
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
2018-10-26 04:04:54 +00:00
-DFMT_CMAKE_DIR=%{_datadir} /cmake/%{name} \
2018-10-13 03:06:43 +00:00
-DFMT_LIB_DIR=%{_libdir}
2016-12-29 05:12:16 +00:00
# Remove --clean-css since that plugin isn't available
sed -i " s / ' - - c l e a n - c s s ' , / / " ../doc/build.py
2018-10-13 03:06:43 +00:00
%make_build all doc
2016-12-29 05:12:16 +00:00
# Remove temporary build products
2018-10-13 03:06:43 +00:00
rm -rf ../build/doc/html/{.buildinfo,.doctrees,objects.inv}
2016-08-30 03:55:35 +00:00
%install
2018-10-13 03:06:43 +00:00
%make_install -C build
2016-08-30 03:55:35 +00:00
2018-10-26 04:04:54 +00:00
%ldconfig_scriptlets
2016-08-30 03:55:35 +00:00
%check
2018-10-13 03:06:43 +00:00
pushd build
ctest -VV %{?_smp_mflags}
popd
2016-08-30 03:55:35 +00:00
%files
2018-10-26 04:04:54 +00:00
%{_libdir} /libfmt.so.5*
2016-08-30 03:55:35 +00:00
%{!?_licensedir:%global license %%doc }
%license LICENSE.rst
2018-10-13 03:06:43 +00:00
%doc ChangeLog.rst README.rst
2016-08-30 03:55:35 +00:00
%files devel
%{_includedir} /fmt/
%{_libdir} /libfmt.so
2018-10-26 04:04:54 +00:00
%{_datadir} /cmake/fmt/
2019-06-10 12:52:17 +00:00
%{_datadir} /pkgconfig/fmt.pc
2016-08-30 03:55:35 +00:00
%files doc
2016-12-29 05:12:16 +00:00
%doc %{_datadir} /doc/fmt/
2016-08-30 03:55:35 +00:00
%license doc/python-license.txt
%changelog
2019-06-10 12:52:17 +00:00
* Mon Jun 10 2019 Jan Staněk <jstanek@redhat.com> - 5.3.0-1
- Update to 5.3.0
- Recreate documentation build patches
- Package new pkg-config files
2019-01-31 19:56:29 +00:00
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-13 03:06:43 +00:00
* Thu Oct 11 2018 Kefu Chai <tchaikov@gmail.com> - 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
2018-08-31 14:16:39 +00:00
* Fri Aug 31 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.0.2-7
- Fix python2 issue for doc
2018-07-13 00:42:58 +00:00
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-02-07 09:55:17 +00:00
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-08-10 04:04:26 +00:00
* Wed Aug 09 2017 Dave Johansen <davejohansen@gmail.com> - 3.0.2-4
- Patch for Test 8 segfault
2017-08-02 20:41:16 +00:00
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2017-07-26 08:34:09 +00:00
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-24 16:44:14 +00:00
* Sat Jun 24 2017 Dave Johansen <davejohansen@gmail.com> - 3.0.2-1
- Upstream release
2017-05-15 19:48:58 +00:00
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
2016-12-29 05:12:16 +00:00
* Tue Dec 27 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.1-2
- Build documentation
2016-11-30 02:25:28 +00:00
* Fri Nov 25 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.1-1
- Upstream release
2016-11-16 02:52:08 +00:00
* Tue Nov 15 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.0-2
- Fix expected unqualified-id before numeric constant error
2016-08-30 03:55:35 +00:00
* Wed Aug 24 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.0-1
- Initial RPM release