From: Marcin Krol Date: Wed, 6 Apr 2022 15:55:05 +0000 (+0200) Subject: - allow building without systemd X-Git-Tag: auto/th/colord-1.4.6-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ed86ed9c572b8200742e7fcb44bb509e4112f13c;p=packages%2Fcolord.git - allow building without systemd --- diff --git a/colord.spec b/colord.spec index 941a6d2..d139af0 100644 --- a/colord.spec +++ b/colord.spec @@ -3,6 +3,7 @@ %bcond_without apidocs # gtk-doc based API documentation %bcond_without sane # SANE support %bcond_without vala # Vala API +%bcond_without systemd # systemd Summary: Color daemon - system daemon for managing color devices Summary(pl.UTF-8): Demon colord - usługa systemowa do zarządzania urządzeniami obsługującymi kolory @@ -35,7 +36,7 @@ BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.736 %{?with_sane:BuildRequires: sane-backends-devel} BuildRequires: sqlite3-devel >= 3 -BuildRequires: systemd-devel >= 44 +%{?with_systemd:BuildRequires: systemd-devel >= 44} BuildRequires: tar >= 1:1.22 BuildRequires: udev-devel BuildRequires: udev-glib-devel @@ -144,6 +145,7 @@ Bashowe uzupełnianie poleceń terminalowych colormgr. %{!?with_apidocs:-Ddocs=false} \ -Dlibcolordcompat=true \ %{?with_sane:-Dsane=true} \ + %{!?with_systemd:-Dsystemd=false} \ %{?with_vala:-Dvapi=true} \ -Ddaemon_user=colord @@ -216,9 +218,11 @@ fi %{_mandir}/man1/cd-fix-profile.1* %{_mandir}/man1/cd-it8.1* %{_mandir}/man1/colormgr.1* +%if %{with systemd} %{systemdunitdir}/colord.service %{systemduserunitdir}/colord-session.service %{systemdtmpfilesdir}/colord.conf +%endif /lib/udev/rules.d/69-cd-sensors.rules /lib/udev/rules.d/95-cd-devices.rules %attr(755,colord,colord) %dir /var/lib/colord