Update to version 1.0.0

* Improvements for javadoc, zip, cpio and png handling
  * Speed up startup time
- Drop upstream strip-nondeterminism-0.029-zipfix.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/strip-nondeterminism?expand=0&rev=12
This commit is contained in:
Bernhard M. Wiedemann 2018-12-15 20:28:44 +00:00 committed by Git OBS Bridge
parent f1b1e4fc86
commit 8589c99e02
8 changed files with 116 additions and 39 deletions

View File

@ -1,11 +1,13 @@
--- 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 @@
Index: strip-nondeterminism-1.0.0/lib/File/StripNondeterminism.pm
===================================================================
--- strip-nondeterminism-1.0.0.orig/lib/File/StripNondeterminism.pm
+++ strip-nondeterminism-1.0.0/lib/File/StripNondeterminism.pm
@@ -61,7 +61,7 @@ sub get_normalizer_for_file($) {
}
# 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;
return _handler('jar');
}
# javadoc

View File

@ -1,25 +0,0 @@
commit 0ec2e898c1f2027a158d581a9fcd6d7f3fcf0b97
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Wed May 10 15:21:28 2017 +0200
zip: make sure we have permissions on extracted file
an imageconversion.jar had
-rw-rw-rw- 2.0 unx 3215 b- defN 99-Sep-06 10:58 com/ibm/imageconversion/IndexColorTable.class
?--------- 2.0 unx 7004 b- defN 99-Sep-06 10:58 META-INF/MANIFEST.MF
and thus generated an error like
strip-nondeterminism: ./imageconversion.jar: Unable to open /tmp/3F14xYUtK0/member for reading: Permission denied at /usr/lib/perl5/vendor_perl/5.24.0/File/StripNondeterminism/handlers/jar.pm line 46.
diff --git a/lib/File/StripNondeterminism/handlers/zip.pm b/lib/File/StripNondeterminism/handlers/zip.pm
index 6bbce66..c25ec39 100644
--- a/lib/File/StripNondeterminism/handlers/zip.pm
+++ b/lib/File/StripNondeterminism/handlers/zip.pm
@@ -56,6 +56,7 @@ sub normalize_member {
my $filename = "$tempdir/member";
my $original_size = $member->compressedSize();
$member->extractToFileNamed($filename);
+ chmod(0600, $filename);
$member->{'compressedSize'} = $original_size
; # Work around https://github.com/redhotpenguin/perl-Archive-Zip/issues/11

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d51fc5be90e85f385737aa9b6482bbd7d8911f10e9bf5d8ccb0441fa8077d18c
size 221245

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAlwJV6cACgkQHpU+J9Qx
Hljzpg//dTRYNeXikgQQEv00wutz6Sdb7RoPbAaUy+EMtWdlLGuFy+99etlIk1HM
BOF835uKqjPweSATASU22HKJTgJjxGLAEBchNkScEnrQ0dbva0l112v4GZXz8E/n
l22dlGXMgThO9N72FLD1B8iT7DULSC9VFxUYdHNn6vASRlZZKmkyeVihXcAaM/2K
ESGwDgm3L0bMNnX6SoxMvY6t8LL7asok0lfJW3FE7sgLI2te1vLUKJ6BsXUM2gRh
2pRRBZzhzbM2ImYN1RyXZnBjb6yGDQcOqkFxsqUoygWuhU6b4bdxbL7C6zNjV0wG
zPpc/qUNqd4UZbSw3VzKq1a0oJA9ZtKBXN1k1KxV24DWcGo/SpfVqvE0qqD6ZHil
RNtqcSIY2dsuFzjgSEaalsElDOAt9CmCTLZAVIex8wNXPLQpqwAp9aehT7pFTZuB
uK5gmi5LPIcs//+2WjpnLL7XPoFIHXnK5YkW7nwAg3SJ7e5/ixhl8nJYdxr9Mpvi
3qDEVb6woJF0hp6moZKFTUDv+xRegliBC3S2jCAzEvVAyQnvGX69q3xQTQWNdGnM
6KlPfzpS1LjYTp0fPiPMo0/ZrNTQgQUrgugvrXKhUzYKOrpU8hB8aJlFkWvdIX0s
bff8q2DsHyHfM71MWG36qA49ZJwpZc0hh+pbn9or7Ded8gEaf6I=
=TOk7
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Dec 15 19:45:06 UTC 2018 - bwiedemann@suse.com
- Update to version 1.0.0
* Improvements for javadoc, zip, cpio and png handling
* Speed up startup time
- Drop upstream strip-nondeterminism-0.029-zipfix.patch
-------------------------------------------------------------------
Mon Jul 10 02:49:15 UTC 2017 - bwiedemann@suse.com

View File

@ -0,0 +1,76 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBEpaPPMBEADG/4uW0xA0Fcx07pJgJMtka4DvehIcunxEj2QI4YTopdPyAkTj
9cNBljUtiZ1IvgtimQeJQt1XXyt5RR9q9nxn9D3Ce11JFe+TyO9YwVB4rIFk0ix8
QfyFM3VfCV003puS1rsh84Eytpl48Haht4EY4Xm03+ZlJAbfqk+VY8FmQGcV4+g6
9M3qdFSMGP9AzlM6bFel6vqEHvGKBxWt7JD2uIwF2CQAIaHS+3RU0AoJdAQF0OJy
2rW4B88tuGvnaxx/0lzT40xBvaO5nR9KzNf8n+YV6s59k6loiN1/fHaQTpCqNG6X
TNV6HbZg+O1VL00z8sNTMPy6fS56WncblAivUoxPlhV4CaleT52UO5Z2whU+9WGN
DWn88l3O+q8eD/C9JvHlAwWBv88CDz73eu/xoHw0Lu3Pio3sMuzetBu/P/KPEQvz
owYJkUr+oQbZ0NUvW8Vo/8hXXEK9fXW+o0NEUap5+qesfouNT7JpBjrM+LCuOmFU
MBOI7wDidogoyO5fjclG78NVwZYfH9MwhClZ7JF6c02YVtmW+wFV9aQ8RFLe923q
OEBZVSd4jmNby8/AMqekFAGFqtne/nJyEIIuVOhFwLsRr27G9ijypBT3/DgR4ovJ
NTcfXDAu0R4vVgz8hDcI7tQwr6Lt0XYqA+fzEDU3QO78QQhHcsf0b07j2wARAQAB
tBpD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4vk7NfC4rwi
bs75wCqu8qOvhFFnsQffGgajM9JT+RHcnhq78mK1NElPyxJ/llCs0HTkSDd0eGz+
Bsj7pCTlbiPbng2bdpAE4t1qZvzISOviv/0asHZj+kBxRIa/bo3Q4lrtXQy46O3G
kkksCGboqJIhRxG1UqzygDjC3GNRLi1Q9vyCAHMYsLmqOpXakBElp0iO3/GV9AKe
Iwm/FiKOx0zbVG2U8k5CqB9YvU6R3+f+w2v73xtDvOrEwn2nPREh2lG66Zqg2piC
WN3A7i9vJRHCIm+He1c/PFrIFCTFft4nqupYtQcSk5DohJOS5pUPqMV20QxXWO55
QPcpkmiXnojnI54Uc4M+OgoVaALgOUlA0tQIqQd9qevix8xLzYS6m/0HfI1KF2Ii
luqmsz6hWRL8NhW7z80N4NNldD0ppHQQXcjRG294lWHYZ8j0XnQhEh5V4eOSOM1c
PVMGvuHaIa76YPPZXv0gfdEqnM2mQA0QUYEBE5UPtJOGLFSR/bSjewMEj9j2dYo7
Ms0Nuhe9shty3nm0VCkerGD7kSNv41dRCcLvmTBAfOZVLnB5gahTzVLQi+TFLrli
PhhdfRap1821rV73gzbST/zh8Gfjf0uEfgb6LRrwRotzGIw9n+m1fks43qs/lO+Z
xNfR
=P+OH
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -17,26 +17,28 @@
Name: strip-nondeterminism
Version: 0.029
Version: 1.0.0
Release: 0
Summary: A tool for stripping non-deterministic information
License: GPL-3.0+
Group: Development/Libraries/Perl
Url: https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git
Source: http://http.debian.net/debian/pool/main/s/strip-nondeterminism/strip-nondeterminism_%{version}.orig.tar.gz
Source: https://reproducible-builds.org/_lfs/releases/strip-nondeterminism/strip-nondeterminism-%{version}.tar.bz2
Source1: https://reproducible-builds.org/_lfs/releases/strip-nondeterminism/strip-nondeterminism-%{version}.tar.bz2.asc
Source2: rpmmacros
Source3: strip-all-nondeterminism
Source4: %{name}.keyring
# PATCH-FIX-OPENSUSE - apk files misdetected as OOXML
Patch0: strip-nondeterminism-0.029-fix-apk.patch
# PATCH-FIX-UPSTREAM https://github.com/ReproducibleBuilds/strip-nondeterminism/pull/4
Patch1: strip-nondeterminism-0.029-zipfix.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl-base
BuildRequires: perl-macros
BuildRequires: perl(Archive::Cpio)
BuildRequires: perl(Archive::Zip)
Requires: perl-base
Requires: perl(Archive::Zip)
Recommends: perl(Archive::Cpio)
%{perl_requires}
%description
@ -51,9 +53,7 @@ strip-nondeterminism contains the File::StripNondeterminism Perl module,
and the strip-nondeterminism command line utility.
%prep
%setup -q -c -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%autosetup -p1 -n %{name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e6df1d0495c19859182c7746e6f5c189ca1494e7b6e6f143fb1bfecfd11de5c
size 169883