From 9068b0453c954b560d5e261a2adeb2161176fafa Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Aug 08 2008 11:31:07 +0000 Subject: - updated patches due rpm 4.6 - enscript -w is handled well (#457719) - mkafmmap -V is handled well (#457720) --- diff --git a/enscript-1.6.1-CAN-2004-1185.patch b/enscript-1.6.1-CAN-2004-1185.patch index 9dd8fad..a5c3180 100644 --- a/enscript-1.6.1-CAN-2004-1185.patch +++ b/enscript-1.6.1-CAN-2004-1185.patch @@ -1,9 +1,11 @@ ---- enscript-1.6.1/src/psgen.c.CAN-2004-1185 2005-01-10 15:55:33.560648363 +0000 -+++ enscript-1.6.1/src/psgen.c 2005-01-10 15:56:30.266830723 +0000 -@@ -2210,9 +2210,10 @@ +diff -up enscript-1.6.4/src/psgen.c.CAN-2004-1185 enscript-1.6.4/src/psgen.c +--- enscript-1.6.4/src/psgen.c.CAN-2004-1185 2008-08-08 11:18:06.000000000 +0200 ++++ enscript-1.6.4/src/psgen.c 2008-08-08 11:17:57.000000000 +0200 +@@ -2386,9 +2386,11 @@ recognize_eps_file (Token *token) MESSAGE (2, (stderr, "^@epsf=\"%s\"\n", token->u.epsf.filename)); i = strlen (token->u.epsf.filename); ++ + /* if (i > 0 && token->u.epsf.filename[i - 1] == '|') { @@ -12,11 +14,11 @@ token->u.epsf.pipe = 1; token->u.epsf.filename[i - 1] = '\0'; token->u.epsf.fp = popen (token->u.epsf.filename, "r"); -@@ -2225,6 +2226,7 @@ +@@ -2401,6 +2403,7 @@ recognize_eps_file (Token *token) } } else + */ { - /* Read EPS data from file. */ - tilde_subst (token->u.epsf.filename, filename); + char *filename; + diff --git a/enscript-1.6.4-rh457719.patch b/enscript-1.6.4-rh457719.patch new file mode 100644 index 0000000..450c4a5 --- /dev/null +++ b/enscript-1.6.4-rh457719.patch @@ -0,0 +1,12 @@ +diff -up enscript-1.6.4/src/main.c.rh457719 enscript-1.6.4/src/main.c +--- enscript-1.6.4/src/main.c.rh457719 2008-08-08 11:23:27.000000000 +0200 ++++ enscript-1.6.4/src/main.c 2008-08-08 11:23:36.000000000 +0200 +@@ -2001,7 +2001,7 @@ handle_options (int argc, char *argv[]) + int i; + + c = getopt_long (argc, argv, +- "#:123456789a:A:b:BcC::d:D:e::E::f:F:gGhH::i:I:jJ:kKlL:mM:n:N:o:Op:P:qrRs:S:t:T:u::U:vVW:X:zZ", ++ "#:123456789a:A:b:BcC::d:D:e::E::f:F:gGhH::i:I:jJ:kKlL:mM:n:N:o:Op:P:qrRs:S:t:T:u::U:vVw:W:X:zZ", + long_options, &option_index); + + if (c == -1) diff --git a/enscript-1.6.4-rh457720.patch b/enscript-1.6.4-rh457720.patch new file mode 100644 index 0000000..51f397f --- /dev/null +++ b/enscript-1.6.4-rh457720.patch @@ -0,0 +1,12 @@ +diff -up enscript-1.6.4/src/mkafmmap.c.rh457720 enscript-1.6.4/src/mkafmmap.c +--- enscript-1.6.4/src/mkafmmap.c.rh457720 2008-08-08 11:33:47.000000000 +0200 ++++ enscript-1.6.4/src/mkafmmap.c 2008-08-08 11:33:58.000000000 +0200 +@@ -139,7 +139,7 @@ main (int argc, char *argv[]) + int option_index = 0; + int c; + +- c = getopt_long (argc, argv, "p:h", long_options, &option_index); ++ c = getopt_long (argc, argv, "p:hV", long_options, &option_index); + if (c == -1) + break; + diff --git a/enscript-doublefree.patch b/enscript-doublefree.patch index ecdb618..46fd719 100644 --- a/enscript-doublefree.patch +++ b/enscript-doublefree.patch @@ -1,10 +1,10 @@ ---- enscript-1.6.1/src/main.c.doublefree 2004-09-27 14:21:29.954102199 +0100 -+++ enscript-1.6.1/src/main.c 2004-09-27 14:21:31.390828039 +0100 -@@ -1505,9 +1505,9 @@ - process_file (_("Table of Contents"), &is); +diff -up enscript-1.6.4/src/main.c.doublefree enscript-1.6.4/src/main.c +--- enscript-1.6.4/src/main.c.doublefree 2008-08-08 11:10:07.000000000 +0200 ++++ enscript-1.6.4/src/main.c 2008-08-08 11:11:51.000000000 +0200 +@@ -1714,8 +1714,9 @@ name width\theight\tllx\tlly is_close (&is); } -- + - /* Clean up toc file. */ - fclose (toc_fp); + else diff --git a/enscript.spec b/enscript.spec index 32c54e6..29eba84 100644 --- a/enscript.spec +++ b/enscript.spec @@ -1,7 +1,7 @@ Summary: A plain ASCII to PostScript converter. Name: enscript Version: 1.6.4 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv2 Group: Applications/Publishing Source0: http://www.iki.fi/mtr/genscript/enscript-%{version}.tar.gz @@ -16,6 +16,8 @@ Patch4: enscript-doublefree.patch Patch6: enscript-1.6.1-CAN-2004-1185.patch Patch7: enscript-1.6.1-CAN-2004-1186.patch Patch8: enscript-wrap_header.patch +Patch9: enscript-1.6.4-rh457719.patch +Patch10:enscript-1.6.4-rh457720.patch URL: http://www.codento.com/people/mtr/genscript/ Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -37,6 +39,8 @@ includes many options for customizing printouts. %patch6 -p1 -b .CAN-2004-1185 %patch7 -p1 -b .CAN-2004-1186 %patch8 -p1 -b .wrap_header +%patch9 -p1 -b .rh457719 +%patch10 -p1 -b .rh457720 %{__tar} -C states/hl -zxf %{SOURCE1} ruby.st install -pm 644 %{SOURCE2} states/hl/php.st @@ -90,6 +94,11 @@ fi %changelog +* Fri Aug 08 2008 Adam Tkac 1.6.4-10 +- updated patches due rpm 4.6 +- enscript -w is handled well (#457719) +- mkafmmap -V is handled well (#457720) + * Mon Feb 18 2008 Fedora Release Engineering - 1.6.4-9 - Autorebuild for GCC 4.3