diff --git a/enscript-build.patch b/enscript-build.patch new file mode 100644 index 0000000..b965083 --- /dev/null +++ b/enscript-build.patch @@ -0,0 +1,11 @@ +diff -up enscript-1.6.6/configure.ac.build enscript-1.6.6/configure.ac +--- enscript-1.6.6/configure.ac.build 2012-09-25 21:22:49.000000000 +0200 ++++ enscript-1.6.6/configure.ac 2012-09-26 15:46:10.988041135 +0200 +@@ -11,7 +11,6 @@ AC_PROG_INSTALL + AC_PROG_CC + + AC_USE_SYSTEM_EXTENSIONS +-AM_C_PROTOTYPES + + AC_C_CONST + AC_FUNC_ALLOCA diff --git a/enscript.spec b/enscript.spec index 3fed256..59d4fb8 100644 --- a/enscript.spec +++ b/enscript.spec @@ -22,6 +22,8 @@ Patch8: enscript-wrap_header.patch Patch10:enscript-1.6.4-rh457720.patch Patch12:enscript-rh477382.patch +Patch13:enscript-build.patch + Requires(preun): /sbin/install-info Requires(post): /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -44,12 +46,14 @@ includes many options for customizing printouts %patch8 -p1 -b .wrap_header %patch10 -p1 -b .rh457720 %patch12 -p1 -b .rh477382 +%patch13 -p1 -b .build %{__tar} -C states/hl -zxf %{SOURCE1} ruby.st install -pm 644 %{SOURCE2} states/hl/php.st %build autoreconf -fiv +export CPPFLAGS='-DPROTOTYPES' %configure --with-media=Letter make %{?_smp_mflags}