File project.diff of Package dateutils

--- dateutils.changes.orig
+++ dateutils.changes
@@ -65,41 +65,30 @@ Tue Mar 19 06:06:21 UTC 2019 - mvetter@s
 -------------------------------------------------------------------
 Fri Sep 21 14:14:26 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
 
-- Simplify conditions
-- Run spec-cleaner
-
--------------------------------------------------------------------
-Thu Sep 20 11:08:48 UTC 2018 - bwiedemann@suse.com
-
-- Update to 0.4.5:
-  * dgrep accepts %c as qualifier in expressions (issue 81)
-  * tests work regardless of wall clock time (issue 84)
-
--------------------------------------------------------------------
-Sat Aug 25 18:31:39 UTC 2018 - jengelh@inai.de
-
-- Ensure neutrality of descriptions.
-- Trim idempotent %if..%endif guards.
-
+- bump version 0.4.5
+  * Bugfixes:
+    - dgrep accepts %c as qualifier in expressions (issue 81)
+    - tests work regardless of wall clock time (issue 84)
+ 
 -------------------------------------------------------------------
-Tue Aug 14 10:42:17 UTC 2018 - mvetter@suse.com
+Mon Aug 13 11:59:55 UTC 2018 - sweet_f_a@gmx.de
 
-- Update to 0.4.4:
-  Incompatible changes:
-  * suffix `m` is no longer accepted as a synonym for `mo`
-    with date-only input, issue #76
-  Bugfixes:
-  * expose BSD routines (fgetln()) to yuck
-  * for dates passed to dateround(1) that coincidentally
-    match the roundspecs do read them as dates
-  * wrong timestamps read via -i %s signal error
-  * facilitate bmake build
-  * time rounding on date-only input keeps the date unchanged
-  * dateseq's short-cut iterator (2 date arguments) does not
-    interfere with the 3-argument version
-  * adding 0 date or time units does not change the summand
-  * datezone on times (without date) will return times
-  * zones are singletons now, opened and closed only once
+- bump version 0.4.4 
+  * Incompatible changes:
+    - suffix `m` is no longer accepted as a synonym for `mo`
+      with date-only input, issue #76
+  * Bugfixes:
+    - expose BSD routines (fgetln()) to yuck
+    - for dates passed to dateround(1) that coincidentally
+      match the roundspecs do read them as dates
+    - wrong timestamps read via -i %s signal error
+    - facilitate bmake build
+    - time rounding on date-only input keeps the date unchanged
+    - dateseq's short-cut iterator (2 date arguments) does not
+      interfere with the 3-argument version
+    - adding 0 date or time units does not change the summand
+    - datezone on times (without date) will return times
+    - zones are singletons now, opened and closed only once
 
 -------------------------------------------------------------------
 Sat Mar  3 19:38:04 UTC 2018 - sweet_f_a@gmx.de
--- dateutils.spec.orig
+++ dateutils.spec
@@ -12,23 +12,47 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
+%define have_octave 0
+%if 0%{?suse_version} >= 1220 && 0%{?suse_version} != 1315
+%define have_octave 1
+%ifarch aarch64
+%if 0%{?suse_version} <= 1310
+%define have_octave 0
+%endif
+%endif
+%ifnarch i586 x86_64
+%if 0%{?suse_version} < 1310
+%define have_octave 0
+%endif
+%endif
+%endif
+%if 0%{?fedora_version} >= 19
+%define have_octave 1
+%endif
 Name:           dateutils
 Version:        0.4.9
 Release:        0
-Summary:        Command line date and time utilities
+Summary:        Nifty command line date and time utilities
 License:        BSD-3-Clause
 Group:          Productivity/Text/Utilities
-URL:            https://github.com/hroptatyr/dateutils/
-Source0:        https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.xz
+Url:            https://github.com/hroptatyr/dateutils/
+Source:         https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.xz
 Source1:        https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.asc
 Source2:        %{name}.keyring
-BuildRequires:  octave-devel
 BuildRequires:  pkgconfig
