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 \
61 make install BUILDROOT=%{BUILDROOT}
63 # Install default config file.
64 mkdir -pv %{BUILDROOT}/etc/cups
65 cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
76 systemctl daemon-reload >/dev/null 2>&1 || :
77 systemctl --no-reload enable cups.path >/dev/null 2>&1 || :
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 || :
90 systemctl daemon-reload >/dev/null 2>&1 || :
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 || :
100 package %{name}-client
101 summary = CUPS printing system - client programs.
103 CUPS printing system provides a portable printing layer for
104 UNIX operating systems. This package contains command-line client
109 %{name}-libs = %{thisver}
119 %{mandir}/man1/lp*.1.gz
120 %{mandir}/man1/cancel-cups.1.gz
121 %{mandir}/man8/lpc-cups.8.gz
126 summary = CUPS printing system - lpd emulation.
128 CUPS printing system provides a portable printing layer for
129 UNIX operating systems. This is the package that provides standard
135 %{name}-libs = %{thisver}
142 %{unitdir}/cups-lpd.socket
143 %{unitdir}/cups-lpd@.service
144 %{prefix}/lib/daemon/cups-lpd
145 %{mandir}/man8/cups-lpd.8.gz
149 systemctl daemon-reload >/dev/null 2>&1 || :
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 || :
160 systemctl daemon-reload >/dev/null 2>&1 || :
164 systemctl daemon-reload >/dev/null 2>&1 || :
165 systemctl try-restart cups-lpd@.service >/dev/null 2>&1 || :
169 package %{name}-devel
172 requires += %{name}-libs=%{thisver}
179 package %{name}-ipptool
180 summary = CUPS printing system - tool for performing IPP requests.
182 Sends IPP requests to the specified URI and tests and/or displays \
187 %{name}-libs = %{thisver}
193 %{datadir}/cups/ipptool
194 %{datadir}/cups/ipptool/*
195 %{mandir}/man1/ipptool.1.gz
196 %{mandir}/man5/ipptoolfile.5.gz
200 package %{name}-debuginfo