2016-03-14 13:10:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package strip-nondeterminism
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: strip-nondeterminism
|
2016-12-29 06:44:29 +00:00
|
|
|
Version: 0.029
|
2016-03-14 13:10:51 +00:00
|
|
|
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
|
2016-12-29 07:36:37 +00:00
|
|
|
Source: http://http.debian.net/debian/pool/main/s/strip-nondeterminism/strip-nondeterminism_%{version}.orig.tar.gz
|
2017-05-07 12:29:28 +00:00
|
|
|
Source2: rpmmacros
|
2016-12-29 06:48:37 +00:00
|
|
|
# PATCH-FIX-OPENSUSE - apk files misdetected as OOXML
|
|
|
|
Patch0: strip-nondeterminism-0.029-fix-apk.patch
|
2016-03-14 13:10:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-12-29 06:44:29 +00:00
|
|
|
BuildRequires: perl-base
|
2016-03-14 13:10:51 +00:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Archive::Zip)
|
2016-12-29 06:44:29 +00:00
|
|
|
Requires: perl-base
|
2016-03-14 13:10:51 +00:00
|
|
|
Requires: perl(Archive::Zip)
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
File::StripNondeterminism is a Perl module for stripping bits of
|
|
|
|
non-deterministic information, such as timestamps and file system
|
|
|
|
order, from files such as gzipped files, ZIP archives, and Jar files.
|
|
|
|
It can be used as a post-processing step to make a build reproducible,
|
|
|
|
when the build process itself cannot be made deterministic. It is used
|
|
|
|
as part of the Reproducible Builds project.
|
|
|
|
|
|
|
|
strip-nondeterminism contains the File::StripNondeterminism Perl module,
|
|
|
|
and the strip-nondeterminism command line utility.
|
|
|
|
|
|
|
|
%prep
|
2016-12-29 06:44:29 +00:00
|
|
|
%setup -q -c -n %{name}-%{version}
|
2016-12-29 06:48:37 +00:00
|
|
|
%patch0 -p1
|
2016-03-14 13:10:51 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2016-12-29 06:48:37 +00:00
|
|
|
%{__make} test
|
2016-03-14 13:10:51 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-07 12:29:28 +00:00
|
|
|
mkdir -p %buildroot/etc/rpm/
|
|
|
|
install -p %{SOURCE2} %buildroot/etc/rpm/macros.strip-nondeterminism
|
2016-03-14 13:10:51 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc README TODO COPYING
|
2017-05-07 12:29:28 +00:00
|
|
|
/etc/rpm/macros.strip-nondeterminism
|
2016-03-14 13:10:51 +00:00
|
|
|
|
|
|
|
%changelog
|