- build no more requires ghostscript-devel
- removed foomatic-filters-int-options.patch
This commit is contained in:
Jiří Popelka 2010-02-16 13:54:22 +00:00
parent b8a26ebb49
commit 580f6a09de
5 changed files with 23 additions and 38 deletions

View File

@ -79,3 +79,5 @@ foomatic-db-hpijs-20090701.tar.gz
foomatic-db-4.0-20090702.tar.gz
foomatic-db-engine-4.0.3.tar.gz
foomatic-filters-4.0.3.tar.gz
foomatic-db-engine-4.0.4.tar.gz
foomatic-filters-4.0.4.tar.gz

View File

@ -1,13 +0,0 @@
diff -up foomatic-filters-4.0.3/options.c.int-options foomatic-filters-4.0.3/options.c
--- foomatic-filters-4.0.3/options.c.int-options 2009-08-19 19:08:41.000000000 +0100
+++ foomatic-filters-4.0.3/options.c 2010-01-19 16:43:09.343981005 +0000
@@ -863,7 +863,8 @@ int option_get_command(dstr_t *cmd, opti
/* If the value is set to a predefined choice */
choice = option_find_choice(opt, valstr);
- if (choice) {
+ if (choice && (*choice->command ||
+ ((opt->type != TYPE_INT) && (opt->type != TYPE_FLOAT)))) {
dstrcpy(cmd, choice->command);
return 1;
}

View File

@ -1,15 +1,12 @@
diff -up foomatic-filters-4.0.2/pdf.c.mkstemp foomatic-filters-4.0.2/pdf.c
--- foomatic-filters-4.0.2/pdf.c.mkstemp 2009-07-02 15:52:38.960401425 +0100
+++ foomatic-filters-4.0.2/pdf.c 2009-07-02 16:24:39.966400563 +0100
@@ -157,6 +157,7 @@ static int pdf_extract_pages(char filena
int last)
diff -up foomatic-filters-4.0.4/pdf.c.mkstemp foomatic-4.0.4/foomatic-filters-4.0.4/pdf.c
--- foomatic-filters-4.0.4/pdf.c.mkstemp 2010-02-15 13:57:40.000000000 +0100
+++ foomatic-filters-4.0.4/pdf.c 2010-02-15 17:58:11.000000000 +0100
@@ -112,13 +112,14 @@ static int pdf_extract_pages(char filena
{
void *minst;
+ int fd;
char gscommand[4095];
char filename_arg[PATH_MAX], first_arg[50], last_arg[50];
const char *gs_args[] = { "", "-q", "-dNOPAUSE", "-dBATCH",
"-dPARANOIDSAFER", "-sDEVICE=pdfwrite", filename_arg, first_arg,
@@ -165,10 +166,10 @@ static int pdf_extract_pages(char filena
+ int fd;
_log("Extracting pages %d through %d\n", first, last);
snprintf(filename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir());
@ -17,8 +14,7 @@ diff -up foomatic-filters-4.0.2/pdf.c.mkstemp foomatic-filters-4.0.2/pdf.c
- if (!filename[0])
+ if ((fd = mkstemp(filename)) == -1)
return 0;
+ close (fd);
if (gsapi_new_instance(&minst, NULL) < 0)
{
_log("Could not create ghostscript instance\n");
snprintf(filename_arg, PATH_MAX, "-sOutputFile=%s", filename);
snprintf(first_arg, 50, "-dFirstPage=%d", first);

View File

@ -1,16 +1,16 @@
%define enginever 4.0.3
%define filtersver 4.0.3
%define enginever 4.0.4
%define filtersver 4.0.4
Summary: Database of printers and printer drivers
Name: foomatic
Version: %{enginever}
Release: 8%{?dist}
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
Source0: http://www.openprinting.org/download/foomatic/foomatic-db-engine-%{enginever}.tar.gz
Source1: http://www.linuxprinting.org/download/foomatic/foomatic-filters-%{filtersver}.tar.gz
Source1: http://www.openprinting.org/download/foomatic/foomatic-filters-%{filtersver}.tar.gz
## PATCHES FOR FOOMATIC-FILTERS (PATCHES 1 TO 100)
@ -20,9 +20,6 @@ Patch1: foomatic-filters-libdir.patch
# Use mkstemp, not mktemp.
Patch2: foomatic-mkstemp.patch
# Fix for handling integer options (bug #531278).
Patch3: foomatic-filters-int-options.patch
## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200)
# Use libdir.
@ -40,7 +37,6 @@ Url: http://www.linuxprinting.org
BuildRequires: perl >= 3:5.8.1
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: libxml2-devel
BuildRequires: ghostscript-devel
BuildRequires: autoconf, automake
BuildRequires: cups
Requires: perl >= 3:5.8.1
@ -76,7 +72,6 @@ The site http://www.linuxprinting.org/ is based on this database.
pushd foomatic-filters-%{filtersver}
%patch1 -p1 -b .libdir
%patch2 -p1 -b .mkstemp
%patch3 -p1 -b .int-options
aclocal
automake
autoconf
@ -164,6 +159,11 @@ rm -fr %buildroot $RPM_BUILD_DIR/%{name}
%{_var}/cache/foomatic
%changelog
* Tue Feb 16 2010 Jiri Popelka <jpopelka@redhat.com> - 4.0.4-1
- 4.0.4
- build no more requires ghostscript-devel
- removed foomatic-filters-int-options.patch
* Tue Jan 19 2010 Tim Waugh <twaugh@redhat.com> - 4.0.3-8
- Fix for handling integer options (bug #531278).

View File

@ -1,2 +1,2 @@
fdb02175cc857f63bb06b25ac3b1658b foomatic-db-engine-4.0.3.tar.gz
f2fb7c48cc6b1af6f76dd0529d6dbd98 foomatic-filters-4.0.3.tar.gz
675999e0ab8d59ad34a805c378830354 foomatic-db-engine-4.0.4.tar.gz
f67fc793ee8d4d076c6671d6e6a72367 foomatic-filters-4.0.4.tar.gz