]> git.pld-linux.org Git - packages/cups-filters.git/blame - cups-filters.spec
- package testprint here
[packages/cups-filters.git] / cups-filters.spec
CommitLineData
98eddd8d
JR
1Summary: OpenPrinting CUPS filters and backends
2Name: cups-filters
3Version: 1.0.41
2d4a03cc 4Release: 7
98eddd8d
JR
5# For a breakdown of the licensing, see COPYING file
6# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
7# imagetopdf, pstopdf, texttopdf
8# backends: parallel, serial
9# GPLv2+: filters: gstopxl, textonly, texttops, imagetops
10# GPLv3: filters: bannertopdf
11# GPLv3+: filters: urftopdf
12# LGPLv2+: utils: cups-browsed
13# MIT: filters: gstoraster, pdftoijs, pdftoopvp, pdftopdf, pdftoraster
14License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT
15Group: Applications/Printing
16Source0: http://www.openprinting.org/download/cups-filters/%{name}-%{version}.tar.xz
17# Source0-md5: fe5a9a07b9a64b35975154068cbedef9
18Patch1: %{name}-pdf-landscape.patch
19Patch2: %{name}-dbus.patch
20URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
21BuildRequires: autoconf
22BuildRequires: automake
23BuildRequires: avahi-devel
24BuildRequires: avahi-glib-devel
be95c05b 25BuildRequires: cups-devel >= 1:1.6.0
98eddd8d
JR
26BuildRequires: dbus-devel
27BuildRequires: fontconfig-devel
28BuildRequires: freetype-devel
29BuildRequires: ghostscript-ijs-devel
30BuildRequires: lcms2-devel
31BuildRequires: libjpeg-devel
32BuildRequires: libpng-devel
33BuildRequires: libtiff-devel
34BuildRequires: libtool
35BuildRequires: pkgconfig
36BuildRequires: poppler-cpp-devel
37BuildRequires: poppler-devel
38BuildRequires: poppler-progs
39BuildRequires: python-pycups
b84b8132 40BuildRequires: rpmbuild(macros) >= 1.671
98eddd8d
JR
41BuildRequires: qpdf-devel
42BuildRequires: systemd
43BuildRequires: zlib-devel
44# Testing font for test scripts.
45#BuildRequires: dejavu-sans-fonts
46Requires: cups-filters-libs = %{version}-%{release}
47Requires: poppler-progs
48# pstopdf
49Requires: bc
50Requires: grep
51Requires: sed
98eddd8d
JR
52Provides: ghostscript-cups = 9.08
53Obsoletes: ghostscript-cups < 9.08
54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
b84b8132 56%define _cups_serverbin %(/usr/bin/cups-config --serverbin)
98eddd8d
JR
57
58%package libs
59Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries
60Group: Libraries
61# LGPLv2: libcupsfilters
62# MIT: libfontembed
63License: LGPLv2 and MIT
64
65%package devel
66Summary: OpenPrinting CUPS filters and backends - development environment
67License: LGPLv2 and MIT
68Group: Development/Libraries
69Requires: cups-filters-libs = %{version}-%{release}
70
71%description
72Contains backends, filters, and other software that was once part of
73the core CUPS distribution but is no longer maintained by Apple Inc.
74In addition it contains additional filters developed independently of
75Apple, especially filters for the PDF-centric printing workflow
76introduced by OpenPrinting.
77
78%description libs
79This package provides cupsfilters and fontembed libraries.
80
81%description devel
82This is the development package for OpenPrinting CUPS filters and
83backends.
84
85%package -n cups-browsed
86Summary: A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers
87Group: Applications/Printing
b84b8132 88Requires(post,preun,postun): systemd-units
98eddd8d 89Requires: cups-filters-libs = %{version}-%{release}
b84b8132 90Requires: systemd-units >= 38
98eddd8d
JR
91
92%description -n cups-browsed
93A daemon for browsing the Bonjour broadcasts of shared,
94remote CUPS printers.
95
b84b8132
JR
96%package -n cups-backend-serial
97Summary: Serial port backend for CUPS
98Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a
99# must be larger than cups.spec
100Epoch: 2
101License: GPL v2 + openssl exception
102Group: Applications/Printing
551e22e7 103Requires: %{name} = %{version}-%{release}
b84b8132
JR
104
105%description -n cups-backend-serial
106This package allow CUPS printing on printers connected by serial
107ports.
108
109%description -n cups-backend-serial -l pl.UTF-8
110Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach
111podłączonych do portów szeregowych.
112
113%package -n cups-backend-parallel
114Summary: Parallel port backend for CUPS
115Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a
116# must be larger than cups.spec
117Epoch: 2
118License: GPL v2 + openssl exception
119Group: Applications/Printing
551e22e7 120Requires: %{name} = %{version}-%{release}
b84b8132
JR
121
122%description -n cups-backend-parallel
123This package allow CUPS printing on printers connected by parallel
124ports.
125
126%description -n cups-backend-parallel -l pl.UTF-8
127Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach
128podłączonych do portów równoległych.
129
130# CREATE ANY NEW PACKAGES BEFORE cups-backend-* (EPOCH)
131
98eddd8d
JR
132%prep
133%setup -q
134%patch1 -p1
135%patch2 -p1
136
137%build
138%{__aclocal}
139%{__autoconf}
140%{__automake}
141
142%configure \
143 --disable-static \
144 --disable-silent-rules \
145 --with-pdftops=hybrid \
146 --enable-dbus \
147 --with-rcdir=no
148
149%{__make}
150
151%install
152rm -rf $RPM_BUILD_ROOT
153install -d $RPM_BUILD_ROOT%{systemdunitdir}
154
155%{__make} install \
156 DESTDIR=$RPM_BUILD_ROOT
157
158%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
159
160# Not sure what is this good for.
161%{__rm} $RPM_BUILD_ROOT%{_bindir}/ttfread
162
163install -p utils/cups-browsed.service $RPM_BUILD_ROOT%{systemdunitdir}
164
165%clean
166rm -rf $RPM_BUILD_ROOT
167
168%post -n cups-browsed
169if [ $1 -eq 1 ] ; then
170 # We can remove this after few releases, it's just for the introduction of cups-browsed.
171 if [ -f %{_sysconfdir}/cups/cups-browsed.conf ]; then
172 echo -e "\n# NOTE: This file is not part of CUPS. You need to start & enable cups-browsed service." >>%{_sysconfdir}/cups/cups-browsed.conf
173 fi
174
175 # move BrowsePoll from cupsd.conf to cups-browsed.conf
176 if [ -f %{_sysconfdir}/cups/cupsd.conf ] && grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf; then
177 if ! grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cups-browsed.conf; then
178 echo "# Settings automatically moved from cupsd.conf by RPM package:" >>%{_sysconfdir}/cups/cups-browsed.conf
179 grep -i "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf >> %{_sysconfdir}/cups/cups-browsed.conf || :
180 fi
181 sed -i -e "s,^BrowsePoll,#BrowsePoll directive moved to cups-browsed.conf\n#BrowsePoll,i" %{_sysconfdir}/cups/cupsd.conf || :
182 fi
183fi
184%systemd_post cups-browsed.service
185
186%preun -n cups-browsed
187%systemd_preun cups-browsed.service
188
189%postun -n cups-browsed
190%systemd_reload
191
192%post libs -p /sbin/ldconfig
193%postun libs -p /sbin/ldconfig
194
195%files
196%defattr(644,root,root,755)
197%doc README AUTHORS NEWS
198%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
199%attr(755,root,root) %{_cups_serverbin}/filter/*
98eddd8d
JR
200%{_datadir}/cups/banners
201%{_datadir}/cups/charsets
3c1bdf04 202%{_datadir}/cups/data/*.pdf
2d4a03cc 203%{_datadir}/cups/data/testprint
98eddd8d
JR
204# this needs to be in the main package because of cupsfilters.drv
205%{_datadir}/cups/ppdc/pcl.h
206%{_datadir}/cups/drv/cupsfilters.drv
207%{_datadir}/cups/mime/cupsfilters.types
208%{_datadir}/cups/mime/cupsfilters.convs
209%{_datadir}/ppd/cupsfilters
210
211%files libs
212%defattr(644,root,root,755)
eed8649d 213%doc fontembed/README
98eddd8d
JR
214%attr(755,root,root) %{_libdir}/libcupsfilters.so.*.*.*
215%attr(755,root,root) %ghost %{_libdir}/libcupsfilters.so.1
216%attr(755,root,root) %{_libdir}/libfontembed.so.*.*.*
217%attr(755,root,root) %ghost %{_libdir}/libfontembed.so.1
218
219%files devel
220%defattr(644,root,root,755)
221%{_includedir}/cupsfilters
222%{_includedir}/fontembed
223%{_datadir}/cups/ppdc/escp.h
224%{_pkgconfigdir}/libcupsfilters.pc
225%{_pkgconfigdir}/libfontembed.pc
226%attr(755,root,root) %{_libdir}/libcupsfilters.so
227%attr(755,root,root) %{_libdir}/libfontembed.so
228
229%files -n cups-browsed
230%defattr(644,root,root,755)
231%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/cups-browsed.conf
232%attr(755,root,root) %{_sbindir}/cups-browsed
233%{systemdunitdir}/cups-browsed.service
234%{_mandir}/man8/cups-browsed.8*
235%{_mandir}/man5/cups-browsed.conf.5*
b84b8132
JR
236
237%files -n cups-backend-serial
238%defattr(644,root,root,755)
239%attr(755,root,root) %{_cups_serverbin}/backend/serial
240
241%files -n cups-backend-parallel
242%defattr(644,root,root,755)
243%attr(755,root,root) %{_cups_serverbin}/backend/parallel
This page took 0.092478 seconds and 4 git commands to generate.