diff --git a/dateutils-0.3.4-fix-test-126.patch b/dateutils-0.3.4-fix-test-126.patch new file mode 100644 index 0000000..7279b34 --- /dev/null +++ b/dateutils-0.3.4-fix-test-126.patch @@ -0,0 +1,23 @@ +From 3e1c9a3768c4837ac812230c89fd89043eebeb2c Mon Sep 17 00:00:00 2001 +From: Sebastian Freundt +Date: Fri, 8 Jan 2016 06:38:43 +0000 +Subject: [PATCH] test, fix, it's 2016 + +--- + test/dconv.126.clit | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/dconv.126.clit b/test/dconv.126.clit +index 80f8e74..a852056 100644 +--- a/test/dconv.126.clit ++++ b/test/dconv.126.clit +@@ -1,7 +1,7 @@ + #!/usr/bin/clitoris ## -*- shell-script -*- + +-$ dconv -i '%_b%_y' K5 -f '%Y-%m' +-2015-05 ++$ dconv -i '%_b%_y' K7 -f '%Y-%m' ++2017-05 + $ dconv -i '%_b%_y' Z2 -f '%Y-%m' + 2022-12 + $ diff --git a/dateutils.changes b/dateutils.changes index 26c99e9..5335b67 100644 --- a/dateutils.changes +++ b/dateutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 10 10:11:42 UTC 2016 - antoine.belvire@laposte.net + +- Fix build: + * add dateutils-0.3.4-fix-test-126.patch (from upstream) + ------------------------------------------------------------------- Mon Aug 31 08:39:17 UTC 2015 - sweet_f_a@gmx.de diff --git a/dateutils.spec b/dateutils.spec index 0696e1c..64056ed 100644 --- a/dateutils.spec +++ b/dateutils.spec @@ -1,7 +1,7 @@ # # spec file for package dateutils # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -46,6 +46,8 @@ 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 +# PATCH-FIX-UPSTREAM dateutils-0.3.4-fix-test-126 -- Fix the test that was failing due to year change (from upstream) +Patch: dateutils-0.3.4-fix-test-126.patch BuildRequires: pkgconfig BuildRequires: xz %if 0%{?suse_version} @@ -79,6 +81,7 @@ Dateutils can be used from within matlab or ocatave. %prep %setup -q -n %{name}-%{xversion} +%patch -p1 %build %configure \