dateutils/dateutils.spec
Ismail Dönmez 5a5d9bd066 Accepting request 220697 from home:rudi_m
- bump version 0.2.7, this is a feature release. 
  * Features:
    - dgrep supports -v|--invert-match like grep
    - output specifier %G is supported for compatibility with POSIX
    - ddiff calculates year-day differences
    - ddiff calculates ISO-week date differences
    - ddiff output can be zero and space padded through 0 and SPC
      modifier
    - zoneinfo database on AIX >= 6.1 is taken into account
  * Bug fixes:
    - ddiff can calculate full year differences, [issue 21][1] fixed
    - dseq now accepts %W, %V output formats, [issue 22][2] fixed
    - builds with clang >= 3.3 work again, [clang bug 18028][3]
  * See info page examples and/or README.
    [1]: https://github.com/hroptatyr/dateutils/issues/21
    [2]: https://github.com/hroptatyr/dateutils/issues/22
    [3]: http://llvm.org/bugs/show_bug.cgi?id=18028

OBS-URL: https://build.opensuse.org/request/show/220697
OBS-URL: https://build.opensuse.org/package/show/utilities/dateutils?expand=0&rev=26
2014-02-04 12:46:02 +00:00

113 lines
3.1 KiB
RPMSpec

#
# spec file for package dateutils
#
# Copyright (c) 2014 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define xversion 0.2.7
Name: dateutils
Version: 0.2.7
Release: 0
Summary: Nifty command line date and time utilities
License: BSD-3-Clause
Group: Productivity/Text/Utilities
Url: https://github.com/hroptatyr/dateutils/
Source: https://bitbucket.org/hroptatyr/dateutils/downloads/%{name}-%{version}.tar.xz
BuildRequires: pkgconfig
BuildRequires: xz
%if 0%{?suse_version}
BuildRequires: timezone
%endif
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).
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
This package contains the header and source files needed for
compiling programs using the %{name} libraries.
%prep
%setup -q -n %{name}-%{xversion}
%build
%configure --docdir=%{_docdir}/%{name}
make V=1
%install
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
rm -f %{buildroot}%{_infodir}/dir
%check
if ! make check; then
cat test/test-suite.log
exit 1
fi
%clean
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 %{_docdir}/%{name}
%{_bindir}/dadd
%{_bindir}/dconv
%{_bindir}/ddiff
%{_bindir}/dgrep
%{_bindir}/dround
%{_bindir}/dseq
%{_bindir}/dtest
%{_bindir}/strptime
%doc %{_infodir}/%{name}.info*
%doc %{_mandir}/man1/%{name}.1*
%doc %{_mandir}/man1/dadd.1*
%doc %{_mandir}/man1/dconv.1*
%doc %{_mandir}/man1/ddiff.1*
%doc %{_mandir}/man1/dgrep.1*
%doc %{_mandir}/man1/dround.1*
%doc %{_mandir}/man1/dseq.1*
%doc %{_mandir}/man1/dtest.1*
%doc %{_mandir}/man1/strptime.1*
%files devel
%defattr(-,root,root,-)
%{_includedir}/dateutils/
%{_libdir}/libdut.a
%{_libdir}/pkgconfig/libdut.pc
%changelog