]> git.ipfire.org Git - thirdparty/cups.git/blame - packaging/cups.spec.in
Remove ".orig" files that somehow got into the repo.
[thirdparty/cups.git] / packaging / cups.spec.in
CommitLineData
ef416fc2 1#
b19ccc9e 2# "$Id: cups.spec.in 7718 2008-07-10 23:04:22Z mike $"
ef416fc2 3#
9aff70cc 4# RPM "spec" file for CUPS.
ef416fc2 5#
6# Original version by Jason McMullan <jmcc@ontv.com>.
7#
f99f3698 8# Copyright 2007-2011 by Apple Inc.
f7deaa1a 9# Copyright 1999-2007 by Easy Software Products, all rights reserved.
ef416fc2 10#
11# These coded instructions, statements, and computer programs are the
bc44d920 12# property of Apple Inc. and are protected by Federal copyright
13# law. Distribution and use rights are outlined in the file "LICENSE.txt"
14# which should have been included with this file. If this file is
15# file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 16#
17
ecdc0628 18# Conditional build options (--with name/--without name):
19#
20# dbus - Enable/disable DBUS support (default = enable)
21
22%{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
23%{?_with_dbus: %define _dbus --enable-dbus}
24%{!?_with_dbus: %define _dbus --disable-dbus}
25
d6ae789d 26%{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
27%{?_with_static: %define _static --enable-static}
28%{!?_with_static: %define _static --disable-static}
29
9aff70cc 30Summary: CUPS
ef416fc2 31Name: cups
32Version: @CUPS_VERSION@
33Release: 0
34Epoch: 1
35License: GPL
36Group: System Environment/Daemons
cc754834 37Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
ef416fc2 38Url: http://www.cups.org
39Packager: Anonymous <anonymous@foo.com>
bc44d920 40Vendor: Apple Inc.
ef416fc2 41
42# Use buildroot so as not to disturb the version already installed
43BuildRoot: /tmp/%{name}-root
44
45# Dependencies...
46Requires: %{name}-libs = %{epoch}:%{version}
47Obsoletes: lpd, lpr, LPRng
48Provides: lpd, lpr, LPRng
75bd9771
MS
49Obsoletes: cups-da, cups-de, cups-es, cups-et, cups-fi, cups-fr, cups-he
50Obsoletes: cups-id, cups-it, cups-ja, cups-ko, cups-nl, cups-no, cups-pl
51Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh
ef416fc2 52
53%package devel
9aff70cc 54Summary: CUPS - development environment
ef416fc2 55Group: Development/Libraries
56Requires: %{name}-libs = %{epoch}:%{version}
57
58%package libs
9aff70cc 59Summary: CUPS - shared libraries
ef416fc2 60Group: System Environment/Libraries
61Provides: libcups1
62
63%package lpd
9aff70cc 64Summary: CUPS - LPD support
ef416fc2 65Group: System Environment/Daemons
66Requires: %{name} = %{epoch}:%{version} xinetd
67
68%description
9aff70cc 69CUPS is the standards-based, open source printing system developed by
f99f3698 70Apple Inc. for Mac OS® X and other UNIX®-like operating systems.
ef416fc2 71
72%description devel
9aff70cc 73This package provides the CUPS headers and development environment.
ef416fc2 74
75%description libs
9aff70cc 76This package provides the CUPS shared libraries.
ef416fc2 77
78%description lpd
9aff70cc 79This package provides LPD client support.
ef416fc2 80
81%prep
82%setup
83
84%build
e1d6a774 85CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \
a4845881 86 ./configure %{_dbus} %{_static}
ef416fc2 87# If we got this far, all prerequisite libraries must be here.
88make
89
90%install
91# Make sure the RPM_BUILD_ROOT directory exists.
92rm -rf $RPM_BUILD_ROOT
93
94make BUILDROOT=$RPM_BUILD_ROOT install
95
96%post
bd7854cb 97/sbin/chkconfig --add cups
98/sbin/chkconfig cups on
ef416fc2 99
bd7854cb 100# Restart cupsd if we are upgrading...
101if test $1 -gt 1; then
102 /sbin/service cups stop
103 /sbin/service cups start
ef416fc2 104fi
105
bd7854cb 106%post libs
107/sbin/ldconfig
ef416fc2 108
109%preun
bd7854cb 110if test $1 = 0; then
111 /sbin/service cups stop
112 /sbin/chkconfig --del cups
ef416fc2 113fi
114
bd7854cb 115%postun
116if test $1 -ge 1; then
117 /sbin/service cups stop
118 /sbin/service cups start
ef416fc2 119fi
120
bd7854cb 121%postun libs
122/sbin/ldconfig
123
ef416fc2 124%clean
125rm -rf $RPM_BUILD_ROOT
126
127%files
bd7854cb 128%docdir /usr/share/doc/cups
ef416fc2 129%defattr(-,root,root)
130%dir /etc/cups
131%config(noreplace) /etc/cups/*.conf
fa73b229 132/etc/cups/cupsd.conf.default
ef416fc2 133%dir /etc/cups/interfaces
ef416fc2 134%dir /etc/cups/ppd
8ca02f3c 135%attr(0700,root,root) %dir /etc/cups/ssl
bd7854cb 136
ecdc0628 137%if %{?_with_dbus:1}%{!?_with_dbus:0}
bd7854cb 138# DBUS
139/etc/dbus-1/system.d/*
ecdc0628 140%endif
bd7854cb 141
142# PAM
ef416fc2 143%dir /etc/pam.d
144/etc/pam.d/*
145
146# RC dirs are a pain under Linux... Uncomment the appropriate ones if you
147# don't use Red Hat or Mandrake...
148
149/etc/init.d/*
150/etc/rc0.d/*
151/etc/rc2.d/*
152/etc/rc3.d/*
153/etc/rc5.d/*
154
155# OLD RedHat/Mandrake
156#/etc/rc.d/init.d/*
157#/etc/rc.d/rc0.d/*
158#/etc/rc.d/rc2.d/*
159#/etc/rc.d/rc3.d/*
160#/etc/rc.d/rc5.d/*
161
162#/sbin/rc.d/*
163#/sbin/rc.d/rc0.d/*
164#/sbin/rc.d/rc2.d/*
165#/sbin/rc.d/rc3.d/*
166#/sbin/rc.d/rc5.d/*
167
168/usr/bin/cancel
80ca4592 169/usr/bin/cupstestdsc
ef416fc2 170/usr/bin/cupstestppd
aaf19ab0 171/usr/bin/ipptool
ef416fc2 172/usr/bin/lp*
173%dir /usr/lib/cups
174%dir /usr/lib/cups/backend
e00b005a 175/usr/lib/cups/backend/http
f99f3698 176/usr/lib/cups/backend/https
7ff4fea9 177%attr(0700,root,root) /usr/lib/cups/backend/ipp
f99f3698 178/usr/lib/cups/backend/ipps
e00b005a 179%attr(0700,root,root) /usr/lib/cups/backend/lpd
89d46774 180/usr/lib/cups/backend/snmp
4400e98d 181/usr/lib/cups/backend/socket
e00b005a 182/usr/lib/cups/backend/usb
ef416fc2 183%dir /usr/lib/cups/cgi-bin
184/usr/lib/cups/cgi-bin/*
185%dir /usr/lib/cups/daemon
186/usr/lib/cups/daemon/cups-deviced
187/usr/lib/cups/daemon/cups-driverd
f99f3698 188/usr/lib/cups/daemon/cups-exec
ef416fc2 189/usr/lib/cups/daemon/cups-polld
190%dir /usr/lib/cups/driver
191%dir /usr/lib/cups/filter
192/usr/lib/cups/filter/*
bd7854cb 193%dir /usr/lib/cups/monitor
194/usr/lib/cups/monitor/*
ef416fc2 195%dir /usr/lib/cups/notifier
196/usr/lib/cups/notifier/*
197
198/usr/sbin/*
199%dir /usr/share/cups
d6ae789d 200%dir /usr/share/cups/banners
201/usr/share/cups/banners/*
d6ae789d 202%dir /usr/share/cups/charsets
203/usr/share/cups/charsets/*
204%dir /usr/share/cups/data
205/usr/share/cups/data/*
634763e8
MS
206%dir /usr/share/cups/drv
207/usr/share/cups/drv/*
d6ae789d 208%dir /usr/share/cups/fonts
209/usr/share/cups/fonts/*
aaf19ab0
MS
210%dir /usr/share/cups/ipptool
211/usr/share/cups/ipptool/*
dd1abb6b
MS
212%dir /usr/share/cups/mime
213/usr/share/cups/mime/*
d6ae789d 214%dir /usr/share/cups/model
ac884b6a
MS
215%dir /usr/share/cups/ppdc
216/usr/share/cups/ppdc/*
d6ae789d 217%dir /usr/share/cups/templates
634763e8 218/usr/share/cups/templates/*
ef416fc2 219%dir /usr/share/doc/cups
220/usr/share/doc/cups/*.*
f11a948a
MS
221%dir /usr/share/doc/cups/de
222/usr/share/doc/cups/de/*
745129be
MS
223%dir /usr/share/doc/cups/es
224/usr/share/doc/cups/es/*
f701418f
MS
225%dir /usr/share/doc/cups/eu
226/usr/share/doc/cups/eu/*
f8b3a85b
MS
227%dir /usr/share/doc/cups/id
228/usr/share/doc/cups/id/*
39ff2fe7
MS
229%dir /usr/share/doc/cups/it
230/usr/share/doc/cups/it/*
b9faaae1
MS
231%dir /usr/share/doc/cups/ja
232/usr/share/doc/cups/ja/*
233%dir /usr/share/doc/cups/pl
234/usr/share/doc/cups/pl/*
235%dir /usr/share/doc/cups/ru
236/usr/share/doc/cups/ru/*
ef416fc2 237%dir /usr/share/doc/cups/help
09a101d6 238/usr/share/doc/cups/help/accounting.html
4744bd90 239/usr/share/doc/cups/help/cgi.html
240/usr/share/doc/cups/help/glossary.html
355e94dc 241/usr/share/doc/cups/help/kerberos.html
4744bd90 242/usr/share/doc/cups/help/license.html
ef416fc2 243/usr/share/doc/cups/help/man-*.html
244/usr/share/doc/cups/help/network.html
4744bd90 245/usr/share/doc/cups/help/options.html
ef416fc2 246/usr/share/doc/cups/help/overview.html
8ca02f3c 247/usr/share/doc/cups/help/policies.html
4744bd90 248/usr/share/doc/cups/help/ref-*.html
249/usr/share/doc/cups/help/security.html
d2354e63 250/usr/share/doc/cups/help/sharing.html
ef416fc2 251/usr/share/doc/cups/help/standard.html
4744bd90 252/usr/share/doc/cups/help/translation.html
ef416fc2 253/usr/share/doc/cups/help/whatsnew.html
254%dir /usr/share/doc/cups/images
255/usr/share/doc/cups/images/*
c168a833 256/usr/share/locale/*
ef416fc2 257
258%dir /usr/share/man/man1
259/usr/share/man/man1/cancel.1.gz
80ca4592 260/usr/share/man/man1/cupstestdsc.1.gz
ef416fc2 261/usr/share/man/man1/cupstestppd.1.gz
aaf19ab0 262/usr/share/man/man1/ipptool.1.gz
ef416fc2 263/usr/share/man/man1/lp.1.gz
264/usr/share/man/man1/lpoptions.1.gz
265/usr/share/man/man1/lppasswd.1.gz
266/usr/share/man/man1/lpq.1.gz
267/usr/share/man/man1/lpr.1.gz
268/usr/share/man/man1/lprm.1.gz
269/usr/share/man/man1/lpstat.1.gz
270%dir /usr/share/man/man5
ac884b6a 271/usr/share/man/man5/*.conf.5.gz
aaf19ab0 272/usr/share/man/man5/ipptoolfile.5.gz
ac884b6a 273/usr/share/man/man5/mime.*.5.gz
ef416fc2 274%dir /usr/share/man/man8
275/usr/share/man/man8/accept.8.gz
276/usr/share/man/man8/cupsaddsmb.8.gz
1f6f3dbc 277/usr/share/man/man8/cupsaccept.8.gz
bc44d920 278/usr/share/man/man8/cupsctl.8.gz
355e94dc 279/usr/share/man/man8/cupsfilter.8.gz
ef416fc2 280/usr/share/man/man8/cupsd.8.gz
281/usr/share/man/man8/cupsdisable.8.gz
282/usr/share/man/man8/cupsenable.8.gz
1f6f3dbc 283/usr/share/man/man8/cupsreject.8.gz
bd7854cb 284/usr/share/man/man8/cups-deviced.8.gz
285/usr/share/man/man8/cups-driverd.8.gz
ef416fc2 286/usr/share/man/man8/cups-polld.8.gz
287/usr/share/man/man8/lpadmin.8.gz
288/usr/share/man/man8/lpc.8.gz
289/usr/share/man/man8/lpinfo.8.gz
290/usr/share/man/man8/lpmove.8.gz
291/usr/share/man/man8/reject.8.gz
292
293%dir /var/cache/cups
f7deaa1a 294%attr(0775,root,sys) %dir /var/cache/cups/rss
ef416fc2 295%dir /var/log/cups
296%dir /var/run/cups
bd7854cb 297%attr(0711,lp,sys) %dir /var/run/cups/certs
298%attr(0710,lp,sys) %dir /var/spool/cups
299%attr(1770,lp,sys) %dir /var/spool/cups/tmp
ef416fc2 300
e1d6a774 301# Desktop files
302/usr/share/applications/*
303/usr/share/icons/*
304
ef416fc2 305%files devel
306%defattr(-,root,root)
e6013cfa
MS
307%dir /usr/share/cups/examples
308/usr/share/cups/examples/*
ef416fc2 309%dir /usr/share/man/man1
ef416fc2 310/usr/share/man/man1/cups-config.1.gz
ac884b6a
MS
311/usr/share/man/man1/ppd*.1.gz
312%dir /usr/share/man/man5
313/usr/share/man/man5/ppdcfile.5.gz
314/usr/share/man/man7/backend.7.gz
315/usr/share/man/man7/filter.7.gz
178cb736 316/usr/share/man/man7/notifier.7.gz
ef416fc2 317
318/usr/bin/cups-config
ac884b6a 319/usr/bin/ppd*
ef416fc2 320%dir /usr/include/cups
321/usr/include/cups/*
e1d6a774 322/usr/lib*/*.so
ef416fc2 323
d6ae789d 324%if %{?_with_static:1}%{!?_with_static:0}
325/usr/lib*/*.a
326%endif
327
ef416fc2 328%dir /usr/share/doc/cups/help
329/usr/share/doc/cups/help/api*.html
e6013cfa
MS
330/usr/share/doc/cups/help/postscript-driver.html
331/usr/share/doc/cups/help/ppd-compiler.html
332/usr/share/doc/cups/help/raster-driver.html
ef416fc2 333/usr/share/doc/cups/help/spec*.html
334
335%files libs
336%defattr(-,root,root)
e1d6a774 337/usr/lib*/*.so.*
ef416fc2 338
339%files lpd
340%defattr(-,root,root)
e1d6a774 341/etc/xinetd.d/cups-lpd
ef416fc2 342%dir /usr/lib/cups
343%dir /usr/lib/cups/daemon
344/usr/lib/cups/daemon/cups-lpd
345%dir /usr/share/man/man8
346/usr/share/man/man8/cups-lpd.8.gz
347
b423cd4c 348
ef416fc2 349#
b19ccc9e 350# End of "$Id: cups.spec.in 7718 2008-07-10 23:04:22Z mike $".
ef416fc2 351#