]> git.pld-linux.org Git - packages/dateutils.git/blob - dateutils.spec
- up to 0.4.7
[packages/dateutils.git] / dateutils.spec
1 Summary:        Command-line date and time calculation, conversion, and comparison
2 Name:           dateutils
3 Version:        0.4.7
4 Release:        1
5 License:        BSD
6 Group:          Applications/Console
7 Source0:        https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.xz
8 # Source0-md5:  41b11e705802768356abc4e1e9920055
9 Patch0:         %{name}-no-sysctl-h.patch
10 URL:            http://www.fresse.org/dateutils/
11 BuildRequires:  autoconf
12 BuildRequires:  automake
13 BuildRequires:  libtool
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Tools which revolve around fiddling with dates and times on the
18 command line, with a strong focus on use cases that arise when dealing
19 with large amounts of financial data.
20
21 %prep
22 %setup -q
23 %patch0 -p1
24
25 %build
26 %{__libtoolize}
27 %{__aclocal}
28 %{__autoconf}
29 %{__autoheader}
30 %{__automake}
31 %configure \
32         --disable-silent-rules \
33         --without-old-links \
34
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 %{__make} install \
40         DESTDIR=$RPM_BUILD_ROOT
41
42 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
43 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
50
51 %preun
52 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
53
54 %files
55 %defattr(644,root,root,755)
56 %doc LICENSE README.md
57 %attr(755,root,root) %{_bindir}/*
58 %{_mandir}/man1/*
59 %{_infodir}/%{name}*
60 %dir %{_datadir}/%{name}
61 %{_datadir}/%{name}/*.tzmcc
62 %{_datadir}/%{name}/locale
This page took 0.109534 seconds and 4 git commands to generate.