|
@@ -3,73 +3,46 @@
|
|
|
|
|
|
Summary: OpenPrinting CUPS filters and backends
|
|
|
Name: cups-filters
|
|
|
-Version: 1.28.16
|
|
|
+Version: 2.0.1
|
|
|
Release: 1%{?_dist_release}
|
|
|
Group: publishing
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
Packager: tomop
|
|
|
|
|
|
-# For a breakdown of the licensing, see COPYING file
|
|
|
-# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
|
|
|
-# imagetopdf, pstopdf, texttopdf
|
|
|
-# backends: parallel, serial
|
|
|
-# GPLv2+: filters: gstopxl, textonly, texttops, imagetops, foomatic-rip
|
|
|
-# GPLv3: filters: bannertopdf
|
|
|
-# GPLv3+: filters: urftopdf, rastertopdf
|
|
|
-# LGPLv2+: utils: cups-browsed
|
|
|
-# MIT: filters: gstoraster, pdftoijs, pdftoopvp, pdftopdf, pdftoraster
|
|
|
-License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT and BSD with advertising
|
|
|
-URL: https://wiki.linuxfoundation.org/openprinting/cups-filters
|
|
|
-Source0: https://openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
|
|
|
-
|
|
|
-Requires: cups
|
|
|
-Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
+
|
|
|
+# the CUPS exception text is the same as LLVM exception, so using that name with
|
|
|
+
|
|
|
+# agreement from legal team
|
|
|
+
|
|
|
+# https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/A7GFSD6M3GYGSI32L2FC5KB22DUAEQI3/
|
|
|
+
|
|
|
+License: Apache-2.0 WITH LLVM-exception
|
|
|
+URL: https://github.com/OpenPrinting/cups-filters
|
|
|
+Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
+Source1: lftocrlf.ppd
|
|
|
+Source2: lftocrlf
|
|
|
|
|
|
# Obsolete cups-php (bug #971741)
|
|
|
Obsoletes: cups-php < 1:1.6.0-1
|
|
|
# Don't Provide it because we don't build the php module
|
|
|
#Provides: cups-php = 1:1.6.0-1
|
|
|
|
|
|
-BuildRequires: cups-devel
|
|
|
-# pdftopdf
|
|
|
-BuildRequires: qpdf-devel
|
|
|
-# pdftops
|
|
|
-BuildRequires: poppler-utils
|
|
|
-# pdftoijs, pdftoopvp, pdftoraster, gstoraster
|
|
|
-BuildRequires: poppler-devel
|
|
|
-BuildRequires: libjpeg-devel
|
|
|
-BuildRequires: libpng-devel
|
|
|
-BuildRequires: libtiff-devel
|
|
|
-BuildRequires: zlib-devel
|
|
|
-BuildRequires: pkgconfig dbus-devel
|
|
|
-# libijs
|
|
|
-BuildRequires: ghostscript-devel
|
|
|
-BuildRequires: freetype2-devel
|
|
|
-BuildRequires: fontconfig-devel
|
|
|
-BuildRequires: lcms2-devel
|
|
|
-# cups-browsed
|
|
|
-BuildRequires: avahi-devel avahi-glib-devel
|
|
|
+BuildRequires: pkgconfig
|
|
|
+BuildRequires: pkgconfig(cups)
|
|
|
+BuildRequires: libcupsfilters-devel
|
|
|
+BuildRequires: pkgconfig(libppd)
|
|
|
+BuildRequires: gettext-devel
|
|
|
|
|
|
# Make sure we get postscriptdriver tags.
|
|
|
-BuildRequires: python-cups
|
|
|
-
|
|
|
-# Testing font for test scripts.
|
|
|
-BuildRequires: TrueType-dejavu
|
|
|
+BuildRequires: python3-cups
|
|
|
|
|
|
# autogen.sh
|
|
|
BuildRequires: autoconf
|
|
|
BuildRequires: automake
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
-Requires: poppler-utils
|
|
|
-# pstopdf
|
|
|
-Requires: bc grep sed
|
|
|
-
|
|
|
-# cups-browsed
|
|
|
-#Requires(post): systemd
|
|
|
-#Requires(preun): systemd
|
|
|
-#Requires(postun): systemd
|
|
|
+Requires: avahi
|
|
|
|
|
|
# Ghostscript CUPS filters live here since Ghostscript 9.08.
|
|
|
Provides: ghostscript-cups = 9.08
|
|
@@ -83,27 +56,6 @@ independently of Apple, especially filters for the PDF-centric printing
|
|
|
workflow introduced by OpenPrinting.
|
|
|
|
|
|
|
|
|
-%package libs
|
|
|
-Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries
|
|
|
-Group: system
|
|
|
-# LGPLv2: libcupsfilters
|
|
|
-# MIT: libfontembed
|
|
|
-License: LGPLv2 and MIT
|
|
|
-
|
|
|
-%description libs
|
|
|
-This package provides cupsfilters and fontembed libraries.
|
|
|
-
|
|
|
-
|
|
|
-%package devel
|
|
|
-Summary: OpenPrinting CUPS filters and backends - development environment
|
|
|
-Group: programming
|
|
|
-License: LGPLv2 and MIT
|
|
|
-Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
-
|
|
|
-%description devel
|
|
|
-This is the development package for OpenPrinting CUPS filters and backends.
|
|
|
-
|
|
|
-
|
|
|
%debug_package
|
|
|
|
|
|
|
|
@@ -115,147 +67,74 @@ This is the development package for OpenPrinting CUPS filters and backends.
|
|
|
# work-around Rpath
|
|
|
./autogen.sh
|
|
|
|
|
|
-# --with-pdftops=hybrid - use Poppler's pdftops instead of Ghostscript for
|
|
|
-# Brother, Minolta, and Konica Minolta to work around
|
|
|
-# bugs in the printer's PS interpreters
|
|
|
-# --with-rcdir=no - don't install SysV init script
|
|
|
-export IJS_CFLAGS="-I/usr/include/ijs"
|
|
|
-export IJS_LIBS="-lijs"
|
|
|
-export CXXFLAGS="${CXXFLAGS} -std=c++17"
|
|
|
-
|
|
|
%configure --disable-static \
|
|
|
--disable-silent-rules \
|
|
|
+ --disable-rpath \
|
|
|
--disable-mutool \
|
|
|
- --disable-exif \
|
|
|
- --with-pdftops=hybrid \
|
|
|
- --enable-dbus \
|
|
|
- --with-rcdir=%{_sysconfdir} \
|
|
|
- --with-test-font-path=/usr/share/fonts/TrueType-dejavu/DejaVuSans.ttf
|
|
|
+ --enable-driverless \
|
|
|
+ --enable-universal-cups-filter
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
%install
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
-
|
|
|
-# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
|
|
|
-mkdir __doc
|
|
|
-mv %{buildroot}%{_datadir}/doc/cups-filters/* __doc
|
|
|
-rm -rf %{buildroot}%{_datadir}/doc/cups-filters
|
|
|
+# 2229776 - Add textonly driver back, but as lftocrlf
|
|
|
+install -p -m 0755 %{SOURCE2} %{buildroot}%{_cups_serverbin}/filter/lftocrlf
|
|
|
+install -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/ppd/cupsfilters/lftocrlf.ppd
|
|
|
|
|
|
# Don't ship libtool la files.
|
|
|
rm -f %{buildroot}%{_libdir}/lib*.la
|
|
|
|
|
|
-# Not sure what is this good for.
|
|
|
-rm -f %{buildroot}%{_bindir}/ttfread
|
|
|
+# LSB3.2 requires /usr/bin/foomatic-rip,
|
|
|
+# create it temporarily as a relative symlink
|
|
|
+# we may use symlink to universal filter, but LSB is about guaranteed compatibility set
|
|
|
+# among distibutions, so rather have the strict foomatic-rip filter...
|
|
|
+ln -sf %{_cups_serverbin}/filter/foomatic-rip %{buildroot}%{_bindir}/foomatic-rip
|
|
|
|
|
|
-# systemd unit file
|
|
|
-#mkdir -p %{buildroot}%{_unitdir}
|
|
|
-#install -p -m 644 utils/cups-browsed.service %{buildroot}%{_unitdir}
|
|
|
+# remove license files which are in %%pkgdocdir
|
|
|
+rm -f %{buildroot}%{_pkgdocdir}/{COPYING,NOTICE,LICENSE}
|
|
|
|
|
|
-# SysV initscripts
|
|
|
-rm -rf %{buildroot}%{_sysconfdir}/rc{0,2,3,5}.d
|
|
|
-rm -rf %{buildroot}%{_sysconfdir}/rc.d
|
|
|
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d
|
|
|
-mv -f %{buildroot}%{_sysconfdir}/init.d %{buildroot}%{_sysconfdir}/rc.d/
|
|
|
+# remove INSTALL since it is unnecessary
|
|
|
+rm -f %{buildroot}%{_pkgdocdir}/INSTALL
|
|
|
|
|
|
-for f in %{buildroot}%{_cups_serverbin}/filter/*; do
|
|
|
- if [ -f $f ]; then
|
|
|
- chmod 755 $f
|
|
|
- fi
|
|
|
-done
|
|
|
+# remove CHANGES-1.x.md, since it is carried by a dependency
|
|
|
+rm -f %{buildroot}%{_pkgdocdir}/CHANGES-1.x.md
|
|
|
|
|
|
|
|
|
%check
|
|
|
make check
|
|
|
|
|
|
|
|
|
-%post
|
|
|
-#%systemd_post cups-browsed.service
|
|
|
-
|
|
|
-# Initial installation
|
|
|
-if [ $1 -eq 1 ] ; then
|
|
|
- IN=%{_sysconfdir}/cups/cupsd.conf
|
|
|
- OUT=%{_sysconfdir}/cups/cups-browsed.conf
|
|
|
- keyword=BrowsePoll
|
|
|
-
|
|
|
- # We can remove this after few releases, it's just for the introduction of cups-browsed.
|
|
|
- if [ -f "$OUT" ]; then
|
|
|
- echo -e "\n# NOTE: This file is not part of CUPS. You need to start & enable cups-browsed service." >> "$OUT"
|
|
|
- fi
|
|
|
-
|
|
|
- # move BrowsePoll from cupsd.conf to cups-browsed.conf
|
|
|
- if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
|
|
|
- if ! grep -iq ^$keyword "$OUT"; then
|
|
|
- (cat >> "$OUT" <<EOF
|
|
|
-
|
|
|
-# Settings automatically moved from cupsd.conf by RPM package:
|
|
|
-EOF
|
|
|
- ) || :
|
|
|
- (grep -i ^$keyword "$IN" >> "$OUT") || :
|
|
|
- #systemctl enable cups-browsed.service >/dev/null 2>&1 || :
|
|
|
- fi
|
|
|
- sed -i -e "s,^$keyword,#$keyword directive moved to cups-browsed.conf\n#$keyword,i" "$IN" || :
|
|
|
- fi
|
|
|
-fi
|
|
|
-
|
|
|
-%preun
|
|
|
-#%systemd_preun cups-browsed.service
|
|
|
-
|
|
|
-%postun
|
|
|
-#%systemd_postun_with_restart cups-browsed.service
|
|
|
-
|
|
|
-
|
|
|
%files
|
|
|
-%license COPYING
|
|
|
-%doc __doc/README __doc/AUTHORS __doc/NEWS
|
|
|
-%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
|
|
|
+%license COPYING LICENSE NOTICE
|
|
|
+%doc AUTHORS ABOUT-NLS CHANGES.md CONTRIBUTING.md DEVELOPING.md README.md
|
|
|
%{_bindir}/driverless
|
|
|
%{_bindir}/driverless-fax
|
|
|
%{_bindir}/foomatic-rip
|
|
|
+%dir %{_cups_serverbin}/filter
|
|
|
+%dir %{_cups_serverbin}/backend
|
|
|
+%dir %{_cups_serverbin}/driver
|
|
|
%attr(-,root,root) %{_cups_serverbin}/filter/*
|
|
|
-#exclude %{_cups_serverbin}/filter/pdftoraster
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/beh
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/cups-brf
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/driverless
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/driverless-fax
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/implicitclass
|
|
|
-%attr(0755,root,root) %{_cups_serverbin}/backend/parallel
|
|
|
+%attr(0744,root,root) %{_cups_serverbin}/backend/beh
|
|
|
+%{_cups_serverbin}/backend/driverless
|
|
|
+%{_cups_serverbin}/backend/driverless-fax
|
|
|
+%attr(0744,root,root) %{_cups_serverbin}/backend/parallel
|
|
|
# Serial backend needs to run as root (bug #212577#c4).
|
|
|
-%attr(0700,root,root) %{_cups_serverbin}/backend/serial
|
|
|
+%attr(0744,root,root) %{_cups_serverbin}/backend/serial
|
|
|
%attr(0755,root,root) %{_cups_serverbin}/driver/driverless
|
|
|
%attr(0755,root,root) %{_cups_serverbin}/driver/driverless-fax
|
|
|
-%{_datadir}/cups/banners
|
|
|
-%{_datadir}/cups/braille
|
|
|
-%{_datadir}/cups/charsets
|
|
|
-%{_datadir}/cups/data/*
|
|
|
-# this needs to be in the main package because of cupsfilters.drv
|
|
|
+%dir %{_datadir}/cups
|
|
|
+%dir %{_datadir}/cups/drv
|
|
|
%{_datadir}/cups/drv/*
|
|
|
+%dir %{_datadir}/cups/mime
|
|
|
%{_datadir}/cups/mime/*
|
|
|
+%dir %{_datadir}/ppd
|
|
|
%{_datadir}/ppd/*
|
|
|
-%{_datadir}/cups/ppdc/*
|
|
|
-%{_sbindir}/cups-browsed
|
|
|
-#%{_unitdir}/cups-browsed.service
|
|
|
-%{_initdir}/cups-browsed
|
|
|
+%dir %{_datadir}/ppdc
|
|
|
+%{_datadir}/ppdc/*
|
|
|
%{_mandir}/man1/driverless.1.gz
|
|
|
%{_mandir}/man1/foomatic-rip.1.gz
|
|
|
-%{_mandir}/man8/cups-browsed.8.gz
|
|
|
-%{_mandir}/man5/cups-browsed.conf.5.gz
|
|
|
-
|
|
|
-%files libs
|
|
|
-%license __doc/COPYING
|
|
|
-%doc fontembed/README
|
|
|
-%{_libdir}/libcupsfilters.so.*
|
|
|
-%{_libdir}/libfontembed.so.*
|
|
|
-
|
|
|
-%files devel
|
|
|
-%{_includedir}/cupsfilters
|
|
|
-%{_includedir}/fontembed
|
|
|
-%{_datadir}/cups/ppdc/escp.h
|
|
|
-%{_libdir}/pkgconfig/libcupsfilters.pc
|
|
|
-%{_libdir}/pkgconfig/libfontembed.pc
|
|
|
-%{_libdir}/libcupsfilters.so
|
|
|
-%{_libdir}/libfontembed.so
|
|
|
|
|
|
|
|
|
%changelog
|