foomatic-rip's upstream moved from foomatic-filters to cups-filters-1.0.42
This commit is contained in:
parent
f35c944f89
commit
7ceea0f262
@ -1,12 +0,0 @@
|
|||||||
diff -up foomatic-filters-4.0.8/foomaticrip.c.debug-string foomatic-filters-4.0.8/foomaticrip.c
|
|
||||||
--- foomatic-filters-4.0.8/foomaticrip.c.debug-string 2011-10-24 13:01:42.000000000 +0200
|
|
||||||
+++ foomatic-filters-4.0.8/foomaticrip.c 2011-10-24 13:05:55.737030758 +0200
|
|
||||||
@@ -1651,7 +1651,7 @@ int main(int argc, char** argv)
|
|
||||||
if (dontparse == 2) {
|
|
||||||
/* Raw queue, simply pass the input into the postpipe (or to STDOUT
|
|
||||||
when there is no postpipe) */
|
|
||||||
- _log("Raw printing, executing \"cat %s\"\n\n");
|
|
||||||
+ _log("Raw printing, executing \"cat %s\"\n\n", postpipe->data);
|
|
||||||
snprintf(tmp, 1024, "cat %s", postpipe->data);
|
|
||||||
run_system_process("raw-printer", tmp);
|
|
||||||
continue;
|
|
@ -1,10 +1,7 @@
|
|||||||
%global enginever 4.0.9
|
|
||||||
%global filtersver 4.0.17
|
|
||||||
|
|
||||||
Summary: Tools for using the foomatic database of printers and printer drivers
|
Summary: Tools for using the foomatic database of printers and printer drivers
|
||||||
Name: foomatic
|
Name: foomatic
|
||||||
Version: %{enginever}
|
Version: 4.0.9
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
@ -13,15 +10,7 @@ Obsoletes: printer-filters < 1.1-8
|
|||||||
Provides: printer-filters = 1.1-8
|
Provides: printer-filters = 1.1-8
|
||||||
|
|
||||||
# The database engine.
|
# The database engine.
|
||||||
Source0: http://www.openprinting.org/download/foomatic/foomatic-db-engine-%{enginever}.tar.gz
|
Source0: http://www.openprinting.org/download/foomatic/foomatic-db-engine-%{version}.tar.gz
|
||||||
|
|
||||||
# The CUPS driver and filter.
|
|
||||||
# Source1: http://www.openprinting.org/download/foomatic/foomatic-filters-%{filtersver}.tar.gz
|
|
||||||
# We need to remove test/*.sh, because those files are non-free (Artistic). We don't use them.
|
|
||||||
Source1: foomatic-filters-%{filtersver}-clean.tar.gz
|
|
||||||
|
|
||||||
## PATCHES FOR FOOMATIC-FILTERS (PATCHES 1 TO 100)
|
|
||||||
Patch1: foomatic-filters-debug-string.patch
|
|
||||||
|
|
||||||
## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200)
|
## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200)
|
||||||
|
|
||||||
@ -35,15 +24,12 @@ BuildRequires: autoconf, automake
|
|||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
Requires: dbus
|
Requires: dbus
|
||||||
Requires: %{name}-filters = %{version}-%{release}
|
Requires: cups-filters >= 1.0.42
|
||||||
Requires: perl >= 3:5.8.1
|
Requires: perl >= 3:5.8.1
|
||||||
Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)")
|
Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)")
|
||||||
# For 'rm' and '/sbin/service' in post
|
# For 'rm' and '/sbin/service' in post
|
||||||
Requires: fileutils initscripts
|
Requires: fileutils initscripts
|
||||||
|
|
||||||
# foomatic-filters checks for a conversion utility (bug #124931).
|
|
||||||
BuildRequires: mpage
|
|
||||||
|
|
||||||
# Make sure we get postscriptdriver tags. Safe to comment out when
|
# Make sure we get postscriptdriver tags. Safe to comment out when
|
||||||
# bootstrapping a new architecture.
|
# bootstrapping a new architecture.
|
||||||
BuildRequires: python-cups, cups
|
BuildRequires: python-cups, cups
|
||||||
@ -71,31 +57,10 @@ queues (foomatic-configure) and to print files/manipulate jobs
|
|||||||
|
|
||||||
The site http://www.linuxprinting.org/ is based on this database.
|
The site http://www.linuxprinting.org/ is based on this database.
|
||||||
|
|
||||||
%package filters
|
|
||||||
Summary: CUPS print filters for the foomatic package
|
|
||||||
License: GPLv2+
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
|
|
||||||
%description filters
|
|
||||||
CUPS print filters for the foomatic package.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -a 1
|
%setup -q -n foomatic-db-engine-%{version}
|
||||||
|
|
||||||
pushd foomatic-filters-%{filtersver}
|
|
||||||
# Too few arguments for format in a debugging string (bug #726384)
|
|
||||||
%patch1 -p1 -b .debug-string
|
|
||||||
|
|
||||||
aclocal
|
|
||||||
automake --add-missing
|
|
||||||
autoconf
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd foomatic-db-engine-%{enginever}
|
|
||||||
chmod a+x mkinstalldirs
|
chmod a+x mkinstalldirs
|
||||||
aclocal
|
|
||||||
autoconf
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LIB_CUPS=%{_cups_serverbin}
|
export LIB_CUPS=%{_cups_serverbin}
|
||||||
@ -103,34 +68,18 @@ export CUPS_BACKENDS=%{_cups_serverbin}/backend
|
|||||||
export CUPS_FILTERS=%{_cups_serverbin}/filter
|
export CUPS_FILTERS=%{_cups_serverbin}/filter
|
||||||
export CUPS_PPDS=%{_datadir}/cups/model
|
export CUPS_PPDS=%{_datadir}/cups/model
|
||||||
|
|
||||||
pushd foomatic-filters-%{filtersver}
|
aclocal
|
||||||
%configure
|
autoconf
|
||||||
make PREFIX=%{_prefix} CFLAGS="$RPM_OPT_FLAGS"
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd foomatic-db-engine-%{enginever}
|
|
||||||
%configure --disable-xmltest
|
%configure --disable-xmltest
|
||||||
make PREFIX=%{_prefix} CFLAGS="$RPM_OPT_FLAGS"
|
make PREFIX=%{_prefix} CFLAGS="$RPM_OPT_FLAGS"
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd foomatic-filters-%{filtersver}
|
|
||||||
mkdir -p %{buildroot}%{perl_vendorlib}
|
|
||||||
make DESTDIR=%buildroot PREFIX=%{_prefix} \
|
|
||||||
INSTALLSITELIB=%{perl_vendorlib} \
|
|
||||||
INSTALLSITEARCH=%{perl_vendorarch} \
|
|
||||||
install-main install-cups
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd foomatic-db-engine-%{enginever}
|
|
||||||
make DESTDIR=%buildroot PREFIX=%{_prefix} \
|
make DESTDIR=%buildroot PREFIX=%{_prefix} \
|
||||||
INSTALLSITELIB=%{perl_vendorlib} \
|
INSTALLSITELIB=%{perl_vendorlib} \
|
||||||
INSTALLSITEARCH=%{perl_vendorarch} \
|
INSTALLSITEARCH=%{perl_vendorarch} \
|
||||||
install
|
install
|
||||||
popd
|
|
||||||
|
|
||||||
# Use relative, not absolute, symlink for CUPS filter and driver.
|
# Use relative, not absolute, symlink for CUPS driver.
|
||||||
ln -sf ../../../bin/foomatic-rip %{buildroot}%{_cups_serverbin}/filter/foomatic-rip
|
|
||||||
ln -sf ../../../bin/foomatic-ppdfile %{buildroot}%{_cups_serverbin}/driver/foomatic
|
ln -sf ../../../bin/foomatic-ppdfile %{buildroot}%{_cups_serverbin}/driver/foomatic
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_var}/cache/foomatic
|
mkdir -p %{buildroot}%{_var}/cache/foomatic
|
||||||
@ -145,18 +94,13 @@ rm -rf \
|
|||||||
#%{buildroot}%%{_libdir}/perl5/site_perl
|
#%{buildroot}%%{_libdir}/perl5/site_perl
|
||||||
find %{buildroot} -name .packlist | xargs rm -f
|
find %{buildroot} -name .packlist | xargs rm -f
|
||||||
|
|
||||||
mkdir _enginedocs
|
|
||||||
cp -pr --parents foomatic-db-engine-%{enginever}/COPYING _enginedocs/
|
|
||||||
mkdir _filtersdocs
|
|
||||||
cp -pr --parents foomatic-filters-%{filtersver}/COPYING _filtersdocs/
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/rm -f /var/cache/foomatic/*
|
/bin/rm -f /var/cache/foomatic/*
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc _enginedocs/*
|
%doc COPYING
|
||||||
%config(noreplace) %{_sysconfdir}/foomatic/defaultspooler
|
%config(noreplace) %{_sysconfdir}/foomatic/defaultspooler
|
||||||
%{_bindir}/foomatic-combo-xml
|
%{_bindir}/foomatic-combo-xml
|
||||||
%{_bindir}/foomatic-compiledb
|
%{_bindir}/foomatic-compiledb
|
||||||
@ -170,7 +114,6 @@ exit 0
|
|||||||
%{_bindir}/foomatic-searchprinter
|
%{_bindir}/foomatic-searchprinter
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{perl_vendorlib}/Foomatic
|
%{perl_vendorlib}/Foomatic
|
||||||
%{_cups_serverbin}/backend/beh
|
|
||||||
%{_cups_serverbin}/driver/*
|
%{_cups_serverbin}/driver/*
|
||||||
%{_mandir}/man1/foomatic-combo-xml.1*
|
%{_mandir}/man1/foomatic-combo-xml.1*
|
||||||
%{_mandir}/man1/foomatic-compiledb.1*
|
%{_mandir}/man1/foomatic-compiledb.1*
|
||||||
@ -182,15 +125,10 @@ exit 0
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%{_var}/cache/foomatic
|
%{_var}/cache/foomatic
|
||||||
|
|
||||||
%files filters
|
|
||||||
%doc _filtersdocs/*
|
|
||||||
%dir %{_sysconfdir}/foomatic
|
|
||||||
%config(noreplace) %{_sysconfdir}/foomatic/filter.conf
|
|
||||||
%{_bindir}/foomatic-rip
|
|
||||||
%{_cups_serverbin}/filter/foomatic-rip
|
|
||||||
%{_mandir}/man1/foomatic-rip.1*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 30 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.9-8
|
||||||
|
- foomatic-rip's upstream moved from foomatic-filters to cups-filters-1.0.42
|
||||||
|
|
||||||
* Thu Nov 28 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.9-7
|
* Thu Nov 28 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.9-7
|
||||||
- Correct Obsoletes/Provides printer-filters (bug #1035450)
|
- Correct Obsoletes/Provides printer-filters (bug #1035450)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user