86 lines
2.2 KiB
RPMSpec
86 lines
2.2 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: dateutils
|
|
Version: 0.1.5
|
|
Release: 0
|
|
Summary: Command-line Tools for fiddling with Dates and Times
|
|
# https://github.com/downloads/hroptatyr/dateutils/dateutils-%{version}.tar.xz
|
|
Source: dateutils-%{version}.tar.bz2
|
|
URL: http://hroptatyr.github.com/dateutils/
|
|
Group: Productivity/Text/Utilities
|
|
License: BSD3c
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: gcc make glibc-devel pkgconfig
|
|
BuildRequires: autoconf automake libtool
|
|
Requires(post): info
|
|
Requires(pre): info
|
|
|
|
%description
|
|
Dateutils are a bunch of tools that revolve around fiddling with dates and
|
|
times in the command line, with a strong focus on use cases that arise when
|
|
dealing with large amounts of financial data. Their target market is shell
|
|
scripts that need date calculations or calendar conversions, and as such they
|
|
are highly pipe-able and modeled after their well-known cousins (e.g. dtest vs.
|
|
test, or dgrep vs. grep).
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export CCFLAGS="$CFLAGS"
|
|
%configure
|
|
%__make %{?_smp_flags} V=1 CFLAGS="$CFLAGS"
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
# needed on RHEL6, Mandriva, Fedora
|
|
%__rm -f "%{buildroot}%{_infodir}/dir"
|
|
|
|
%__rm -rf "%{buildroot}%{_includedir}/dateutils"
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%post
|
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}.info"*
|
|
|
|
%preun
|
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}.info"*
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{_bindir}/dcal
|
|
%{_bindir}/dseq
|
|
%{_bindir}/ttest
|
|
%{_bindir}/strptime
|
|
%{_bindir}/tadd
|
|
%{_bindir}/dadd
|
|
%{_bindir}/tdiff
|
|
%{_bindir}/dgrep
|
|
%{_bindir}/dtest
|
|
%{_bindir}/tseq
|
|
%{_bindir}/tgrep
|
|
%{_bindir}/ddiff
|
|
%{_bindir}/tcal
|
|
%doc %{_mandir}/man1/dcal.1*
|
|
%doc %{_mandir}/man1/ttest.1*
|
|
%doc %{_mandir}/man1/strptime.1*
|
|
%doc %{_mandir}/man1/dtest.1*
|
|
%doc %{_mandir}/man1/tadd.1*
|
|
%doc %{_mandir}/man1/dseq.1*
|
|
%doc %{_mandir}/man1/tseq.1*
|
|
%doc %{_mandir}/man1/tcal.1*
|
|
%doc %{_mandir}/man1/dadd.1*
|
|
%doc %{_mandir}/man1/tdiff.1*
|
|
%doc %{_mandir}/man1/tgrep.1*
|
|
%doc %{_mandir}/man1/dgrep.1*
|
|
%doc %{_mandir}/man1/ddiff.1*
|
|
%doc %{_infodir}/%{name}.info*
|
|
|