152 lines
4.3 KiB
RPMSpec
152 lines
4.3 KiB
RPMSpec
# we build CUPS also with relro
|
|
%global _hardened_build 1
|
|
|
|
Summary: OpenPrinting CUPS filters and backends
|
|
Name: cups-filters
|
|
Version: 1.0.20
|
|
Release: 4%{?dist}
|
|
|
|
# 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
|
|
# MIT: filters: pdftoijs, pdftoopvp, pdftopdf, pdftoraster
|
|
License: GPLv2 and GPLv2+ and GPLv3 and MIT
|
|
|
|
Group: System Environment/Base
|
|
|
|
Source: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
|
|
|
|
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
|
|
|
BuildRequires: cups-devel
|
|
BuildRequires: poppler-utils
|
|
BuildRequires: poppler-devel poppler-cpp-devel
|
|
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
|
|
|
|
# Make sure we get postscriptdriver tags.
|
|
BuildRequires: python-cups
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
|
|
Requires: cups-filesystem
|
|
Requires: poppler-utils
|
|
|
|
%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
|
|
./autogen.sh
|
|
|
|
# --with-pdftops=pdftops - use Poppler instead of Ghostscript (see README)
|
|
%configure --disable-static \
|
|
--disable-silent-rules \
|
|
--with-pdftops=pdftops
|
|
|
|
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
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc __doc/README __doc/AUTHORS __doc/NEWS
|
|
%config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
|
|
%attr(0755,root,root) %{_cups_serverbin}/filter/*
|
|
%attr(0755,root,root) %{_cups_serverbin}/backend/parallel
|
|
# Serial backend needs to run as root (bug #212577#c4).
|
|
%attr(0700,root,root) %{_cups_serverbin}/backend/serial
|
|
%{_datadir}/cups/banners
|
|
%{_datadir}/cups/charsets
|
|
%{_datadir}/cups/data/*
|
|
%{_datadir}/cups/drv/cupsfilters.drv
|
|
%{_datadir}/cups/mime/cupsfilters.types
|
|
%{_datadir}/cups/mime/cupsfilters.convs
|
|
%{_datadir}/ppd/cupsfilters
|
|
|
|
%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
|
|
* Wed Aug 08 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-4
|
|
- rebuild
|
|
|
|
* 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
|