packages: mpd/mpd.spec - up to 0.16.6 - systemd support - rel. 1

wiget wiget at pld-linux.org
Thu Feb 2 16:39:09 CET 2012


Author: wiget                        Date: Thu Feb  2 15:39:09 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.16.6
- systemd support
- rel. 1

---- Files affected:
packages/mpd:
   mpd.spec (1.77 -> 1.78) 

---- Diffs:

================================================================
Index: packages/mpd/mpd.spec
diff -u packages/mpd/mpd.spec:1.77 packages/mpd/mpd.spec:1.78
--- packages/mpd/mpd.spec:1.77	Tue Jan 31 12:53:12 2012
+++ packages/mpd/mpd.spec	Thu Feb  2 16:39:04 2012
@@ -11,12 +11,12 @@
 Summary(hu.UTF-8):	Music Player Daemon
 Summary(pl.UTF-8):	Music Player Daemon - demon odtwarzający muzykę
 Name:		mpd
-Version:	0.16.5
-Release:	4
+Version:	0.16.6
+Release:	1
 License:	GPL v2+
 Group:		Applications/Multimedia
 Source0:	http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
-# Source0-md5:	f7564cff12035f6a1112cce770655df7
+# Source0-md5:	5489dd327fba12c67f01558d2cfa6d57
 Source1:	%{name}.conf
 Source2:	%{name}.init
 Source3:	%{name}.sysconfig
@@ -52,6 +52,7 @@
 BuildRequires:	libvorbis-devel
 BuildRequires:	pkgconfig >= 1:0.9.0
 %{?with_pulseaudio:BuildRequires:	pulseaudio-devel}
+BuildRequires:	rpmbuild(macros) >= 1.629-2
 BuildRequires:	sqlite3-devel
 BuildRequires:	twolame-devel
 BuildRequires:	wavpack-devel
@@ -59,6 +60,7 @@
 BuildRequires:	xmlto
 BuildRequires:	zlib-devel
 BuildRequires:	zziplib-devel
+Requires:	systemd-units >= 37-0.10
 Provides:	group(mpd)
 Provides:	user(mpd)
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -162,7 +164,8 @@
 	--enable-wildmidi \
 	--enable-zzip \
 	--with-zeroconf=avahi \
-	--without-tremor
+	--without-tremor \
+	--with-systemdsystemunitdir=%{systemdunitdir}
 %{__make}
 
 %install
@@ -202,18 +205,24 @@
 	fi
 done
 /sbin/chkconfig --add mpd
+%systemd_post %{name}.service
 
 %preun
 if [ "$1" = "0" ]; then
 	%service mpd stop
 	/sbin/chkconfig --del mpd
 fi
+%systemd_preun %{name}.service
 
 %postun
 if [ "$1" = "0" ]; then
 	%userremove mpd
 	%groupremove mpd
 fi
+%systemd_reload
+
+%triggerpostun -- %{name} < 0.16.6-1
+%systemd_trigger %{name}.service
 
 %files
 %defattr(644,root,root,755)
@@ -223,6 +232,7 @@
 %attr(754,root,root) /etc/rc.d/init.d/mpd
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mpd
 /usr/lib/tmpfiles.d/%{name}.conf
+%{systemdunitdir}/mpd.service
 %dir %attr(770,root,mpd) /var/lib/%{name}
 %dir %attr(770,root,mpd) /var/lib/%{name}/playlists
 %dir %attr(751,root,root) /var/log/%{name}
@@ -248,6 +258,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.78  2012/02/02 15:39:04  wiget
+- up to 0.16.6
+- systemd support
+- rel. 1
+
 Revision 1.77  2012/01/31 11:53:12  baggins
 - release 4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mpd/mpd.spec?r1=1.77&r2=1.78&f=u



More information about the pld-cvs-commit mailing list