[packages/cups] - allow building without systemd
hawk
hawk at pld-linux.org
Wed Apr 6 17:54:35 CEST 2022
commit 107180679ab5f4f04388fff845156b5526f74e3a
Author: Marcin Krol <hawk at tld-linux.org>
Date: Wed Apr 6 17:54:03 2022 +0200
- allow building without systemd
cups.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/cups.spec b/cups.spec
index 592b886..102d0bc 100644
--- a/cups.spec
+++ b/cups.spec
@@ -7,6 +7,7 @@
%bcond_with lspp # audit and SELinux label support (lspp patch)
%bcond_with tcp_wrappers # tcp_wrappers/libwrap support
%bcond_without static_libs # static library
+%bcond_without systemd # systemd
Summary(pl.UTF-8): Ogólny system druku dla Uniksa
Summary(pt_BR.UTF-8): Sistema Unix de Impressão
@@ -80,7 +81,7 @@ BuildRequires: libusb-devel >= 1.0
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.641
-BuildRequires: systemd-devel
+%{?with_systemd:BuildRequires: systemd-devel}
BuildRequires: zlib-devel
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
@@ -342,7 +343,8 @@ bibliotecas do CUPS.
%{?with_dnssd:--with-dnssd-libs=x} \
%{?with_dnssd:--with-dnssd-includes=x} \
--with-optim=-Wno-format-y2k \
- --with-systemd=%{systemdunitdir}
+ %{?with_systemd:--with-systemd=%{systemdunitdir}} \
+ %{!?with_systemd:--disable-systemd}
%{__make} %{?debug:OPTIONS="-DDEBUG"}
@@ -457,10 +459,12 @@ fi
%attr(754,root,root) /etc/rc.d/init.d/cups
/etc/dbus-1/system.d/cups.conf
/etc/modprobe.d/cups.conf
+%if %{with systemd}
%{systemdunitdir}/org.cups.cupsd.service
%{systemdunitdir}/org.cups.cupsd.socket
%{systemdunitdir}/org.cups.cupsd.path
%{systemdtmpfilesdir}/%{name}.conf
+%endif
%attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf
%attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cups-files.conf
%attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf
@@ -608,8 +612,10 @@ fi
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/cups-lpd
%attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd
+%if %{with systemd}
%{systemdunitdir}/org.cups.cups-lpd.socket
%{systemdunitdir}/org.cups.cups-lpd at .service
+%endif
%{_mandir}/man8/cups-lpd.8*
%files ppdc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cups.git/commitdiff/107180679ab5f4f04388fff845156b5526f74e3a
More information about the pld-cvs-commit
mailing list