]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: cups.spec.in 5224 2006-03-04 02:00:43Z mike $" | |
3 | # | |
4 | # RPM "spec" file for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Original version by Jason McMullan <jmcc@ontv.com>. | |
7 | # | |
8 | # Copyright 1999-2006 by Easy Software Products, all rights reserved. | |
9 | # | |
10 | # These coded instructions, statements, and computer programs are the | |
11 | # property of Easy Software Products and are protected by Federal | |
12 | # copyright law. Distribution and use rights are outlined in the file | |
13 | # "LICENSE.txt" which should have been included with this file. If this | |
14 | # file is missing or damaged please contact Easy Software Products | |
15 | # at: | |
16 | # | |
17 | # Attn: CUPS Licensing Information | |
18 | # Easy Software Products | |
19 | # 44141 Airport View Drive, Suite 204 | |
20 | # Hollywood, Maryland 20636 USA | |
21 | # | |
22 | # Voice: (301) 373-9600 | |
23 | # EMail: cups-info@cups.org | |
24 | # WWW: http://www.cups.org | |
25 | # | |
26 | ||
27 | # Conditional build options (--with name/--without name): | |
28 | # | |
29 | # dbus - Enable/disable DBUS support (default = enable) | |
30 | # php - Enable/disable PHP support (default = enable) | |
31 | ||
32 | %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}} | |
33 | %{?_with_dbus: %define _dbus --enable-dbus} | |
34 | %{!?_with_dbus: %define _dbus --disable-dbus} | |
35 | ||
36 | %{!?_with_php: %{!?_without_php: %define _with_php --with-php}} | |
37 | ||
38 | Summary: Common UNIX Printing System | |
39 | Name: cups | |
40 | Version: @CUPS_VERSION@ | |
41 | Release: 0 | |
42 | Epoch: 1 | |
43 | License: GPL | |
44 | Group: System Environment/Daemons | |
45 | Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.gz | |
46 | Url: http://www.cups.org | |
47 | Packager: Anonymous <anonymous@foo.com> | |
48 | Vendor: Easy Software Products | |
49 | ||
50 | # Use buildroot so as not to disturb the version already installed | |
51 | BuildRoot: /tmp/%{name}-root | |
52 | ||
53 | # Dependencies... | |
54 | Requires: %{name}-libs = %{epoch}:%{version} | |
55 | Obsoletes: lpd, lpr, LPRng | |
56 | Provides: lpd, lpr, LPRng | |
57 | ||
58 | %package devel | |
59 | Summary: Common UNIX Printing System - development environment | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-libs = %{epoch}:%{version} | |
62 | ||
63 | %package libs | |
64 | Summary: Common UNIX Printing System - shared libraries | |
65 | Group: System Environment/Libraries | |
66 | Provides: libcups1 | |
67 | ||
68 | %package lpd | |
69 | Summary: Common UNIX Printing System - LPD support | |
70 | Group: System Environment/Daemons | |
71 | Requires: %{name} = %{epoch}:%{version} xinetd | |
72 | ||
73 | %package ja | |
74 | Summary: Common UNIX Printing System - Japanese support | |
75 | Group: System Environment/Daemons | |
76 | Requires: %{name} = %{epoch}:%{version} | |
77 | ||
78 | %if %{?_with_php:1}%{!?_with_php:0} | |
79 | %package php | |
80 | Summary: Common UNIX Printing System - PHP support | |
81 | Group: Development/Languages | |
82 | Requires: %{name}-libs = %{epoch}:%{version} | |
83 | %endif | |
84 | ||
85 | %description | |
86 | The Common UNIX Printing System provides a portable printing layer for | |
87 |