2016-08-30 03:55:35 +00:00
Name : fmt
2017-06-24 16:44:14 +00:00
Version : 3.0.2
2018-07-13 00:42:58 +00:00
Release : 6%{?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
2016-12-29 05:12:16 +00:00
Source0 : https://github.com/fmtlib/fmt/archive/%{version} .tar.gz#/%{name}-%{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/
Patch0 : fmt_build_doc_system.patch
2017-08-10 04:04:26 +00:00
# See https://github.com/fmtlib/fmt/issues/551
Patch1 : fmt_test8_segfault.patch
2016-08-30 03:55:35 +00:00
%if 0%{?rhel}
2018-07-09 17:06:44 +00:00
BuildRequires : gcc
BuildRequires : gcc-c++
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
2016-12-30 05:14:32 +00:00
BuildRequires : python2-sphinx
BuildRequires : python2-breathe
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 static
Summary : Header only development files for %{name}
Requires : %{name} -devel%{?_isa} = %{version} -%{release}
%description static
This package contains the files for using %{name} as a header only library.
%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
cd build
cmakeopts=" - D F M T _ L I B _ D I R = % { _ l i b } - D F M T _ C M A K E _ D I R = %{_datarootdir} / c m a k e / %{name} "
# NOTE: Specifying CMAKE_SKIP_RPATH=OFF is so it will link properly on RHEL 6
# See https://bugzilla.redhat.com/show_bug.cgi?id=640672
%if 0%{?rhel}%{?fedora} == 6
cmakeopts=" $ c m a k e o p t s - D C M A K E _ S K I P _ R P A T H = O F F "
%endif
%if 0%{?rhel}
%cmake3 \
%else
%cmake \
%endif
$cmakeopts ..
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
make %{?_smp_mflags} all doc
# Remove temporary build products
rm -rf ../build/doc/html/{.buildinfo,.doctrees}
2016-08-30 03:55:35 +00:00
%install
make -C build install DESTDIR=%{buildroot}
%check
make -C build test
%files
%{_libdir} /libfmt.so.*
%{!?_licensedir:%global license %%doc }
%license LICENSE.rst
%files devel
%{_includedir} /fmt/
%{_libdir} /libfmt.so
%{_datarootdir} /cmake/fmt/
%files static
%{_includedir} /fmt/format.cc
%{_includedir} /fmt/ostream.cc
%{_includedir} /fmt/ostream.h
%{_includedir} /fmt/posix.h
%{_includedir} /fmt/time.h
%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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
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