1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Printing
11 url = http://cups.org/software.php
13 summary = The common UNIX printing system.
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.
20 source_dl = https://github.com/apple/cups/releases/download/v%{version}/
21 sources = %{thisapp}-source.tar.gz
45 CFLAGS += -DLDAP_DEPRECATED=1
47 configure_options += \
48 --localedir=%{datadir}/locale \
49 --with-cupsd-file-perm=0755 \
50 --with-log-file-perm=0600 \
51 --with-docdir=%{datadir}/%{name}/www \
52 --with-dbusdir=%{sysconfdir}/dbus-1 \
63 aclocal -I config-scripts
64 autoconf -I config-scripts
68 make install BUILDROOT=%{BUILDROOT}
70 # Remove sysvinit scripts
71 rm -vfr %{BUILDROOT}/etc/init.d/cups %{BUILDROOT}/etc/rc*.d
73 # Install default config file.
74 mkdir -pv %{BUILDROOT}/etc/cups
75 cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
77 # Rename systemd service files.
78 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.path \
79 %{BUILDROOT}%{unitdir}/cups.path
80 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.service \
81 %{BUILDROOT}%{unitdir}/cups.service
82 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.socket \
83 %{BUILDROOT}%{unitdir}/cups.socket
84 mv %{BUILDROOT}%{unitdir}/org.cups.cups-lpd.socket \
85 %{BUILDROOT}%{unitdir}/cups-lpd.socket
86 mv %{BUILDROOT}%{unitdir}/org.cups.cups-lpd@.service \
87 %{BUILDROOT}%{unitdir}/cups-lpd@.service
89 sed -i -e "s,org.cups.cupsd,cups,g" \
90 %{BUILDROOT}%{unitdir}/cups.service
93 chown root:lp %{BUILDROOT}%{localstatedir}/run/cups
94 chmod 0755 %{BUILDROOT}%{localstatedir}/run/cups
105 systemctl daemon-reload >/dev/null 2>&1 || :
106 systemctl --no-reload enable cups.path >/dev/null 2>&1 || :
110 systemctl --no-reload disable cups.path >/dev/null 2>&1 || :
111 systemctl --no-reload disable cupsd.socket >/dev/null 2>&1 || :
112 systemctl --no-reload disable cupsd.service >/dev/null 2>&1 || :
113 systemctl stop cupsd.socket >/dev/null 2>&1 || :
114 systemctl stop cupsd.service >/dev/null 2>&1 || :
115 systemctl stop cups.path >/dev/null 2>&1 || :
119 systemctl daemon-reload >/dev/null 2>&1 || :
123 systemctl daemon-reload >/dev/null 2>&1 || :
124 systemctl try-restart cups.path >/dev/null 2>&1 || :
125 systemctl try-restart cupsd.service >/dev/null 2>&1 || :
129 package %{name}-client
130 summary = CUPS printing system - client programs.
132 CUPS printing system provides a portable printing layer for
133 UNIX operating systems. This package contains command-line client
138 %{name}-libs = %{thisver}
148 %{mandir}/man1/lp*.1.gz
149 %{mandir}/man1/cancel-cups.1.gz
150 %{mandir}/man8/lpc-cups.8.gz
155 summary = CUPS printing system - lpd emulation.
157 CUPS printing system provides a portable printing layer for
158 UNIX operating systems. This is the package that provides standard
164 %{name}-libs = %{thisver}
171 %{unitdir}/cups-lpd.socket
172 %{unitdir}/cups-lpd@.service
173 %{prefix}/lib/daemon/cups-lpd
174 %{mandir}/man8/cups-lpd.8.gz
178 systemctl daemon-reload >/dev/null 2>&1 || :
182 systemctl --no-reload disable cups-lpd.socket >/dev/null 2>&1 || :
183 systemctl --no-reload disable cups-lpd@.service >/dev/null 2>&1 || :
184 systemctl stop cups-lpd.socket >/dev/null 2>&1 || :
185 systemctl stop cups-lpd@.service >/dev/null 2>&1 || :
189 systemctl daemon-reload >/dev/null 2>&1 || :
193 systemctl daemon-reload >/dev/null 2>&1 || :
194 systemctl try-restart cups-lpd@.service >/dev/null 2>&1 || :
198 package %{name}-devel
201 requires += %{name}-libs=%{thisver}
208 package %{name}-ipptool
209 summary = CUPS printing system - tool for performing IPP requests.
211 Sends IPP requests to the specified URI and tests and/or displays \
216 %{name}-libs = %{thisver}
222 %{datadir}/cups/ipptool
223 %{datadir}/cups/ipptool/*
224 %{mandir}/man1/ipptool.1.gz
225 %{mandir}/man5/ipptoolfile.5.gz
229 package %{name}-debuginfo