|
@@ -1,10 +1,12 @@
|
|
# we build CUPS also with relro
|
|
# we build CUPS also with relro
|
|
%global _hardened_build 1
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
+
|
|
Summary: OpenPrinting CUPS filters and backends
|
|
Summary: OpenPrinting CUPS filters and backends
|
|
Name: cups-filters
|
|
Name: cups-filters
|
|
-Version: 1.0.76
|
|
+Version: 1.8.3
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
# For a breakdown of the licensing, see COPYING file
|
|
# For a breakdown of the licensing, see COPYING file
|
|
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
|
|
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
|
|
@@ -21,11 +23,6 @@ Group: System Environment/Base
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
|
|
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
|
|
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
|
|
|
|
|
|
-#Patch1: cups-filters-pdf-landscape.patch
|
|
|
|
-Patch2: cups-filters-dbus.patch
|
|
|
|
-#Patch3: cups-filters-memory-leaks.patch
|
|
|
|
-#Patch4: cups-filters-filter-costs.patch
|
|
|
|
-
|
|
|
|
Requires: cups
|
|
Requires: cups
|
|
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
@@ -111,19 +108,6 @@ This is the development package for OpenPrinting CUPS filters and backends.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
-# Fix PDF landscape printing (bug #768811).
|
|
|
|
-#%patch1 -p1 -b .pdf-landscape
|
|
|
|
-
|
|
|
|
-# Include dbus so that colord support works (bug #1026928).
|
|
|
|
-%patch2 -p1 -b .dbus
|
|
|
|
-
|
|
|
|
-# Fix memory leaks in cups-browsed (bug #1027317).
|
|
|
|
-#%patch3 -p1 -b .memory-leaks
|
|
|
|
-
|
|
|
|
-# Adjust filter costs so application/vnd.adobe-read-postscript input
|
|
|
|
-# doesn't go via pstotiff (bug #1008166).
|
|
|
|
-#%patch4 -p1 -b .filter-costs
|
|
|
|
-
|
|
|
|
%build
|
|
%build
|
|
# work-around Rpath
|
|
# work-around Rpath
|
|
./autogen.sh
|
|
./autogen.sh
|
|
@@ -167,6 +151,12 @@ rm -rf %{buildroot}%{_sysconfdir}/rc.d
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d
|
|
mv -f %{buildroot}%{_sysconfdir}/init.d %{buildroot}%{_sysconfdir}/rc.d/
|
|
mv -f %{buildroot}%{_sysconfdir}/init.d %{buildroot}%{_sysconfdir}/rc.d/
|
|
|
|
|
|
|
|
+for f in %{buildroot}%{_cups_serverbin}/filter/*; do
|
|
|
|
+ if [ -f $f ]; then
|
|
|
|
+ chmod 755 $f
|
|
|
|
+ fi
|
|
|
|
+done
|
|
|
|
+
|
|
%check
|
|
%check
|
|
make check
|
|
make check
|
|
|
|
|
|
@@ -217,22 +207,23 @@ fi
|
|
%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
|
|
%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
|
|
%config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
|
|
%config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
|
|
%{_bindir}/foomatic-rip
|
|
%{_bindir}/foomatic-rip
|
|
-%attr(0755,root,root) %{_cups_serverbin}/filter/*
|
|
+%attr(-,root,root) %{_cups_serverbin}/filter/*
|
|
%exclude %{_cups_serverbin}/filter/pdftoraster
|
|
%exclude %{_cups_serverbin}/filter/pdftoraster
|
|
%exclude %{_cups_serverbin}/filter/textonly
|
|
%exclude %{_cups_serverbin}/filter/textonly
|
|
|
|
+%attr(0755,root,root) %{_cups_serverbin}/backend/beh
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/implicitclass
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/implicitclass
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/parallel
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/parallel
|
|
# Serial backend needs to run as root (bug #212577#c4).
|
|
# Serial backend needs to run as root (bug #212577#c4).
|
|
%attr(0700,root,root) %{_cups_serverbin}/backend/serial
|
|
%attr(0700,root,root) %{_cups_serverbin}/backend/serial
|
|
%{_datadir}/cups/banners
|
|
%{_datadir}/cups/banners
|
|
|
|
+%{_datadir}/cups/braille
|
|
%{_datadir}/cups/charsets
|
|
%{_datadir}/cups/charsets
|
|
%{_datadir}/cups/data/*
|
|
%{_datadir}/cups/data/*
|
|
# this needs to be in the main package because of cupsfilters.drv
|
|
# this needs to be in the main package because of cupsfilters.drv
|
|
-%{_datadir}/cups/ppdc/pcl.h
|
|
+%{_datadir}/cups/drv/*
|
|
-%{_datadir}/cups/drv/cupsfilters.drv
|
|
+%{_datadir}/cups/mime/*
|
|
-%{_datadir}/cups/mime/cupsfilters.types
|
|
+%{_datadir}/ppd/*
|
|
-%{_datadir}/cups/mime/cupsfilters.convs
|
|
+%{_datadir}/cups/ppdc/*
|
|
-%{_datadir}/ppd/cupsfilters
|
|
|
|
%{_sbindir}/cups-browsed
|
|
%{_sbindir}/cups-browsed
|
|
#%{_unitdir}/cups-browsed.service
|
|
#%{_unitdir}/cups-browsed.service
|
|
%{_initdir}/cups-browsed
|
|
%{_initdir}/cups-browsed
|
|
@@ -255,6 +246,9 @@ fi
|
|
%{_libdir}/libfontembed.so
|
|
%{_libdir}/libfontembed.so
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.3-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-3
|
|
* Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-3
|
|
- rebuild with poppler-0.43.0
|
|
- rebuild with poppler-0.43.0
|
|
|
|
|