forked from pool/perl-Term-Size-Perl
		
	Accepting request 901125 from home:bmwiedemann:branches:devel:languages:perl
Add reproducible.patch to override build date (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/901125 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Size-Perl?expand=0&rev=4
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Mon Jun 21 10:44:54 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>
 | 
			
		||||
 | 
			
		||||
- Add reproducible.patch to override build date (boo#1047218)
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu Feb 15 07:07:49 UTC 2018 - coolo@suse.com
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@ Group:          Development/Libraries/Perl
 | 
			
		||||
Url:            http://search.cpan.org/dist/Term-Size-Perl/
 | 
			
		||||
Source0:        https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/%{cpan_name}-%{version}.tar.gz
 | 
			
		||||
Source1:        cpanspec.yml
 | 
			
		||||
Patch0:         reproducible.patch
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
			
		||||
BuildRequires:  perl
 | 
			
		||||
@@ -39,6 +40,7 @@ exception of a C probe run on build time.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n %{cpan_name}-%{version}
 | 
			
		||||
%autopatch -p1
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										30
									
								
								reproducible.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								reproducible.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
https://github.com/aferreira/cpan-Term-Size-Perl/pull/1.patch
 | 
			
		||||
 | 
			
		||||
From a96031f8ed287e0bb31e2e9a29ffcfbe50b2e187 Mon Sep 17 00:00:00 2001
 | 
			
		||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
 | 
			
		||||
Date: Thu, 4 Feb 2021 07:25:08 +0100
 | 
			
		||||
Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH
 | 
			
		||||
 | 
			
		||||
in order to make builds reproducible.
 | 
			
		||||
See https://reproducible-builds.org/ for why this is good
 | 
			
		||||
and https://reproducible-builds.org/specs/source-date-epoch/
 | 
			
		||||
for the definition of this variable.
 | 
			
		||||
 | 
			
		||||
See https://reproducible-builds.org/ for why this matters.
 | 
			
		||||
---
 | 
			
		||||
 inc/Probe.pm | 2 +-
 | 
			
		||||
 1 file changed, 1 insertion(+), 1 deletion(-)
 | 
			
		||||
 | 
			
		||||
diff --git a/inc/Probe.pm b/inc/Probe.pm
 | 
			
		||||
index 86728bc..5463535 100644
 | 
			
		||||
--- a/inc/Probe.pm
 | 
			
		||||
+++ b/inc/Probe.pm
 | 
			
		||||
@@ -105,7 +105,7 @@ my $PARAMS_TEMPLATE = <<PARAMS;
 | 
			
		||||
 
 | 
			
		||||
 package Term::Size::Perl::Params; 
 | 
			
		||||
 
 | 
			
		||||
-# created @{[scalar localtime]}
 | 
			
		||||
+# created @{[scalar localtime($ENV{SOURCE_DATE_EPOCH} or time)]}
 | 
			
		||||
 
 | 
			
		||||
 use vars qw(\$VERSION);
 | 
			
		||||
 \$VERSION = '@{[MM->parse_version('Perl.pm')]}';
 | 
			
		||||
		Reference in New Issue
	
	Block a user