]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: cups.spec.in 6716 2007-07-24 20:46:39Z 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 2007 by Apple Inc. | |
9 | # Copyright 1999-2007 by Easy Software Products, all rights reserved. | |
10 | # | |
11 | # These coded instructions, statements, and computer programs are the | |
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/". | |
16 | # | |
17 | ||
18 | # Conditional build options (--with name/--without name): | |
19 | # | |
20 | # dbus - Enable/disable DBUS support (default = enable) | |
21 | # php - Enable/disable PHP support (default = enable) | |
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 | ||
27 | %{!?_with_php: %{!?_without_php: %define _with_php --with-php}} | |
28 | %{?_with_php: %define _php --with-php} | |
29 | %{!?_with_php: %define _php --without-php} | |
30 | ||
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 | ||
35 | Summary: Common UNIX Printing System | |
36 | Name: cups | |
37 | Version: @CUPS_VERSION@ | |
38 | Release: 0 | |
39 | Epoch: 1 | |
40 | License: GPL | |
41 | Group: System Environment/Daemons | |
42 | Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.gz | |
43 | Url: http://www.cups.org | |
44 | Packager: Anonymous <anonymous@foo.com> | |
45 | Vendor: Apple Inc. | |
46 | ||
47 | # Use buildroot so as not to disturb the version already installed | |
48 | BuildRoot: /tmp/%{name}-root | |
49 | ||
50 | # Dependencies... | |
51 | Requires: %{name}-libs = %{epoch}:%{version} | |
52 | Obsoletes: lpd, lpr, LPRng | |
53 | Provides: lpd, lpr, LPRng | |
54 | ||
55 | %package devel | |
56 | Summary: Common UNIX Printing System - development environment | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-libs = %{epoch}:%{version} | |
59 | ||
60 | %package libs | |
61 | Summary: Common UNIX Printing System - shared libraries | |
62 | Group: System Environment/Libraries | |
63 | Provides: libcups1 | |
64 | ||
65 | %package lpd | |
66 | Summary: Common UNIX Printing System - LPD support | |
67 | Group: System Environment/Daemons | |
68 | Requires: %{name} = %{epoch}:%{version} xinetd | |
69 | ||
70 | %package da | |
71 | Summary: Common UNIX Printing System - Danish support | |
72 | Group: System Environment/Daemons | |
73 | Requires: %{name} = %{epoch}:%{version} | |
74 | ||
75 | %package de | |
76 | Summary: Common UNIX Printing System - German support | |
77 | Group: System Environment/Daemons | |
78 | Requires: %{name} = %{epoch}:%{version} | |
79 | ||
80 | %package es | |
81 | Summary: Common UNIX Printing System - Spanish support | |
82 | Group: System Environment/Daemons | |
83 | Requires: %{name} = %{epoch}:%{version} | |
84 | ||
85 | %package et | |
86 | Summary: Common UNIX Printing System - Estonian support | |
87 | Group: System Environment/Daemons | |
88 | Requires: %{name} = %{epoch}:%{version} | |
89 | ||
90 | %package fi | |
91 | Summary: Common UNIX Printing System - Finnish support | |
92 | Group: System Environment/Daemons | |
93 | Requires: %{name} = %{epoch}:%{version} | |
94 | ||
95 | %package fr | |
96 | Summary: Common UNIX Printing System - French support | |
97 | Group: System Environment/Daemons | |
98 | Requires: %{name} = %{epoch}:%{version} | |
99 | ||
100 | %package he | |
101 | Summary: Common UNIX Printing System - Hebrew support | |
102 | Group: System Environment/Daemons | |
103 | Requires: %{name} = %{epoch}:%{version} | |
104 | ||
105 | %package it | |
106 | Summary: Common UNIX Printing System - Italian support | |
107 | Group: System Environment/Daemons | |
108 | Requires: %{name} = %{epoch}:%{version} | |
109 | ||
110 | %package ja | |
111 | Summary: Common UNIX Printing System - Japanese support | |
112 | Group: System Environment/Daemons | |
113 | Requires: %{name} = %{epoch}:%{version} | |
114 | ||
115 | %package ko | |
116 | Summary: Common UNIX Printing System - Korean support | |
117 | Group: System Environment/Daemons | |
118 | Requires: %{name} = %{epoch}:%{version} | |
119 | ||
120 | %package no | |
121 | Summary: Common UNIX Printing System - Nowegian support | |
122 | Group: System Environment/Daemons | |
123 | Requires: %{name} = %{epoch}:%{version} | |
124 | ||
125 | %package pl | |
126 | Summary: Common UNIX Printing System - Polish support | |
127 | Group: System Environment/Daemons | |
128 | Requires: %{name} = %{epoch}:%{version} | |
129 | ||
130 | %package pt | |
131 | Summary: Common UNIX Printing System - Portuguese support | |
132 | Group: System Environment/Daemons | |
133 | Requires: %{name} = %{epoch}:%{version} | |
134 | ||
135 | %package ru | |
136 | Summary: Common UNIX Printing System - Russian support | |
137 | Group: System Environment/Daemons | |
138 | Requires: %{name} = %{epoch}:%{version} | |
139 | ||
140 | %package sv | |
141 | Summary: Common UNIX Printing System - Swedish support | |
142 | Group: System Environment/Daemons | |
143 | Requires: %{name} = %{epoch}:%{version} | |
144 | ||
145 | %package zh | |
146 | Summary: Common UNIX Printing System - Chinese support | |
147 | Group: System Environment/Daemons | |
148 | Requires: %{name} = %{epoch}:%{version} | |
149 | ||
150 | %if %{?_with_php:1}%{!?_with_php:0} | |
151 | %package php | |
152 | Summary: Common UNIX Printing System - PHP support | |
153 | Group: Development/Languages | |
154 | Requires: %{name}-libs = %{epoch}:%{version} | |
155 | %endif | |
156 | ||
157 | %description | |
158 | The Common UNIX Printing System provides a portable printing layer for | |
159 |