]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
e1d6a774 | 2 | # "$Id: cups.spec.in 5310 2006-03-19 03:23:34Z mike $" |
ef416fc2 | 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 | ||
ecdc0628 | 27 | # Conditional build options (--with name/--without name): |
28 | # | |
29 | # dbus - Enable/disable DBUS support (default = enable) | |
b423cd4c | 30 | # php - Enable/disable PHP support (default = enable) |
ecdc0628 | 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 | ||
b423cd4c | 36 | %{!?_with_php: %{!?_without_php: %define _with_php --with-php}} |
e1d6a774 | 37 | %{?_with_php: %define _php --with-php} |
38 | %{!?_with_php: %define _php --without-php} | |
b423cd4c | 39 | |
bd7854cb | 40 | Summary: Common UNIX Printing System |
ef416fc2 | 41 | Name: cups |
42 | Version: @CUPS_VERSION@ | |
43 | Release: 0 | |
44 | Epoch: 1 | |
45 | License: GPL | |
46 | Group: System Environment/Daemons | |
47 | Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.gz | |
48 | Url: http://www.cups.org | |
49 | Packager: Anonymous <anonymous@foo.com> | |
50 | Vendor: Easy Software Products | |
51 | ||
52 | # Use buildroot so as not to disturb the version already installed | |
53 | BuildRoot: /tmp/%{name}-root | |
54 | ||
55 | # Dependencies... | |
56 | Requires: %{name}-libs = %{epoch}:%{version} | |
57 | Obsoletes: lpd, lpr, LPRng | |
58 | Provides: lpd, lpr, LPRng | |
59 | ||
60 | %package devel | |
bd7854cb | 61 | Summary: Common UNIX Printing System - development environment |
ef416fc2 | 62 | Group: Development/Libraries |
63 | Requires: %{name}-libs = %{epoch}:%{version} | |
64 | ||
65 | %package libs | |
bd7854cb | 66 | Summary: Common UNIX Printing System - shared libraries |
ef416fc2 | 67 | Group: System Environment/Libraries |
68 | Provides: libcups1 | |
69 | ||
70 | %package lpd | |
bd7854cb | 71 | Summary: Common UNIX Printing System - LPD support |
ef416fc2 | 72 | Group: System Environment/Daemons |
73 | Requires: %{name} = %{epoch}:%{version} xinetd | |
74 | ||
e1d6a774 | 75 | %package es |
76 | Summary: Common UNIX Printing System - Spanish support | |
77 | Group: System Environment/Daemons | |
78 | Requires: %{name} = %{epoch}:%{version} | |
79 | ||
bd7854cb | 80 | %package ja |
81 | Summary: Common UNIX Printing System - Japanese support | |
82 | Group: System Environment/Daemons | |
83 | Requires: %{name} = %{epoch}:%{version} | |
84 | ||
b423cd4c | 85 | %if %{?_with_php:1}%{!?_with_php:0} |
86 | %package php | |
87 | Summary: Common UNIX Printing System - PHP support | |
88 | Group: Development/Languages | |
89 | Requires: %{name}-libs = %{epoch}:%{version} | |
90 | %endif | |
91 | ||
ef416fc2 | 92 | %description |
93 | The Common UNIX Printing System provides a portable printing layer for | |
94 |