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
46 CFLAGS += -DLDAP_DEPRECATED=1
48 configure_options += \
49 --localedir=%{datadir}/locale \
50 --with-cupsd-file-perm=0755 \
51 --with-log-file-perm=0600 \
52 --with-docdir=%{datadir}/%{name}/www \
53 --with-dbusdir=%{sysconfdir}/dbus-1 \
64 aclocal -I config-scripts
65 autoconf -I config-scripts
69 make install BUILDROOT=%{BUILDROOT}
71 # Remove sysvinit scripts
72 rm -vfr %{BUILDROOT}/etc/init.d/cups %{BUILDROOT}/etc/rc*.d
74 # Install default config file.
75 mkdir -pv %{BUILDROOT}/etc/cups
76 cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
78 # Rename systemd service files.
79 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.path \
80 %{BUILDROOT}%{unitdir}/cups.path
81 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.service \
82 %{BUILDROOT}%{unitdir}/cups.service
83 mv %{BUILDROOT}%{unitdir}/org.cups.cupsd.socket \
84 %{BUILDROOT}%{unitdir}/cups.socket
85 mv %{BUILDROOT}%{unitdir}/org.cups.cups-lpd.socket \
86 %{BUILDROOT}%{unitdir}/cups-lpd.socket
87 mv %{BUILDROOT}%{unitdir}/org.cups.cups-lpd@.service \
88 %{BUILDROOT}%{unitdir}/cups-lpd@.service
90 sed -i -e "s,org.cups.cupsd,cups,g" \
91 %{BUILDROOT}%{unitdir}/cups.service
94 chown root:lp %{BUILDROOT}%{localstatedir}/run/cups
95 chmod 0755 %{BUILDROOT}%{localstatedir}/run/cups
106 systemctl daemon-reload >/dev/null 2>&1 || :
107 systemctl --no-reload enable cups.path >/dev/null 2>&1 || :
111 systemctl --no-reload disable cups.path >/dev/null 2>&1 || :
112 systemctl --no-reload disable cupsd.socket >/dev/null 2>&1 || :
113 systemctl --no-reload disable cupsd.service >/dev/null 2>&1 || :
114 systemctl stop cupsd.socket >/dev/null 2>&1 || :
115 systemctl stop cupsd.service >/dev/null 2>&1 || :
116 systemctl stop cups.path >/dev/null 2>&1 || :
120 systemctl daemon-reload >/dev/null 2>&1 || :
124 systemctl daemon-reload >/dev/null 2>&1 || :
125 systemctl try-restart cups.path >/dev/null 2>&1 || :
126 systemctl try-restart cupsd.service >/dev/null 2>&1 || :
130 package %{name}-client
131 summary = CUPS printing system - client programs.
133 CUPS printing system provides a portable printing layer for
134 UNIX operating systems. This package contains command-line client
139 %{name}-libs = %{thisver}
149 %{mandir}/man1/lp*.1.gz
150 %{mandir}/man1/cancel-cups.1.gz
151 %{mandir}/man8/lpc-cups.8.gz
156 summary = CUPS printing system - lpd emulation.
158 CUPS printing system provides a portable printing layer for
159 UNIX operating systems. This is the package that provides standard
165 %{name}-libs = %{thisver}
172 %{unitdir}/cups-lpd.socket
173 %{unitdir}/cups-lpd@.service
174 %{prefix}/lib/daemon/cups-lpd
175 %{mandir}/man8/cups-lpd.8.gz
179 systemctl daemon-reload >/dev/null 2>&1 || :
183 systemctl --no-reload disable cups-lpd.socket >/dev/null 2>&1 || :
184 systemctl --no-reload disable cups-lpd@.service >/dev/null 2>&1 || :
185 systemctl stop cups-lpd.socket >/dev/null 2>&1 || :
186 systemctl stop cups-lpd@.service >/dev/null 2>&1 || :
190 systemctl daemon-reload >/dev/null 2>&1 || :
194 systemctl daemon-reload >/dev/null 2>&1 || :
195 systemctl try-restart cups-lpd@.service >/dev/null 2>&1 || :
199 package %{name}-devel
202 requires += %{name}-libs=%{thisver}
209 package %{name}-ipptool
210 summary = CUPS printing system - tool for performing IPP requests.
212 Sends IPP requests to the specified URI and tests and/or displays \
217 %{name}-libs = %{thisver}
223 %{datadir}/cups/ipptool
224 %{datadir}/cups/ipptool/*
225 %{mandir}/man1/ipptool.1.gz
226 %{mandir}/man5/ipptoolfile.5.gz
230 package %{name}-debuginfo