]> git.pld-linux.org Git - packages/date.git/blame - date.spec
up to 3.0.1
[packages/date.git] / date.spec
CommitLineData
13ef38fc
JP
1Summary: A date and time library based on the C++11/14/17 <chrono> header
2Name: date
082be010 3Version: 3.0.1
13ef38fc
JP
4Release: 1
5License: MIT
6Group: Development/Libraries
7Source0: https://github.com/HowardHinnant/date/archive/v%{version}/%{name}-%{version}.tar.gz
082be010 8# Source0-md5: 78902f47f7931a3ae8a320e0dea1f20a
13ef38fc
JP
9URL: https://howardhinnant.github.io/date/date.html
10BuildRequires: cmake >= 3.7
11BuildRequires: libstdc++-devel >= 6:5
12BuildRequires: rpmbuild(macros) >= 1.605
13Requires: tzdata
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17A date and time library based on the C++11/14/17 <chrono> header.
18
19%package devel
20Summary: Header files for date library
21Group: Development/Libraries
22Requires: %{name} = %{version}-%{release}
23
24%description devel
25Header files for date library.
26
27%prep
28%setup -q
13ef38fc
JP
29
30%build
31install -d build
32cd build
33%cmake .. \
34 -DUSE_SYSTEM_TZ_DB:BOOL=ON \
35 -DBUILD_TZ_LIB:BOOL=ON
36%{__make}
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
41%{__make} -C build install \
42 DESTDIR=$RPM_BUILD_ROOT
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
061e53ff
JP
47%post -p /sbin/ldconfig
48%postun -p /sbin/ldconfig
49
13ef38fc
JP
50%files
51%defattr(644,root,root,755)
52%doc README.md
53%attr(755,root,root) %{_libdir}/libdate-tz.so.*.*.*
54%ghost %{_libdir}/libdate-tz.so.3
55
56%files devel
57%defattr(644,root,root,755)
58%dir %{_includedir}/date
59%{_includedir}/date/date.h
60%{_includedir}/date/tz.h
61%{_libdir}/cmake/date
62%{_libdir}/libdate-tz.so
This page took 0.082671 seconds and 4 git commands to generate.