update to version 0.029

+ Add strip-nondeterminism-0.029-fix-apk.patch to fix tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/strip-nondeterminism?expand=0&rev=3
This commit is contained in:
Bernhard M. Wiedemann 2016-12-29 06:48:37 +00:00 committed by Git OBS Bridge
parent fd01c55baf
commit ef45a62fd0
3 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- strip-nondeterminism-0.029/lib/File/StripNondeterminism.pm.orig 2016-12-22 10:52:33.000000000 +0000
+++ strip-nondeterminism-0.029/lib/File/StripNondeterminism.pm 2016-12-29 06:36:46.380730000 +0000
@@ -70,7 +70,7 @@
}
# jar
if (m/\.(jar|war|hpi|apk)$/
- && _get_file_type($_) =~ m/(Java|Zip) archive data/) {
+ && _get_file_type($_) =~ m/((Java|Zip) archive data)|(Microsoft OOXML)/) {
return \&File::StripNondeterminism::handlers::jar::normalize;
}
# javadoc

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 1 00:00:51 UTC 2017 - bwiedemann@suse.com
- update to version 0.029
+ Add strip-nondeterminism-0.029-fix-apk.patch to fix tests
-------------------------------------------------------------------
Tue Mar 8 16:08:31 UTC 2016 - bwiedemann@suse.com

View File

@ -24,6 +24,8 @@ License: GPL-3.0+
Group: Development/Libraries/Perl
Url: https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git
Source: strip-nondeterminism_%{version}.orig.tar.gz
# PATCH-FIX-OPENSUSE - apk files misdetected as OOXML
Patch0: strip-nondeterminism-0.029-fix-apk.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl-base
@ -46,14 +48,14 @@ and the strip-nondeterminism command line utility.
%prep
%setup -q -c -n %{name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
# 1 Test fails
%{__make} test || :
%{__make} test
%install
%perl_make_install