source: spec/trunk/SPECS/cups.spec@ 1566

Last change on this file since 1566 was 1388, checked in by Silvan Scherrer, 8 years ago

small textual change

File size: 15.0 KB
Line 
1# this spec file is a combination from the fedora cups.spec and the
2# cups.spec as included in cups
3
4%define _strip_opts --compress -i "*.cgi" --debuginfo -i "*.cgi"
5
6%global _without_dbus 1
7%global _without_dnssd 1
8%global _without_systemd 1
9
10#
11# "$Id: cups.spec.in 9359 2010-11-11 19:09:24Z mike $"
12#
13# RPM "spec" file for CUPS.
14#
15# Original version by Jason McMullan <jmcc@ontv.com>.
16#
17# Copyright 2007-2015 by Apple Inc.
18# Copyright 1999-2007 by Easy Software Products, all rights reserved.
19#
20# These coded instructions, statements, and computer programs are the
21# property of Apple Inc. and are protected by Federal copyright
22# law. Distribution and use rights are outlined in the file "LICENSE.txt"
23# which should have been included with this file. If this file is
24# file is missing or damaged, see the license at "http://www.cups.org/".
25#
26
27# Conditional build options (--with name/--without name):
28#
29# dbus - Enable/disable DBUS support (default = enable)
30# dnssd - Enable/disable DNS-SD support (default = enable)
31# libusb1 - Enable/disable LIBUSB 1.0 support (default = enable)
32# static - Enable/disable static libraries (default = enable)
33# systemd - Enable/disable systemd support (default = enable)
34
35%{!?_with_dbus: %{!?_without_dbus: %global _with_dbus --with-dbus}}
36%{?_with_dbus: %global _dbus --enable-dbus}
37%{!?_with_dbus: %global _dbus --disable-dbus}
38
39%{!?_with_dnssd: %{!?_without_dnssd: %global _with_dnssd --with-dnssd}}
40%{?_with_dnssd: %global _dnssd --enable-dnssd}
41%{!?_with_dnssd: %global _dnssd --disable-dnssd}
42
43%{!?_with_libusb1: %{!?_without_libusb1: %global _with_libusb1 --with-libusb1}}
44%{?_with_libusb1: %global _libusb1 --enable-libusb}
45%{!?_with_libusb1: %global _libusb1 --disable-libusb}
46
47%{!?_with_static: %{!?_without_static: %global _without_static --without-static}}
48%{?_with_static: %global _static --enable-static}
49%{!?_with_static: %global _static --disable-static}
50
51%{!?_with_systemd: %{!?_without_systemd: %global _with_systemd --with-systemd}}
52%{?_with_systemd: %global _systemd --enable-systemd}
53%{!?_with_systemd: %global _systemd --disable-systemd}
54
55
56Summary: CUPS
57Name: cups
58Version: 2.1.3
59Release: 10%{?dist}
60Epoch: 1
61
62License: GPL
63Group: System Environment/Daemons
64
65Url: http://www.cups.org
66Vendor: bww bitwise works GmbH
67%scm_source github https://github.com/bitwiseworks/%{name}-os2 master
68
69# Dependencies...
70Requires: %{name}-filesystem = %{epoch}:%{version}-%{release}
71Requires: %{name}-libs = %{epoch}:%{version}-%{release}
72Requires: %{name}-client = %{epoch}:%{version}-%{release}
73
74Provides: cupsddk, cupsddk-drivers
75
76# Make sure we have some filters for converting to raster format
77Requires: cups-filters
78
79%if %{?_with_dbus:1}%{!?_with_dbus:0}
80BuildRequires: dbus-devel
81%endif
82
83%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
84BuildRequires: avahi-devel
85%endif
86
87%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
88BuildRequires: libusb1-devel >= 1.0
89%endif
90
91%if %{?_with_systemd:1}%{!?_with_systemd:0}
92BuildRequires: systemd-devel
93%endif
94
95BuildRequires: libpng-devel, libjpeg-devel, libtiff-devel
96BuildRequires: openssl-devel, zlib-devel
97BuildRequires: libpoll-devel
98
99# Use buildroot so as not to disturb the version already installed
100BuildRoot: %{_tmppath}/%{name}-root
101
102%package devel
103Summary: CUPS printing system - development environment
104Group: Development/Libraries
105Requires: %{name}-libs = %{epoch}:%{version}-%{release}
106Provides: cupsddk-devel
107
108%package libs
109Summary: CUPS printing system - shared libraries
110Group: System Environment/Libraries
111
112%package filesystem
113Summary: CUPS printing system - directory layout
114BuildArch: noarch
115
116%package lpd
117Summary: CUPS printing system - lpd emulation
118Group: System Environment/Daemons
119Requires: %{name} = %{epoch}:%{version}-%{release}
120Requires: %{name}-libs = %{epoch}:%{version}-%{release}
121Provides: lpd
122
123%package ipptool
124Summary: CUPS printing system - tool for performing IPP requests
125Requires: %{name} = %{epoch}:%{version}-%{release}
126
127%package client
128Summary: CUPS printing system - client programs
129Requires: %{name}-libs = %{epoch}:%{version}-%{release}
130Provides: lpr
131
132%description
133CUPS printing system provides a portable printing layer for
134UNIX© operating systems. It has been developed by Apple Inc.
135to promote a standard printing solution for all UNIX vendors and users.
136CUPS provides the System V and Berkeley command-line interfaces.
137CUPS was ported to OS/2 to have the same benefit as UNIX has.
138
139%description client
140CUPS printing system provides a portable printing layer for
141UNIX© operating systems. This package contains command-line client
142programs.
143
144%description devel
145CUPS printing system provides a portable printing layer for
146UNIX© operating systems. This is the development package for creating
147additional printer drivers, and other CUPS services.
148
149%description libs
150CUPS printing system provides a portable printing layer for
151UNIX© operating systems. It has been developed by Apple Inc.
152to promote a standard printing solution for all UNIX vendors and users.
153CUPS provides the System V and Berkeley command-line interfaces.
154CUPS was ported to OS/2 to have the same benefit as UNIX has.
155The cups-libs package provides libraries used by applications to use CUPS
156natively, without needing the lpp/lpr commands.
157
158%description filesystem
159CUPS printing system provides a portable printing layer for
160UNIX© operating systems. This package provides some directories which are
161required by other packages that add CUPS drivers (i.e. filters, backends etc.)
162
163%description lpd
164CUPS printing system provides a portable printing layer for
165UNIX© operating systems. This is the package that provides standard
166lpd emulation.
167
168%description ipptool
169Sends IPP requests to the specified URI and tests and/or displays the result.
170
171%debug_package
172
173%prep
174%scm_setup
175
176autoconf --force
177
178%build
179export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
180export LIBS="-lcx"
181export VENDOR="%{vendor}"
182# --with-rcdir=no - don't install SysV init script
183# --with-system_groups=admin - add a value to SystemGroups parameter
184CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS $RPM_OPT_FLAGS" \
185 %configure %{_dbus} %{_dnssd} %{_libusb1} %{_static} \
186 --with-rcdir=no \
187 --with-system_groups=admin \
188 --with-cupsd_file_perm=755 \
189 --with-domainsocket=/socket/cups.sock
190
191# If we got this far, all prerequisite libraries must be here.
192make
193
194%install
195# Make sure the RPM_BUILD_ROOT directory exists.
196rm -rf $RPM_BUILD_ROOT
197
198make BUILDROOT=$RPM_BUILD_ROOT install
199
200# rename some files
201mv %{buildroot}%{_mandir}/man1/cancel.1.gz %{buildroot}%{_mandir}/man1/cancel-cups.1.gz
202mv %{buildroot}%{_mandir}/man1/lp.1.gz %{buildroot}%{_mandir}/man1/lp-cups.1.gz
203mv %{buildroot}%{_mandir}/man1/lpq.1.gz %{buildroot}%{_mandir}/man1/lpq-cups.1.gz
204mv %{buildroot}%{_mandir}/man1/lprm.1.gz %{buildroot}%{_mandir}/man1/lprm-cups.1.gz
205mv %{buildroot}%{_mandir}/man1/lpstat.1.gz %{buildroot}%{_mandir}/man1/lpstat-cups.1.gz
206mv %{buildroot}%{_mandir}/man8/lpc.8.gz %{buildroot}%{_mandir}/man8/lpc-cups.8.gz
207
208# Ship an rpm macro for where to put driver executables
209mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d
210install -m 0644 %{_builddir}/%{buildsubdir}/macros.cups %{buildroot}%{_rpmconfigdir}/macros.d
211
212%clean
213rm -rf $RPM_BUILD_ROOT
214
215%files
216%doc README.txt CREDITS.txt CHANGES.txt
217%docdir %{_datadir}/doc/cups
218%defattr(-,root,root)
219%dir %{_sysconfdir}/cups
220%config(noreplace) %{_sysconfdir}/cups/*.conf
221%{_sysconfdir}/cups/cups-files.conf.default
222%{_sysconfdir}/cups/cupsd.conf.default
223%{_sysconfdir}/cups/snmp.conf.default
224%dir %{_sysconfdir}/cups/interfaces
225%dir %{_sysconfdir}/cups/ppd
226%attr(0700,root,root) %dir %{_sysconfdir}/cups/ssl
227
228%if %{?_with_dbus:1}%{!?_with_dbus:0}
229# DBUS
230%{_sysconfdir}/dbus-1/system.d/*
231%endif
232
233%{_bindir}/cupstestdsc.exe
234%{_bindir}/cupstestppd.exe
235%dir %{_libdir}/cups
236%dir %{_libdir}/cups/backend
237%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
238# DNS-SD
239%{_libdir}/cups/backend/dnssd
240%endif
241%{_libdir}/cups/backend/http
242#{_libdir}/cups/backend/https
243%attr(0700,root,root) %{_libdir}/cups/backend/ipp.exe
244#{_libdir}/cups/backend/ipps
245%attr(0700,root,root) %{_libdir}/cups/backend/lpd.exe
246%{_libdir}/cups/backend/snmp.exe
247%{_libdir}/cups/backend/socket.exe
248%{_libdir}/cups/backend/usb.exe
249%dir %{_libdir}/cups/cgi-bin
250%{_libdir}/cups/cgi-bin/*.cgi
251%dir %{_libdir}/cups/daemon
252%{_libdir}/cups/daemon/cups-deviced.exe
253%{_libdir}/cups/daemon/cups-driverd.exe
254%{_libdir}/cups/daemon/cups-exec.exe
255%dir %{_libdir}/cups/driver
256%dir %{_libdir}/cups/filter
257%{_libdir}/cups/filter/*
258%exclude %{_libdir}/cups/filter/*.dbg
259%dir %{_libdir}/cups/monitor
260%{_libdir}/cups/monitor/*.exe
261%dir %{_libdir}/cups/notifier
262%{_libdir}/cups/notifier/*.exe
263
264%{_sbindir}/cups*
265%exclude %{_sbindir}/cups*.dbg
266%{_sbindir}/lpadmin.exe
267%{_sbindir}/lpinfo.exe
268%{_sbindir}/lpmove.exe
269%{_sbindir}/accept
270%{_sbindir}/reject
271%{_datadir}/cups/drv/*
272%{_datadir}/cups/mime/*
273%{_datadir}/cups/ppdc/*
274%dir %{_datadir}/cups/templates
275%{_datadir}/cups/templates/*
276%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
277# LIBUSB quirks files
278%dir %{_datadir}/cups/usb
279%{_datadir}/cups/usb/*
280%endif
281
282%dir %{_datadir}/doc/cups
283%{_datadir}/doc/cups/*.*
284%dir %{_datadir}/doc/cups/help
285%{_datadir}/doc/cups/help/accounting.html
286%{_datadir}/doc/cups/help/cgi.html
287%{_datadir}/doc/cups/help/glossary.html
288%{_datadir}/doc/cups/help/kerberos.html
289%{_datadir}/doc/cups/help/license.html
290%{_datadir}/doc/cups/help/man-*.html
291%{_datadir}/doc/cups/help/network.html
292%{_datadir}/doc/cups/help/options.html
293%{_datadir}/doc/cups/help/overview.html
294%{_datadir}/doc/cups/help/policies.html
295%{_datadir}/doc/cups/help/ref-*.html
296%{_datadir}/doc/cups/help/security.html
297%{_datadir}/doc/cups/help/sharing.html
298%{_datadir}/doc/cups/help/translation.html
299%dir %{_datadir}/doc/cups/images
300%{_datadir}/doc/cups/images/*
301
302%dir %{_datadir}/doc/cups/de
303%{_datadir}/doc/cups/de/*
304%dir %{_datadir}/doc/cups/es
305%{_datadir}/doc/cups/es/*
306%dir %{_datadir}/doc/cups/ja
307%{_datadir}/doc/cups/ja/*
308%dir %{_datadir}/doc/cups/ru
309%{_datadir}/doc/cups/ru/*
310
311%{_datadir}/locale/*
312
313%dir %{_datadir}/man
314%dir %{_datadir}/man/man1
315%{_datadir}/man/man1/*.1.gz
316%exclude %{_datadir}/man/man1/ppd*.1.gz
317%exclude %{_datadir}/man/man1/cups-config.1.gz
318%exclude %{_datadir}/man/man1/ipptool*.1.gz
319%exclude %{_datadir}/man/man1/cancel-cups*.1.gz
320%exclude %{_datadir}/man/man1/lp*.1.gz
321%dir %{_datadir}/man/man5
322%{_datadir}/man/man5/*.5.gz
323%exclude %{_datadir}/man/man5/ppdcfile.5.gz
324%exclude %{_datadir}/man/man5/ipptool*.5.gz
325%dir %{_datadir}/man/man8
326%{_datadir}/man/man8/*.8.gz
327%exclude %{_datadir}/man/man8/cups-lpd.8.gz
328%exclude %{_datadir}/man/man8/lpc-cups.8.gz
329
330%dir %{_var}/cache/cups
331%attr(0775,root,root) %dir %{_var}/cache/cups/rss
332%dir %{_var}/log/cups
333%dir %{_var}/run/cups
334#attr(0711,root,root) %dir %{_var}/run/cups/certs
335%attr(0710,root,root) %dir %{_var}/spool/cups
336%attr(1770,root,root) %dir %{_var}/spool/cups/tmp
337
338%files client
339%{_sbindir}/lpc.exe
340%{_bindir}/cancel.exe
341%{_bindir}/lp*.exe
342%dir %{_datadir}/man/man1
343%{_datadir}/man/man1/lp*.1.gz
344%{_datadir}/man/man1/cancel-cups*.1.gz
345%dir %{_datadir}/man/man8
346%{_datadir}/man/man8/lpc-cups.8.gz
347
348%files libs
349%doc LICENSE.txt
350%defattr(-,root,root)
351%{_libdir}/*.dll
352
353%files filesystem
354%dir %{_libdir}/cups
355%dir %{_libdir}/cups/backend
356%dir %{_libdir}/cups/driver
357%dir %{_libdir}/cups/filter
358%dir %{_datadir}/cups
359%dir %{_datadir}/cups/data
360%dir %{_datadir}/cups/drv
361%dir %{_datadir}/cups/mime
362%dir %{_datadir}/cups/model
363%dir %{_datadir}/cups/ppdc
364#dir %{_datadir}/ppd
365
366%files devel
367%defattr(-,root,root)
368%{_bindir}/cups-config
369%{_bindir}/ppd*.exe
370%{_libdir}/*.a
371%dir %{_includedir}/cups
372%{_includedir}/cups/*
373%{_rpmconfigdir}/macros.d/macros.cups
374
375%dir %{_datadir}/cups/examples
376%{_datadir}/cups/examples/*
377%dir %{_datadir}/man
378%dir %{_datadir}/man/man1
379%{_datadir}/man/man1/cups-config.1.gz
380%{_datadir}/man/man1/ppd*.1.gz
381%dir %{_datadir}/man/man5
382%{_datadir}/man/man5/ppdcfile.5.gz
383%dir %{_datadir}/man/man7
384%{_datadir}/man/man7/backend.7.gz
385%{_datadir}/man/man7/filter.7.gz
386%{_datadir}/man/man7/notifier.7.gz
387
388%if %{?_with_static:1}%{!?_with_static:0}
389%{_libdir}/*_s.a
390%endif
391
392%dir %{_datadir}/doc/cups/help
393%{_datadir}/doc/cups/help/api*.html
394%{_datadir}/doc/cups/help/postscript-driver.html
395%{_datadir}/doc/cups/help/ppd-compiler.html
396%{_datadir}/doc/cups/help/raster-driver.html
397%{_datadir}/doc/cups/help/spec*.html
398
399%files lpd
400%defattr(-,root,root)
401%if %{?_with_systemd:1}%{!?_with_systemd:0}
402# SystemD
403%{_libdir}/systemd/system/org.cups.cups-lpd*
404%else
405# Legacy xinetd
406#{_sysconfdir}/xinetd.d/cups-lpd
407%endif
408
409%dir %{_libdir}/cups
410%dir %{_libdir}/cups/daemon
411%{_libdir}/cups/daemon/cups-lpd.exe
412%dir %{_datadir}/man/man8
413%{_datadir}/man/man8/cups-lpd.8.gz
414
415%files ipptool
416%defattr(-,root,root)
417%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
418%{_bindir}/ippfind.exe
419%endif
420%{_bindir}/ipptool.exe
421%dir %{_datadir}/cups/ipptool
422%{_datadir}/cups/ipptool/*
423%dir %{_datadir}/man/man1
424%{_datadir}/man/man1/ipptool*.1.gz
425%dir %{_datadir}/man/man5
426%{_datadir}/man/man5/ipptool*.5.gz
427
428%changelog
429* Mon Nov 27 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-10
430- add ETC to the env, as otherwise tcpip32.dll doesn't find any dns names
431
432* Tue Oct 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-9
433- moved source to github
434- fixed a regression of the below /socket/cups.sock change
435
436* Tue Aug 22 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-8
437- add bldlevel to the dll
438- fix search for ppd in cups-driver
439- change LIBS
440- change /@unixroot/var/run/cups/cups.sock to /socket/cups.sock
441- adjust spec to scm_ macros usage
442
443* Thu May 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-7
444- fix timestamps absence in the jobs part of the webinterface
445
446* Wed May 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-6
447- disable the use of poll completely (fixes printing of large pdf)
448
449* Fri Apr 29 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-5
450- fix version info in german index.html (upstream bug)
451- workaround for the webinterface issues (select() hack)
452- remove .exe in httpSeperateURI
453- don't deliver readonly cupsd
454
455* Tue Apr 19 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-4
456- add req for cups-filters
457- don't use posix_spawn
458
459* Wed Mar 16 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-3
460- ship a rpm macro for cups_serverbin
461- removed dbg packages from sbin dir in normal installation
462
463* Fri Mar 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-2
464- removed dbg packages from normal installation
465- added SystemGroups value
466- fixed some pipe() problems
467
468* Mon Mar 07 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-1
469- updated to version 2.1.3
470
471* Fri Mar 04 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.4.8-5
472- fixed lpd
473- added more socketpair vs pipe changes
474- also compress and strip debug info from cgi files
475
476* Tue Jan 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.4.8-4
477- poppler-utils needs to be at least 0.38.0-2
478- remove wrong req for cups-lpr
479- install all .a files for the dll
480
481* Mon Jan 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.4.8-3
482- rebuild with latest libraries
483- adjusted debug package creation to latest rpm macros
484- add poppler-utils as a requirement
485
486* Sun Feb 15 2015 yd <yd@os2power.com> 1.4.8-1 1.4.8-2
487- rebuild for new libpng release.
488
489* Thu Dec 18 2014 yd
490- r944, initial unixroot build.
Note: See TracBrowser for help on using the repository browser.