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 = https://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/archive/refs/tags/v%{version}.tar.gz#/
21 sources = %{thisapp}-source.tar.gz
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 \
59 make_install_targets += \
60 BUILDROOT=%{BUILDROOT}
63 # Install default config file.
64 mkdir -pv %{BUILDROOT}/etc/cups
65 cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
67 # Fix file permissions in /usr/include
68 find %{BUILDROOT}%{includedir} -type f -iname "*.h" \
72 rm -rvf %{BUILDROOT}%{localstatedir}/run
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl --no-reload enable cups.path >/dev/null 2>&1 || :
88 systemctl --no-reload disable cups.path >/dev/null 2>&1 || :
89 systemctl --no-reload disable cupsd.socket >/dev/null 2>&1 || :
90 systemctl --no-reload disable cupsd.service >/dev/null 2>&1 || :
91 systemctl stop cupsd.socket >/dev/null 2>&1 || :
92 systemctl stop cupsd.service >/dev/null 2>&1 || :
93 systemctl stop cups.path >/dev/null 2>&1 || :
97 systemctl daemon-reload >/dev/null 2>&1 || :
101 systemctl daemon-reload >/dev/null 2>&1 || :
102 systemctl try-restart cups.path >/dev/null 2>&1 || :
103 systemctl try-restart cupsd.service >/dev/null 2>&1 || :
107 package %{name}-client
108 summary = CUPS printing system - client programs.
110 CUPS printing system provides a portable printing layer for
111 UNIX operating systems. This package contains command-line client
116 %{name}-libs = %{thisver}
126 %{mandir}/man1/lp*.1.gz
127 %{mandir}/man1/cancel-cups.1.gz
128 %{mandir}/man8/lpc-cups.8.gz
133 summary = CUPS printing system - lpd emulation.
135 CUPS printing system provides a portable printing layer for
136 UNIX operating systems. This is the package that provides standard
142 %{name}-libs = %{thisver}
149 %{unitdir}/cups-lpd.socket
150 %{unitdir}/cups-lpd@.service
151 %{prefix}/lib/daemon/cups-lpd
152 %{mandir}/man8/cups-lpd.8.gz
156 systemctl daemon-reload >/dev/null 2>&1 || :
160 systemctl --no-reload disable cups-lpd.socket >/dev/null 2>&1 || :
161 systemctl --no-reload disable cups-lpd@.service >/dev/null 2>&1 || :
162 systemctl stop cups-lpd.socket >/dev/null 2>&1 || :
163 systemctl stop cups-lpd@.service >/dev/null 2>&1 || :
167 systemctl daemon-reload >/dev/null 2>&1 || :
171 systemctl daemon-reload >/dev/null 2>&1 || :
172 systemctl try-restart cups-lpd@.service >/dev/null 2>&1 || :
176 package %{name}-devel
179 requires += %{name}-libs=%{thisver}
186 package %{name}-ipptool
187 summary = CUPS printing system - tool for performing IPP requests.
189 Sends IPP requests to the specified URI and tests and/or displays \
194 %{name}-libs = %{thisver}
200 %{datadir}/cups/ipptool
201 %{datadir}/cups/ipptool/*
202 %{mandir}/man1/ipptool.1.gz
203 %{mandir}/man5/ipptoolfile.5.gz
207 package %{name}-debuginfo