]> git.ipfire.org Git - thirdparty/cups.git/blame - packaging/cups.spec.in
Merge CUPS 1.4svn-r7319.
[thirdparty/cups.git] / packaging / cups.spec.in
CommitLineData
ef416fc2 1#
2e4ff8af 2# "$Id: cups.spec.in 6889 2007-08-29 22:23:35Z 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
54
55%package devel
bd7854cb 56Summary: Common UNIX Printing System - development environment
ef416fc2 57Group: Development/Libraries
58Requires: %{name}-libs = %{epoch}:%{version}
59
60%package libs
bd7854cb 61Summary: Common UNIX Printing System - shared libraries
ef416fc2 62Group: System Environment/Libraries
63Provides: libcups1
64
65%package lpd
bd7854cb 66Summary: Common UNIX Printing System - LPD support
ef416fc2 67Group: System Environment/Daemons
68Requires: %{name} = %{epoch}:%{version} xinetd
69
355e94dc
MS
70%package da
71Summary: Common UNIX Printing System - Danish support
72Group: System Environment/Daemons
73Requires: %{name} = %{epoch}:%{version}
74
8ca02f3c 75%package de
76Summary: Common UNIX Printing System - German support
77Group: System Environment/Daemons
78Requires: %{name} = %{epoch}:%{version}
79
e1d6a774 80%package es
81Summary: Common UNIX Printing System - Spanish support
82Group: System Environment/Daemons
83Requires: %{name} = %{epoch}:%{version}
84
2abf387c 85%package et
86Summary: Common UNIX Printing System - Estonian support
87Group: System Environment/Daemons
88Requires: %{name} = %{epoch}:%{version}
89
355e94dc
MS
90%package fi
91Summary: Common UNIX Printing System - Finnish support
92Group: System Environment/Daemons
93Requires: %{name} = %{epoch}:%{version}
94
b86bc4cf 95%package fr
96Summary: Common UNIX Printing System - French support
97Group: System Environment/Daemons
98Requires: %{name} = %{epoch}:%{version}
99
c0e1af83 100%package he
101Summary: Common UNIX Printing System - Hebrew support
102Group: System Environment/Daemons
103Requires: %{name} = %{epoch}:%{version}
104
411affcf 105%package it
106Summary: Common UNIX Printing System - Italian support
107Group: System Environment/Daemons
108Requires: %{name} = %{epoch}:%{version}
109
bd7854cb 110%package ja
111Summary: Common UNIX Printing System - Japanese support
112Group: System Environment/Daemons
113Requires: %{name} = %{epoch}:%{version}
114
355e94dc
MS
115%package ko
116Summary: Common UNIX Printing System - Korean support
117Group: System Environment/Daemons
118Requires: %{name} = %{epoch}:%{version}
119
7ff4fea9
MS
120%package nl
121Summary: Common UNIX Printing System - Dutch support
122Group: System Environment/Daemons
123Requires: %{name} = %{epoch}:%{version}
124
355e94dc
MS
125%package no
126Summary: Common UNIX Printing System - Nowegian support
127Group: System Environment/Daemons
128Requires: %{name} = %{epoch}:%{version}
129
89d46774 130%package pl
131Summary: Common UNIX Printing System - Polish support
132Group: System Environment/Daemons
133Requires: %{name} = %{epoch}:%{version}
134
355e94dc
MS
135%package pt
136Summary: Common UNIX Printing System - Portuguese support
137Group: System Environment/Daemons
138Requires: %{name} = %{epoch}:%{version}
139
140%package ru
141Summary: Common UNIX Printing System - Russian support
142Group: System Environment/Daemons
143Requires: %{name} = %{epoch}:%{version}
144
89d46774 145%package sv
146Summary: Common UNIX Printing System - Swedish support
147Group: System Environment/Daemons
148Requires: %{name} = %{epoch}:%{version}
149
3d8365b8 150%package zh
151Summary: Common UNIX Printing System - Chinese support
152Group: System Environment/Daemons
153Requires: %{name} = %{epoch}:%{version}
154
b423cd4c 155%if %{?_with_php:1}%{!?_with_php:0}
156%package php
157Summary: Common UNIX Printing System - PHP support
158Group: Development/Languages
159Requires: %{name}-libs = %{epoch}:%{version}
160%endif
161
ef416fc2 162%description
163The Common UNIX Printing System provides a portable printing layer for
bc44d920 164