- updated patches due rpm 4.6

- enscript -w is handled well (#457719)
- mkafmmap -V is handled well (#457720)
This commit is contained in:
Adam Tkac 2008-08-08 11:31:07 +00:00
parent 8a087a19d7
commit 9068b0453c
5 changed files with 47 additions and 12 deletions

View File

@ -1,9 +1,11 @@
--- enscript-1.6.1/src/psgen.c.CAN-2004-1185 2005-01-10 15:55:33.560648363 +0000 diff -up enscript-1.6.4/src/psgen.c.CAN-2004-1185 enscript-1.6.4/src/psgen.c
+++ enscript-1.6.1/src/psgen.c 2005-01-10 15:56:30.266830723 +0000 --- enscript-1.6.4/src/psgen.c.CAN-2004-1185 2008-08-08 11:18:06.000000000 +0200
@@ -2210,9 +2210,10 @@ +++ 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)); MESSAGE (2, (stderr, "^@epsf=\"%s\"\n", token->u.epsf.filename));
i = strlen (token->u.epsf.filename); i = strlen (token->u.epsf.filename);
+
+ /* + /*
if (i > 0 && token->u.epsf.filename[i - 1] == '|') if (i > 0 && token->u.epsf.filename[i - 1] == '|')
{ {
@ -12,11 +14,11 @@
token->u.epsf.pipe = 1; token->u.epsf.pipe = 1;
token->u.epsf.filename[i - 1] = '\0'; token->u.epsf.filename[i - 1] = '\0';
token->u.epsf.fp = popen (token->u.epsf.filename, "r"); token->u.epsf.fp = popen (token->u.epsf.filename, "r");
@@ -2225,6 +2226,7 @@ @@ -2401,6 +2403,7 @@ recognize_eps_file (Token *token)
} }
} }
else else
+ */ + */
{ {
/* Read EPS data from file. */ char *filename;
tilde_subst (token->u.epsf.filename, filename);

View File

@ -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)

View File

@ -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;

View File

@ -1,10 +1,10 @@
--- enscript-1.6.1/src/main.c.doublefree 2004-09-27 14:21:29.954102199 +0100 diff -up enscript-1.6.4/src/main.c.doublefree enscript-1.6.4/src/main.c
+++ enscript-1.6.1/src/main.c 2004-09-27 14:21:31.390828039 +0100 --- enscript-1.6.4/src/main.c.doublefree 2008-08-08 11:10:07.000000000 +0200
@@ -1505,9 +1505,9 @@ +++ enscript-1.6.4/src/main.c 2008-08-08 11:11:51.000000000 +0200
process_file (_("Table of Contents"), &is); @@ -1714,8 +1714,9 @@ name width\theight\tllx\tlly
is_close (&is); is_close (&is);
} }
-
- /* Clean up toc file. */ - /* Clean up toc file. */
- fclose (toc_fp); - fclose (toc_fp);
+ else + else

View File

@ -1,7 +1,7 @@
Summary: A plain ASCII to PostScript converter. Summary: A plain ASCII to PostScript converter.
Name: enscript Name: enscript
Version: 1.6.4 Version: 1.6.4
Release: 9%{?dist} Release: 10%{?dist}
License: GPLv2 License: GPLv2
Group: Applications/Publishing Group: Applications/Publishing
Source0: http://www.iki.fi/mtr/genscript/enscript-%{version}.tar.gz 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 Patch6: enscript-1.6.1-CAN-2004-1185.patch
Patch7: enscript-1.6.1-CAN-2004-1186.patch Patch7: enscript-1.6.1-CAN-2004-1186.patch
Patch8: enscript-wrap_header.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/ URL: http://www.codento.com/people/mtr/genscript/
Prereq: /sbin/install-info Prereq: /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -37,6 +39,8 @@ includes many options for customizing printouts.
%patch6 -p1 -b .CAN-2004-1185 %patch6 -p1 -b .CAN-2004-1185
%patch7 -p1 -b .CAN-2004-1186 %patch7 -p1 -b .CAN-2004-1186
%patch8 -p1 -b .wrap_header %patch8 -p1 -b .wrap_header
%patch9 -p1 -b .rh457719
%patch10 -p1 -b .rh457720
%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st %{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
install -pm 644 %{SOURCE2} states/hl/php.st install -pm 644 %{SOURCE2} states/hl/php.st
@ -90,6 +94,11 @@ fi
%changelog %changelog
* Fri Aug 08 2008 Adam Tkac <atkac redhat com> 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 <rel-eng@fedoraproject.org> - 1.6.4-9 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6.4-9
- Autorebuild for GCC 4.3 - Autorebuild for GCC 4.3