packages: colord/colord.spec - install systemd service - release 2

megabajt megabajt at pld-linux.org
Sun Feb 19 22:37:39 CET 2012


Author: megabajt                     Date: Sun Feb 19 21:37:39 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- install systemd service
- release 2

---- Files affected:
packages/colord:
   colord.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/colord/colord.spec
diff -u packages/colord/colord.spec:1.16 packages/colord/colord.spec:1.17
--- packages/colord/colord.spec:1.16	Fri Jan 20 19:25:20 2012
+++ packages/colord/colord.spec	Sun Feb 19 22:37:33 2012
@@ -1,5 +1,4 @@
 # $Revision$, $Date$
-# TODO: systemd units (--with-systemdsystemunitdir=...)
 #
 # Conditional build:
 %bcond_without	apidocs		# do not build and package API docs
@@ -10,7 +9,7 @@
 Summary(pl.UTF-8):	Demon colord - usługa systemowa do zarządzania urządzeniami obsługującymi kolory
 Name:		colord
 Version:	0.1.16
-Release:	1
+Release:	2
 License:	GPL v2+ and LGPL v2+
 Group:		Daemons
 Source0:	http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
@@ -30,12 +29,14 @@
 BuildRequires:	libusb-devel >= 1.0.0
 BuildRequires:	pkgconfig
 BuildRequires:	polkit-devel >= 0.103
+BuildRequires:	rpmbuild(macros) >= 1.644
 BuildRequires:	sane-backends-devel >= 1.0.20-3
 BuildRequires:	sqlite3-devel
 BuildRequires:	udev-glib-devel
 %{?with_vala:BuildRequires:	vala}
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	polkit-libs >= 0.103
+Requires:	systemd-units >= 38
 Suggests:	shared-color-profiles
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -125,7 +126,8 @@
 	--disable-silent-rules \
 	%{__enable_disable apidocs gtk-doc} \
 	%{__enable_disable static_libs static} \
-	--with-html-dir=%{_gtkdocdir}
+	--with-html-dir=%{_gtkdocdir} \
+	--with-systemdsystemunitdir=%{systemdunitdir}
 # doc build is broken with -j
 %{__make} -j1
 
@@ -147,6 +149,15 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%systemd_post colord.service
+
+%preun
+%systemd_preun colord.service
+
+%postun
+%systemd_reload
+
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
@@ -174,6 +185,7 @@
 %{_mandir}/man1/cd-create-profile.1*
 %{_mandir}/man1/cd-fix-profile.1*
 %{_mandir}/man1/colormgr.1*
+%{systemdunitdir}/colord.service
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
 /lib/udev/rules.d/69-cd-sensors.rules
@@ -217,6 +229,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2012/02/19 21:37:33  megabajt
+- install systemd service
+- release 2
+
 Revision 1.16  2012/01/20 18:25:20  qboosh
 - updated to 0.1.16
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/colord/colord.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list