diff --git a/a2ps-tmpdir.patch b/a2ps-tmpdir.patch new file mode 100644 index 0000000..2008642 --- /dev/null +++ b/a2ps-tmpdir.patch @@ -0,0 +1,33 @@ +--- a2ps-4.13/contrib/psmandup.in.tmpdir 2006-02-15 11:03:50.000000000 +0000 ++++ a2ps-4.13/contrib/psmandup.in 2006-02-15 11:03:50.000000000 +0000 +@@ -36,7 +36,7 @@ + message= + psselect=${PSSELECT:-psselect} + psset=${PSSET:-psset} +-tmpdir=/tmp/$program.$$ ++tmpdir=$(mktemp -d /tmp/$program.XXXXXX) + + # These two must be kept in synch. They are opposed. + verbose=echo +--- a2ps-4.13/contrib/fixps.in.tmpdir 2006-02-15 11:06:07.000000000 +0000 ++++ a2ps-4.13/contrib/fixps.in 2006-02-15 11:06:33.000000000 +0000 +@@ -38,7 +38,7 @@ + run_gs=0 + # What action to perform: fixps, cat, check, and gs + task=fixps +-tmpdir=/tmp/$program.$$ ++tmpdir=$(mktemp -d /tmp/$program.XXXXXX) + verbose=echo + + # The version/usage strings +--- a2ps-4.13/contrib/pdiff.in.tmpdir 2006-02-15 11:05:44.000000000 +0000 ++++ a2ps-4.13/contrib/pdiff.in 2006-02-15 11:05:56.000000000 +0000 +@@ -34,7 +34,7 @@ + diff_options='-u' + file= + output= +-tmpdir=/tmp/$program.$$ ++tmpdir=$(mktemp -d /tmp/$program.XXXXXX) + verbose=echo + wdiff_prog=${WDIFF:-wdiff} + wdiff_options='-w[wd- -x-wd] -y{wd+ -z+wd}' diff --git a/a2ps.spec b/a2ps.spec index 48d88ec..9043684 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -1,5 +1,5 @@ %define ver 4.13b -%define rel 48.3 +%define rel 49 Summary: Converts text and other types of files to PostScript(TM). Name: a2ps @@ -15,6 +15,7 @@ Patch2: a2ps-4.13-flex.patch Patch3: a2ps-4.13-security.patch Patch4: a2ps-4.13-glibcpaper.patch Patch5: a2ps-4.13-varargs.patch +Patch6: a2ps-tmpdir.patch # EUC-JP support Patch10: a2ps-4.13-eucjp.patch.bz2 Patch11: a2ps-4.13-autoenc.patch @@ -59,6 +60,7 @@ and medias. %patch3 -p1 -b .security %patch4 -p1 -b .glibcpaper %patch5 -p1 +%patch6 -p1 -b .tmpdir %patch10 -p1 -b .euc %patch11 -p1 -b .ae @@ -226,6 +228,9 @@ fi %dir %{_datadir}/a2ps %changelog +* Wed Feb 15 2006 Tim Waugh 4.13b-49 +- Use mktemp in scripts. + * Fri Feb 10 2006 Jesse Keating - 4.13b-48.3 - bump again for double-long bug on ppc(64)