SHA256
1
0
forked from pool/x3270

Accepting request 847546 from Base:System

OBS-URL: https://build.opensuse.org/request/show/847546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/x3270?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2020-11-11 19:46:22 +00:00 committed by Git OBS Bridge
commit f0de1bd56e
3 changed files with 38 additions and 0 deletions

30
reproducible.patch Normal file
View File

@ -0,0 +1,30 @@
https://sourceforge.net/p/x3270/code/merge-requests/2/
commit f86253bc15060db29063c186b05dc9bbaa38593a
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sun Jun 18 19:49:43 2017 +0200
allow to override build date
to allow reproducible builds of x3270
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.
Note: this patch variant only works with GNU date
leftover after incomplete merge in 7591b303beefed762c24386214beca432024c785
diff --git a/Common/mkversion.sh b/Common/mkversion.sh
index ad1c1067..4da3620a 100755
--- a/Common/mkversion.sh
+++ b/Common/mkversion.sh
@@ -50,7 +50,7 @@ user=${LOGNAME-$USER}
# rpq.c will return this string of numbers in bcd format
# It is OK to change the length (+ or -), but use
# decimal (0-9) digits only. Length must be even number of digits.
-rpq_timestamp=`date +%Y%m%d%H%M%S`
+rpq_timestamp=`$date +%Y%m%d%H%M%S`
app=${1-x3270}
cat <<EOF

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 9 07:28:01 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to override build date (boo#1047218)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 17 18:29:55 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de> Fri Apr 17 18:29:55 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -26,6 +26,7 @@ Summary: A Family of IBM 3270 Terminal Emulators
License: MIT License: MIT
Group: System/X11/Terminals Group: System/X11/Terminals
URL: http://x3270.bgp.nu URL: http://x3270.bgp.nu
#Git-Clone: https://github.com/pmattes/x3270
Source0: http://download.sourceforge.net/%{name}/%{_fullname}-src.tgz Source0: http://download.sourceforge.net/%{name}/%{_fullname}-src.tgz
Source1: http://download.sourceforge.net/%{name}/x026-%{_x026ver}.tgz Source1: http://download.sourceforge.net/%{name}/x026-%{_x026ver}.tgz
Source2: x3270.desktop Source2: x3270.desktop
@ -35,6 +36,7 @@ Patch102: x026-offset.diff
Patch105: x3270-missing-include.patch Patch105: x3270-missing-include.patch
Patch106: x3270-missing-file.patch Patch106: x3270-missing-file.patch
Patch108: mkversion.patch Patch108: mkversion.patch
Patch109: reproducible.patch
BuildRequires: bdftopcf BuildRequires: bdftopcf
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -108,6 +110,7 @@ x026 is a fun toy which emulates an x026 puncher.
for d in x3270 c3270 s3270 tcl3270 pr3287 ; do for d in x3270 c3270 s3270 tcl3270 pr3287 ; do
(cd $d (cd $d
%patch108 -p2 %patch108 -p2
%patch109 -p2
) )
done done