]> git.ipfire.org Git - ipfire-3.x.git/blob - cups/cups.nm
cifs-utils: Drop package
[ipfire-3.x.git] / cups / cups.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = cups
7 version = 2.3.6
8 release = 1
9
10 groups = Applications/Printing
11 url = https://cups.org/software.php
12 license = GPLv2+
13 summary = The common UNIX printing system
14
15 description
16 CUPS is the standards-based, open source printing system developed
17 by Apple Inc. for Mac OS(R) X and other UNIX(R)-like operating systems.
18 end
19
20 source_dl = https://github.com/apple/cups/archive/refs/tags/v%{version}.tar.gz#/
21 sources = %{thisapp}-source.tar.gz
22
23 build
24 requires
25 autoconf
26 automake
27 avahi-devel
28 cyrus-sasl-devel
29 dbus-devel
30 gcc-c++
31 gnutls-devel
32 libacl-devel
33 libgcrypt-devel
34 libjpeg-devel
35 libpng-devel
36 libtasn1-devel
37 libtiff-devel
38 libusb-devel
39 openldap-devel
40 pam-devel
41 systemd-devel
42 zlib-devel
43 end
44
45 configure_options += \
46 --localedir=%{datadir}/locale \
47 --with-cupsd-file-perm=0755 \
48 --with-log-file-perm=0600 \
49 --with-docdir=%{datadir}/%{name}/www \
50 --with-dbusdir=%{sysconfdir}/dbus-1 \
51 --enable-pie \
52 --enable-relro \
53 --enable-avahi \
54 --enable-lspp \
55 --enable-threads \
56 --enable-gnutls \
57 --enable-webif \
58 --with-xinetd=no
59
60 install
61 make install BUILDROOT=%{BUILDROOT}
62
63 # Install default config file.
64 mkdir -pv %{BUILDROOT}/etc/cups
65 cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
66 end
67 end
68
69 packages
70 package %{name}
71 recomends
72 ghostscript
73 end
74
75 script postin
76 systemctl daemon-reload >/dev/null 2>&1 || :
77 systemctl --no-reload enable cups.path >/dev/null 2>&1 || :
78 end
79
80 script preun
81 systemctl --no-reload disable cups.path >/dev/null 2>&1 || :
82 systemctl --no-reload disable cupsd.socket >/dev/null 2>&1 || :
83 systemctl --no-reload disable cupsd.service >/dev/null 2>&1 || :
84 systemctl stop cupsd.socket >/dev/null 2>&1 || :
85 systemctl stop cupsd.service >/dev/null 2>&1 || :
86 systemctl stop cups.path >/dev/null 2>&1 || :
87 end
88
89 script postun
90 systemctl daemon-reload >/dev/null 2>&1 || :
91 end
92
93 script postup
94 systemctl daemon-reload >/dev/null 2>&1 || :
95 systemctl try-restart cups.path >/dev/null 2>&1 || :
96 systemctl try-restart cupsd.service >/dev/null 2>&1 || :
97 end
98 end
99
100 package %{name}-client
101 summary = CUPS printing system - client programs.
102 description
103 CUPS printing system provides a portable printing layer for
104 UNIX operating systems. This package contains command-line client
105 programs.
106 end
107
108 requires
109 %{name}-libs = %{thisver}
110 end
111
112 provides += \
113 lpr
114
115 files
116 %{sbindir}/lpc.cups
117 %{bindir}/cancel*
118 %{bindir}/lp*
119 %{mandir}/man1/lp*.1.gz
120 %{mandir}/man1/cancel-cups.1.gz
121 %{mandir}/man8/lpc-cups.8.gz
122 end
123 end
124
125 package %{name}-lpd
126 summary = CUPS printing system - lpd emulation.
127 description
128 CUPS printing system provides a portable printing layer for
129 UNIX operating systems. This is the package that provides standard
130 lpd emulation.
131 end
132
133 requires
134 %{name} = %{thisver}
135 %{name}-libs = %{thisver}
136 end
137
138 provides += \
139 lpd
140
141 files
142 %{unitdir}/cups-lpd.socket
143 %{unitdir}/cups-lpd@.service
144 %{prefix}/lib/daemon/cups-lpd
145 %{mandir}/man8/cups-lpd.8.gz
146 end
147
148 script postin
149 systemctl daemon-reload >/dev/null 2>&1 || :
150 end
151
152 script preun
153 systemctl --no-reload disable cups-lpd.socket >/dev/null 2>&1 || :
154 systemctl --no-reload disable cups-lpd@.service >/dev/null 2>&1 || :
155 systemctl stop cups-lpd.socket >/dev/null 2>&1 || :
156 systemctl stop cups-lpd@.service >/dev/null 2>&1 || :
157 end
158
159 script postun
160 systemctl daemon-reload >/dev/null 2>&1 || :
161 end
162
163 script postup
164 systemctl daemon-reload >/dev/null 2>&1 || :
165 systemctl try-restart cups-lpd@.service >/dev/null 2>&1 || :
166 end
167 end
168
169 package %{name}-devel
170 template DEVEL
171
172 requires += %{name}-libs=%{thisver}
173 end
174
175 package %{name}-libs
176 template LIBS
177 end
178
179 package %{name}-ipptool
180 summary = CUPS printing system - tool for performing IPP requests.
181 description
182 Sends IPP requests to the specified URI and tests and/or displays \
183 the results.
184 end
185
186 requires
187 %{name}-libs = %{thisver}
188 end
189
190 files
191 %{bindir}/ipptool
192 %{bindir}/ippfind
193 %{datadir}/cups/ipptool
194 %{datadir}/cups/ipptool/*
195 %{mandir}/man1/ipptool.1.gz
196 %{mandir}/man5/ipptoolfile.5.gz
197 end
198 end
199
200 package %{name}-debuginfo
201 template DEBUGINFO
202 end
203 end