From f4d5bfcb416ea9dd2d0e521bf98be45aa9be3c7ecd8c114da4577d6fbf9e38b4 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 3 Mar 2015 12:38:39 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=52 --- a2ps.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/a2ps.spec b/a2ps.spec index 2d1e048..26ee98b 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -124,16 +124,19 @@ find -name Makefile.in | xargs touch %configure --enable-shared --disable-static --with-pic --with-medium=LC_PAPER \ --with-encoding=LC_CTYPE con="" - for m4 in contrib/*.m4; do - in=${m4%.*}.in - rm -f ${in} ${m4%.*} - con="$con ${in##*/}" - done - make %{?_smp_mflags} -C contrib/ ${con} LDFLAGS="-pie" + pushd contrib + for m4 in *.m4; do + in=${m4%.*}.in + rm -f ${in} ${m4%.*} + /usr/bin/m4 ${m4} + sed -e 's/@BKL@/[/g;s/@BKR@/]/g;s/@DLR@/$/g;s/@PND@/#/g'> ${in}-tmp + mv ${in}-tmp ${in} + done + popd sh ./config.status make %{?_smp_mflags} PSFONT_PATH=%{_datadir}/ghostscript/fonts LDFLAGS="-pie" MAKEINFO='makeinfo --force' pushd doc - texi2html a2ps.texi + texi2html a2ps.texi popd %install