SHA256
1
0
forked from pool/a2ps

Accepting request 623107 from home:bmwiedemann:branches:Publishing

Add reproducible.patch to fix build date (boo#1047218)
- Run build non-parallelized and with make -B because of
  poorly specified make build dependencies to make build reproducible

OBS-URL: https://build.opensuse.org/request/show/623107
OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=71
This commit is contained in:
2018-07-16 10:34:50 +00:00
committed by Git OBS Bridge
parent 9159f5c920
commit 16ff102db5
3 changed files with 26 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ Patch15: a2ps-4.14-gperf.patch
# PATCH-FIX-SUSE Bug 955194 - CVE-2015-8107: CVE-2015-8107 - a2ps(gnu) v4.14 format string vulnerability
Patch16: a2ps-4.14-bnc955194.patch
Patch17: a2ps-buildcompare.patch
Patch18: reproducible.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: emacs-nox
@@ -57,6 +58,7 @@ BuildRequires: gv
BuildRequires: psutils
BuildRequires: texlive-latex
BuildRequires: timezone
BuildRequires: bison
Requires: file
Requires: ghostscript-fonts-std
Requires: glibc
@@ -128,6 +130,7 @@ touch -r configure.in .ref
%patch16 -p0
%patch17 -p1
%patch0 -b .p0
%patch18 -p1
cp -f %{SOURCE3} po/ko.po
find -type f | grep -vE '(parseppd|parsessh).y' | xargs \
sed -ri 's/59 Temple Place(,| -) Suite 330/51 Franklin Street, Fifth Floor/;s/02111-1307/02110-1301/'
@@ -153,9 +156,10 @@ find -name Makefile.in | xargs touch
con="$con ${in##*/}"
done
popd
make %{?_smp_mflags} -C contrib/ ${con} LDFLAGS="-pie"
make -C contrib/ ${con} LDFLAGS="-pie"
sh ./config.status
make %{?_smp_mflags} PSFONT_PATH=%{_datadir}/ghostscript/fonts LDFLAGS="-pie" MAKEINFO='makeinfo --force'
# the build system is awful so we need to build with -B and avoid parallelism
make PSFONT_PATH=%{_datadir}/ghostscript/fonts LDFLAGS="-pie" MAKEINFO='makeinfo --force' -B
pushd doc
texi2html a2ps.texi
popd