+BuildRequires:  xz
+%if 0%{?suse_version}
 BuildRequires:  timezone
+%endif
+%if %{have_octave}
+BuildRequires:  octave-devel
+%endif
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires(pre):  info
 
 %description
 Dateutils are a bunch of tools that revolve around fiddling with dates
@@ -38,6 +62,7 @@ market is shell scripts that need date c
 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).
 
+%if %{have_octave}
 %package octave
 Summary:        Dateutils functions for matlab and octave
 Group:          Development/Libraries/Other
@@ -46,34 +71,93 @@ Requires:       octave
 
 %description octave
 Dateutils can be used from within matlab or ocatave.
+%endif
 
 %prep
 %autosetup -p1
 
 %build
 %configure \
-  --enable-contrib
-%make_build
+    --docdir=%{_docdir}/%{name} \
+%if %{have_octave}
+    --enable-contrib \
+%endif
+    ignorethisline=xxx
+make %{?_smp_mflags} V=1
 
 %install
-%make_install
-rm -rf %{buildroot}%{_datadir}/doc/dateutils
-rm -rf %{buildroot}%{_libdir}/octave/site/oct/*/dateutils/tzconv.la
+%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
+rm -f %{buildroot}%{_infodir}/dir
+rm -f %{buildroot}%{_libdir}/octave/site/oct/*/dateutils/tzconv.la
 
 %check
-%make_build check
+if ! make check; then
+    cat test/test-suite.log
+    exit 1
+fi
+
+# 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
-%license LICENSE
-%doc README.md
-%{_bindir}/*
-%{_datadir}/dateutils/
-%{_mandir}/man1/*
-%{_infodir}/%{name}.info%{?ext_info}
+%defattr(-,root,root)
+%doc %{_docdir}/%{name}
+%{_bindir}/dadd
+%{_bindir}/dconv
+%{_bindir}/ddiff
+%{_bindir}/dgrep
+%{_bindir}/dround
+%{_bindir}/dseq
+%{_bindir}/dsort
+%{_bindir}/dtest
+%{_bindir}/dzone
+%{_bindir}/dateadd
+%{_bindir}/dateconv
+%{_bindir}/datediff
+%{_bindir}/dategrep
+%{_bindir}/dateround
+%{_bindir}/dateseq
+%{_bindir}/datesort
+%{_bindir}/datetest
+%{_bindir}/datezone
+%{_bindir}/strptime
+%dir %{_datadir}/dateutils/
+%{_datadir}/dateutils/locale
+%{_datadir}/dateutils/*.tzmcc
+%{_infodir}/%{name}.info*
+%{_mandir}/man1/%{name}.1*
+%{_mandir}/man1/dadd.1*
+%{_mandir}/man1/dconv.1*
+%{_mandir}/man1/ddiff.1*
+%{_mandir}/man1/dgrep.1*
+%{_mandir}/man1/dround.1*
+%{_mandir}/man1/dseq.1*
+%{_mandir}/man1/dsort.1*
+%{_mandir}/man1/dtest.1*
+%{_mandir}/man1/dzone.1*
+%{_mandir}/man1/dateadd.1*
+%{_mandir}/man1/dateconv.1*
+%{_mandir}/man1/datediff.1*
+%{_mandir}/man1/dategrep.1*
+%{_mandir}/man1/dateround.1*
+%{_mandir}/man1/dateseq.1*
+%{_mandir}/man1/datesort.1*
+%{_mandir}/man1/datetest.1*
+%{_mandir}/man1/datezone.1*
+%{_mandir}/man1/strptime.1*
 
+%if %{have_octave}
 %files octave
+%defattr(-,root,root)
 %dir %{_libdir}/octave/site/oct/*/dateutils/
 %{_libdir}/octave/site/oct/*/dateutils/tzconv.m
 %{_libdir}/octave/site/oct/*/dateutils/tzconv.mex
+%endif
 
 %changelog
openSUSE Build Service is sponsored by