[packages/colord] - add systemd user service startup, rel 3

baggins baggins at pld-linux.org
Sat Jan 8 13:59:27 CET 2022


commit 2c69892c74b9f36b138958bd1927cc2979728c76
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 8 13:59:06 2022 +0100

    - add systemd user service startup, rel 3

 colord.spec | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/colord.spec b/colord.spec
index 2cddf82..72b6caf 100644
--- a/colord.spec
+++ b/colord.spec
@@ -8,7 +8,7 @@ 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
 Name:		colord
 Version:	1.4.5
-Release:	2
+Release:	3
 License:	GPL v2+ and LGPL v2+
 Group:		Daemons
 Source0:	https://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
@@ -32,7 +32,7 @@ BuildRequires:	ninja
 BuildRequires:	pkgconfig
 BuildRequires:	polkit-devel >= 0.103
 BuildRequires:	rpm-build >= 4.6
-BuildRequires:	rpmbuild(macros) >= 1.736
+BuildRequires:	rpmbuild(macros) >= 2.011
 %{?with_sane:BuildRequires:	sane-backends-devel}
 BuildRequires:	sqlite3-devel >= 3
 BuildRequires:	systemd-devel >= 44
@@ -41,10 +41,10 @@ BuildRequires:	udev-devel
 BuildRequires:	udev-glib-devel
 %{?with_vala:BuildRequires:	vala}
 BuildRequires:	xz
-Requires(post,preun,postun):	systemd-units >= 44
+Requires(post,preun,postun):	systemd-units >= 250.1
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	polkit >= 0.103
-Requires:	systemd-units >= 44
+Requires:	systemd-units >= 250.1
 # /usr/bin/spotread called by argyll sensor driver
 Suggests:	argyllcms
 Suggests:	shared-color-profiles
@@ -165,6 +165,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %glib_compile_schemas
+%systemd_user_post colord-session.service
+
+%preun
+%systemd_user_preun colord-session.service
 
 %postun
 %systemd_reload
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/colord.git/commitdiff/2c69892c74b9f36b138958bd1927cc2979728c76



More information about the pld-cvs-commit mailing list