2011-12-17 13:05:59 +01:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
2011-12-17 13:05:59 +01:00
|
|
|
# spec file for package dateutils
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
2011-12-17 13:05:59 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: dateutils
|
2012-03-24 21:01:31 +01:00
|
|
|
Version: 0.1.10
|
2011-10-21 18:24:23 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Nifty command line date and time utilities
|
2011-12-17 13:05:59 +01:00
|
|
|
License: BSD-3-Clause
|
2011-10-21 18:24:23 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2012-03-24 21:01:31 +01:00
|
|
|
Url: https://github.com/hroptatyr/dateutils/
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
# is upstream merged
|
|
|
|
Patch1: dateutils-0.1.10-byteswap.patch
|
2011-10-21 18:24:23 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-03-24 21:01:31 +01:00
|
|
|
BuildRequires: xz
|
2011-10-21 18:24:23 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Requires(pre): info
|
2011-12-17 13:05:59 +01:00
|
|
|
|
2011-10-16 19:15:15 +02:00
|
|
|
%description
|
2011-10-21 18:24:23 +02:00
|
|
|
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).
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
This package contains the header and source files needed for
|
|
|
|
compiling programs using the %{name} libraries.
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-03-24 21:01:31 +01:00
|
|
|
%patch1 -p1
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%build
|
2011-10-21 18:24:23 +02:00
|
|
|
%configure --docdir=%{_docdir}/%{name}
|
|
|
|
make V=1
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%install
|
2011-10-21 18:24:23 +02:00
|
|
|
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%check
|
|
|
|
make check
|
2011-10-16 20:17:19 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
# How to make that info stuff portable?
|
|
|
|
%if 0%{?install_info:1} > 0
|
2011-10-16 20:22:48 +02:00
|
|
|
|
2011-10-16 19:15:15 +02:00
|
|
|
%post
|
2011-10-21 18:24:23 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info*
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info*
|
|
|
|
%endif
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%files
|
2011-10-21 18:24:23 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
2011-10-23 16:20:56 +02:00
|
|
|
%{_bindir}/[dt]*add
|
|
|
|
%{_bindir}/[dt]*conv
|
|
|
|
%{_bindir}/[dt]*diff
|
|
|
|
%{_bindir}/[dt]*grep
|
|
|
|
%{_bindir}/[dt]*seq
|
|
|
|
%{_bindir}/[dt]*test
|
|
|
|
%{_bindir}/strptime
|
|
|
|
%doc %{_infodir}/%{name}.info*
|
|
|
|
%doc %{_mandir}/man1/[dt]*add.1*
|
|
|
|
%doc %{_mandir}/man1/[dt]*conv.1*
|
|
|
|
%doc %{_mandir}/man1/[dt]*diff.1*
|
|
|
|
%doc %{_mandir}/man1/[dt]*grep.1*
|
|
|
|
%doc %{_mandir}/man1/[dt]*seq.1*
|
|
|
|
%doc %{_mandir}/man1/[dt]*test.1*
|
|
|
|
%doc %{_mandir}/man1/strptime.1*
|
2011-10-21 18:24:23 +02:00
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/dateutils/
|
2011-10-23 16:20:56 +02:00
|
|
|
%{_libdir}/pkgconfig/libdu[dt]*core.pc
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%changelog
|