SHA256
1
0
forked from pool/dateutils

This is a spec file rewrite, taken from home:rudi_m:

- bump version 0.1.6, note that tcal and dcal has been renamed to
   tconv and dconv
 - add devel package
 - minimize BuildRequires
 - actually enable tests
 - minor formatting changes
 - use globbing for executable file list because we expect some more to
   be added in next releases

OBS-URL: https://build.opensuse.org/package/show/utilities/dateutils?expand=0&rev=6
This commit is contained in:
Ruediger Meier 2011-10-21 16:24:23 +00:00 committed by Git OBS Bridge
parent 63448d293e
commit ab4b9fbdd0
2 changed files with 77 additions and 70 deletions

View File

@ -1,5 +1,10 @@
-------------------------------------------------------------------
Sun Oct 16 17:15:47 CET 2011 - pascal.bleser@opensuse.org
Fri Oct 21 14:00:41 UTC 2011 - sweet_f_a@gmx.de
- initial version (0.1.5)
- bump version 0.1.6
-------------------------------------------------------------------
Wed Sep 14 21:34:27 UTC 2011 - sweet_f_a@gmx.de
- initial package datetools 0.1.2

View File

@ -1,85 +1,87 @@
# vim: set sw=4 ts=4 et nu:
#
# rpm spec file
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
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
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dateutils
Version: 0.1.6
Release: 0
License: BSD
Summary: Nifty command line date and time utilities
Url: https://github.com/hroptatyr/dateutils
Group: Productivity/Text/Utilities
Source: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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).
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.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
export CCFLAGS="$CFLAGS"
%configure
%__make %{?_smp_flags} V=1 CFLAGS="$CFLAGS"
%configure --docdir=%{_docdir}/%{name}
make V=1
%install
%makeinstall
# needed on RHEL6, Mandriva, Fedora
%__rm -f "%{buildroot}%{_infodir}/dir"
%__rm -rf "%{buildroot}%{_includedir}/dateutils"
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
rm -f %{buildroot}%{_infodir}/dir
%check
%__make test
%post
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}.info"*
%preun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}.info"*
make check
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
rm -rf %{buildroot}
# How to make that info stuff portable?
%if 0%{?install_info:1} > 0
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info*
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info*
%endif
%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*
%defattr(-,root,root,-)
%doc README
%{_bindir}/*
%doc %{_infodir}/*.info*
%doc %{_mandir}/man1/*.1*
%files -n %{name}-devel
%defattr(-,root,root,-)
%{_includedir}/dateutils/
%{_libdir}/pkgconfig/libdu*.pc
%changelog