]> git.ipfire.org Git - thirdparty/cups.git/blame - packaging/cups.spec.in
Merge changes from CUPS 1.4svn-r7994.
[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#
4# RPM "spec" file for the Common UNIX Printing System (CUPS).
5#
6# Original version by Jason McMullan <jmcc@ontv.com>.
7#
ac884b6a 8# Copyright 2007-2008 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)
b423cd4c 21# php - Enable/disable PHP support (default = enable)
ecdc0628 22
23%{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
24%{?_with_dbus: %define _dbus --enable-dbus}
25%{!?_with_dbus: %define _dbus --disable-dbus}
26
b423cd4c 27%{!?_with_php: %{!?_without_php: %define _with_php --with-php}}
e1d6a774 28%{?_with_php: %define _php --with-php}
29%{!?_with_php: %define _php --without-php}
b423cd4c 30
d6ae789d 31%{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
32%{?_with_static: %define _static --enable-static}
33%{!?_with_static: %define _static --disable-static}
34
bd7854cb 35Summary: Common UNIX Printing System
ef416fc2 36Name: cups
37Version: @CUPS_VERSION@
38Release: 0
39Epoch: 1
40License: GPL
41Group: System Environment/Daemons
42Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.gz
43Url: http://www.cups.org
44Packager: Anonymous <anonymous@foo.com>
bc44d920 45Vendor: Apple Inc.
ef416fc2 46
47# Use buildroot so as not to disturb the version already installed
48BuildRoot: /tmp/%{name}-root
49
50# Dependencies...
51Requires: %{name}-libs = %{epoch}:%{version}
52Obsoletes: lpd, lpr, LPRng
53Provides: lpd, lpr, LPRng
75bd9771
MS
54Obsoletes: cups-da, cups-de, cups-es, cups-et, cups-fi, cups-fr, cups-he
55Obsoletes: cups-id, cups-it, cups-ja, cups-ko, cups-nl, cups-no, cups-pl
56Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh
ef416fc2 57
58%package devel
bd7854cb 59Summary: Common UNIX Printing System - development environment
ef416fc2 60Group: Development/Libraries
61Requires: %{name}-libs = %{epoch}:%{version}
62
63%package libs
bd7854cb 64Summary: Common UNIX Printing System - shared libraries
ef416fc2 65Group: System Environment/Libraries
66Provides: libcups1
67
68%package lpd
bd7854cb 69Summary: Common UNIX Printing System - LPD support
ef416fc2 70Group: System Environment/Daemons
71Requires: %{name} = %{epoch}:%{version} xinetd
72
b423cd4c 73%if %{?_with_php:1}%{!?_with_php:0}
74%package php
75Summary: Common UNIX Printing System - PHP support
76Group: Development/Languages
77Requires: %{name}-libs = %{epoch}:%{version}
78%endif
79
ef416fc2 80%description
81The Common UNIX Printing System provides a portable printing layer for
bc44d920 82