2012-08-08 10:55:08 +00:00
|
|
|
# we build CUPS also with relro
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
Summary: OpenPrinting CUPS filters and backends
|
|
|
|
Name: cups-filters
|
2013-03-22 10:41:45 +00:00
|
|
|
Version: 1.0.31
|
2013-03-28 15:35:11 +00:00
|
|
|
Release: 2%{?dist}
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
# For a breakdown of the licensing, see COPYING file
|
|
|
|
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
|
|
|
|
# imagetopdf, pstopdf, texttopdf
|
|
|
|
# backends: parallel, serial
|
|
|
|
# GPLv2+: filters: textonly, texttops, imagetops
|
|
|
|
# GPLv3: filters: bannertopdf
|
2012-11-29 11:04:21 +00:00
|
|
|
# GPLv3+: filters: urftopdf
|
2013-01-02 16:14:42 +00:00
|
|
|
# LGPLv2+: utils: cups-browsed
|
2012-08-08 10:55:08 +00:00
|
|
|
# MIT: filters: pdftoijs, pdftoopvp, pdftopdf, pdftoraster
|
2013-01-02 16:14:42 +00:00
|
|
|
License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
Group: System Environment/Base
|
2013-01-02 16:14:42 +00:00
|
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
|
|
|
|
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
|
|
|
|
Source1: cups-browsed.service
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
BuildRequires: cups-devel
|
2012-08-22 12:05:51 +00:00
|
|
|
# pdftopdf
|
2012-08-21 07:30:00 +00:00
|
|
|
BuildRequires: qpdf-devel
|
2012-08-22 12:05:51 +00:00
|
|
|
# pdftops
|
|
|
|
BuildRequires: poppler-utils
|
|
|
|
# pdftoijs, pdftoopvp, pdftoraster
|
|
|
|
BuildRequires: poppler-devel poppler-cpp-devel
|
2012-08-08 10:55:08 +00:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
# libijs
|
|
|
|
BuildRequires: ghostscript-devel
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: lcms2-devel
|
2013-01-02 16:14:42 +00:00
|
|
|
# cups-browsed
|
2013-03-08 02:44:04 +00:00
|
|
|
BuildRequires: avahi-devel avahi-glib-devel
|
2013-01-02 16:14:42 +00:00
|
|
|
BuildRequires: systemd
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
# Make sure we get postscriptdriver tags.
|
|
|
|
BuildRequires: python-cups
|
|
|
|
|
2012-08-21 07:30:00 +00:00
|
|
|
# autogen.sh
|
2012-08-08 10:55:08 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
Requires: cups-filesystem
|
|
|
|
Requires: poppler-utils
|
|
|
|
|
2013-01-02 16:14:42 +00:00
|
|
|
# cups-browsed
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
2012-08-08 10:55:08 +00:00
|
|
|
%package libs
|
|
|
|
Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
# LGPLv2: libcupsfilters
|
|
|
|
# MIT: libfontembed
|
|
|
|
License: LGPLv2 and MIT
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: OpenPrinting CUPS filters and backends - development environment
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2 and MIT
|
|
|
|
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Contains backends, filters, and other software that was
|
|
|
|
once part of the core CUPS distribution but is no longer maintained by
|
|
|
|
Apple Inc. In addition it contains additional filters developed
|
|
|
|
independently of Apple, especially filters for the PDF-centric printing
|
|
|
|
workflow introduced by OpenPrinting.
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
This package provides cupsfilters and fontembed libraries.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This is the development package for OpenPrinting CUPS filters and backends.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2012-08-21 07:30:00 +00:00
|
|
|
# work-around Rpath
|
2012-08-08 10:55:08 +00:00
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
# --with-pdftops=pdftops - use Poppler instead of Ghostscript (see README)
|
2013-01-02 16:14:42 +00:00
|
|
|
# --with-rcdir=no - don't install SysV init script
|
2012-08-08 10:55:08 +00:00
|
|
|
%configure --disable-static \
|
|
|
|
--disable-silent-rules \
|
2013-01-02 16:14:42 +00:00
|
|
|
--with-pdftops=pdftops \
|
2013-03-08 02:44:04 +00:00
|
|
|
--with-browseremoteprotocols=DNSSD,CUPS \
|
2013-01-02 16:14:42 +00:00
|
|
|
--with-rcdir=no
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# Don't ship libtool la files.
|
|
|
|
rm -f %{buildroot}%{_libdir}/lib*.la
|
|
|
|
|
|
|
|
# Not sure what is this good for.
|
|
|
|
rm -f %{buildroot}%{_bindir}/ttfread
|
|
|
|
|
2013-01-02 16:14:42 +00:00
|
|
|
# systemd unit file
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post cups-browsed.service
|
|
|
|
|
2013-03-12 17:11:30 +00:00
|
|
|
# Initial installation
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
# move BrowsePoll from cupsd.conf to cups-browsed.conf
|
|
|
|
IN=%{_sysconfdir}/cups/cupsd.conf
|
|
|
|
OUT=%{_sysconfdir}/cups/cups-browsed.conf
|
|
|
|
keyword=BrowsePoll
|
|
|
|
|
2013-03-28 15:35:11 +00:00
|
|
|
if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
|
2013-03-12 17:11:30 +00:00
|
|
|
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
|
|
|
|
|
2013-01-02 16:14:42 +00:00
|
|
|
%preun
|
|
|
|
%systemd_preun cups-browsed.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart cups-browsed.service
|
|
|
|
|
2012-08-08 10:55:08 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
2013-01-02 16:14:42 +00:00
|
|
|
|
2012-08-08 10:55:08 +00:00
|
|
|
%files
|
|
|
|
%doc __doc/README __doc/AUTHORS __doc/NEWS
|
2013-03-08 02:44:04 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
|
2012-08-08 10:55:08 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
|
|
|
|
%attr(0755,root,root) %{_cups_serverbin}/filter/*
|
|
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/parallel
|
2012-08-08 12:27:33 +00:00
|
|
|
# Serial backend needs to run as root (bug #212577#c4).
|
2012-08-08 10:55:08 +00:00
|
|
|
%attr(0700,root,root) %{_cups_serverbin}/backend/serial
|
2013-03-19 11:39:26 +00:00
|
|
|
%{_datadir}/cups/banners
|
2012-08-08 10:55:08 +00:00
|
|
|
%{_datadir}/cups/charsets
|
|
|
|
%{_datadir}/cups/data/*
|
|
|
|
%{_datadir}/cups/drv/cupsfilters.drv
|
|
|
|
%{_datadir}/cups/mime/cupsfilters.types
|
|
|
|
%{_datadir}/cups/mime/cupsfilters.convs
|
|
|
|
%{_datadir}/ppd/cupsfilters
|
2013-01-02 16:14:42 +00:00
|
|
|
%{_sbindir}/cups-browsed
|
|
|
|
%{_unitdir}/cups-browsed.service
|
2012-08-08 10:55:08 +00:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%doc __doc/COPYING fontembed/README
|
|
|
|
%attr(0755,root,root) %{_libdir}/libcupsfilters.so.*
|
|
|
|
%attr(0755,root,root) %{_libdir}/libfontembed.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/cupsfilters
|
|
|
|
%{_includedir}/fontembed
|
|
|
|
%{_libdir}/pkgconfig/libcupsfilters.pc
|
|
|
|
%{_libdir}/pkgconfig/libfontembed.pc
|
|
|
|
%{_libdir}/libcupsfilters.so
|
|
|
|
%{_libdir}/libfontembed.so
|
|
|
|
|
|
|
|
%changelog
|
2013-03-28 15:35:11 +00:00
|
|
|
* Thu Mar 28 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-2
|
|
|
|
- check cupsd.conf existence prior to grepping it (#928816)
|
|
|
|
|
2013-03-22 10:41:45 +00:00
|
|
|
* Fri Mar 22 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-1
|
|
|
|
- 1.0.31
|
|
|
|
|
2013-03-19 11:39:26 +00:00
|
|
|
* Tue Mar 19 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-4
|
|
|
|
- revert previous change
|
|
|
|
|
2013-03-13 17:05:31 +00:00
|
|
|
* Wed Mar 13 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-3
|
|
|
|
- don't ship banners for now (#919489)
|
|
|
|
|
2013-03-12 17:11:30 +00:00
|
|
|
* Tue Mar 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-2
|
|
|
|
- move BrowsePoll from cupsd.conf to cups-browsed.conf in %%post
|
|
|
|
|
2013-03-08 02:44:04 +00:00
|
|
|
* Fri Mar 08 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-1
|
|
|
|
- 1.0.30: CUPS browsing and broadcasting in cups-browsed
|
|
|
|
|
2013-02-13 19:18:28 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-19 19:48:46 +00:00
|
|
|
* Sat Jan 19 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.29-3
|
|
|
|
- backport upstream buildfix for poppler-0.22.x
|
|
|
|
|
2013-01-18 15:42:14 +00:00
|
|
|
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.0.29-2
|
|
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
|
2013-01-03 06:23:09 +00:00
|
|
|
* Thu Jan 03 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.29-1
|
|
|
|
- 1.0.29
|
|
|
|
|
2013-01-02 16:14:42 +00:00
|
|
|
* Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.28-1
|
|
|
|
- 1.0.28: cups-browsed daemon and service
|
|
|
|
|
2012-11-29 11:04:21 +00:00
|
|
|
* Thu Nov 29 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.25-1
|
|
|
|
- 1.0.25
|
|
|
|
|
2012-09-07 15:14:54 +00:00
|
|
|
* Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.24-1
|
|
|
|
- 1.0.24
|
|
|
|
|
2012-08-22 12:05:51 +00:00
|
|
|
* Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.23-1
|
|
|
|
- 1.0.23: old pdftopdf removed
|
|
|
|
|
2012-08-21 07:30:00 +00:00
|
|
|
* Tue Aug 21 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.22-1
|
|
|
|
- 1.0.22: new pdftopdf (uses qpdf instead of poppler)
|
|
|
|
|
2012-08-08 12:27:33 +00:00
|
|
|
* Wed Aug 08 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-4
|
|
|
|
- rebuild
|
|
|
|
|
2012-08-08 10:55:08 +00:00
|
|
|
* Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-3
|
|
|
|
- commented multiple licensing breakdown (#832130)
|
|
|
|
- verbose build output
|
|
|
|
|
|
|
|
* Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-2
|
|
|
|
- BuildRequires: poppler-cpp-devel (to build against poppler-0.20)
|
|
|
|
|
|
|
|
* Mon Jul 23 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-1
|
|
|
|
- 1.0.20
|
|
|
|
|
|
|
|
* Tue Jul 17 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.19-1
|
|
|
|
- 1.0.19
|
|
|
|
|
|
|
|
* Wed May 30 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.18-1
|
|
|
|
- initial spec file
|