2016-03-14 14:10:51 +01:00
|
|
|
#
|
|
|
|
# spec file for package strip-nondeterminism
|
|
|
|
#
|
2023-01-11 13:48:05 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-03-14 14:10:51 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-15 21:34:37 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-03-14 14:10:51 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: strip-nondeterminism
|
2023-07-28 11:55:08 +02:00
|
|
|
Version: 1.13.1
|
2016-03-14 14:10:51 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A tool for stripping non-deterministic information
|
2018-12-15 21:34:37 +01:00
|
|
|
License: GPL-3.0-or-later
|
2016-03-14 14:10:51 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2021-06-14 12:18:22 +02:00
|
|
|
URL: https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git
|
2023-07-28 11:55:08 +02:00
|
|
|
#Bug-Database: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/issues
|
2018-12-15 21:28:44 +01:00
|
|
|
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
|
2017-05-07 14:29:28 +02:00
|
|
|
Source2: rpmmacros
|
2017-07-04 15:22:58 +02:00
|
|
|
Source3: strip-all-nondeterminism
|
2018-12-15 21:28:44 +01:00
|
|
|
Source4: %{name}.keyring
|
2016-03-14 14:10:51 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-12-29 07:44:29 +01:00
|
|
|
BuildRequires: perl-base
|
2016-03-14 14:10:51 +01:00
|
|
|
BuildRequires: perl-macros
|
2018-12-15 21:28:44 +01:00
|
|
|
BuildRequires: perl(Archive::Cpio)
|
2016-03-14 14:10:51 +01:00
|
|
|
BuildRequires: perl(Archive::Zip)
|
2021-06-14 12:18:22 +02:00
|
|
|
BuildRequires: perl(Sub::Override)
|
2016-12-29 07:44:29 +01:00
|
|
|
Requires: perl-base
|
2016-03-14 14:10:51 +01:00
|
|
|
Requires: perl(Archive::Zip)
|
2021-06-14 12:18:22 +02:00
|
|
|
Requires: perl(Sub::Override)
|
2018-12-15 21:28:44 +01:00
|
|
|
Recommends: perl(Archive::Cpio)
|
2016-03-14 14:10:51 +01:00
|
|
|
%{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.
|
|
|
|
|
2021-06-14 12:18:22 +02:00
|
|
|
strip-nondeterminism contains the File::StripNondeterminism Perl module,
|
2016-03-14 14:10:51 +01:00
|
|
|
and the strip-nondeterminism command line utility.
|
|
|
|
|
|
|
|
%prep
|
2018-12-15 21:28:44 +01:00
|
|
|
%autosetup -p1 -n %{name}-%{version}
|
2016-03-14 14:10:51 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2016-12-29 07:48:37 +01:00
|
|
|
%{__make} test
|
2016-03-14 14:10:51 +01:00
|
|
|
|
|
|
|
%install
|
2021-06-14 12:18:22 +02:00
|
|
|
mkdir -p %buildroot%{_rpmmacrodir} %buildroot/%{_bindir}/
|
|
|
|
install -p %{SOURCE2} -m 644 %buildroot%{_rpmmacrodir}/macros.strip-nondeterminism
|
2017-07-04 15:22:58 +02:00
|
|
|
install -p %{SOURCE3} -m 755 %buildroot/%{_bindir}/
|
2016-03-14 14:10:51 +01:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2018-12-15 21:34:37 +01:00
|
|
|
%doc README TODO
|
|
|
|
%license COPYING
|
2021-06-14 12:18:22 +02:00
|
|
|
%{_rpmmacrodir}/macros.strip-nondeterminism
|
2016-03-14 14:10:51 +01:00
|
|
|
|
|
|
|
%changelog
|