1 Summary: A date and time library based on the C++11/14/17 <chrono> header
6 Group: Development/Libraries
7 Source0: https://github.com/HowardHinnant/date/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: c76681532f87644c59c19938961bc85c
9 Patch0: %{name}-cmake.patch
10 URL: https://howardhinnant.github.io/date/date.html
11 BuildRequires: cmake >= 3.7
12 BuildRequires: libstdc++-devel >= 6:5
13 BuildRequires: rpmbuild(macros) >= 1.605
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 A date and time library based on the C++11/14/17 <chrono> header.
21 Summary: Header files for date library
22 Group: Development/Libraries
23 Requires: %{name} = %{version}-%{release}
26 Header files for date library.
36 -DUSE_SYSTEM_TZ_DB:BOOL=ON \
37 -DBUILD_TZ_LIB:BOOL=ON
41 rm -rf $RPM_BUILD_ROOT
43 %{__make} -C build install \
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
49 %post -p /sbin/ldconfig
50 %postun -p /sbin/ldconfig
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_libdir}/libdate-tz.so.*.*.*
56 %ghost %{_libdir}/libdate-tz.so.3
59 %defattr(644,root,root,755)
60 %dir %{_includedir}/date
61 %{_includedir}/date/date.h
62 %{_includedir}/date/tz.h
64 %{_libdir}/libdate-tz.so