SPECS: mpd.spec - hu summary, description - mpd.conf default config - mpd u...

uzsolt uzsolt at pld-linux.org
Mon Nov 3 20:07:04 CET 2008


Author: uzsolt                       Date: Mon Nov  3 19:07:04 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- hu summary, description
- mpd.conf default config
- mpd user and group
- rel 1.1

---- Files affected:
SPECS:
   mpd.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/mpd.spec
diff -u SPECS/mpd.spec:1.18 SPECS/mpd.spec:1.19
--- SPECS/mpd.spec:1.18	Thu Sep  4 00:59:31 2008
+++ SPECS/mpd.spec	Mon Nov  3 20:06:58 2008
@@ -1,19 +1,19 @@
 # $Revision$, $Date$
 # TODO:
 # - add initscript
-# - create user for daemon (group audio)
 # - add dir to store playlists and songs DB
-# - create default config
 # - add logrotate
 Summary:	Music Player Daemon
+Summary(hu.UTF-8):	Music Player Daemon
 Summary(pl.UTF-8):	Music Player Daemon - demon odtwarzający muzykę
 Name:		mpd
 Version:	0.13.2
-Release:	1
+Release:	1.1
 License:	GPL v2+
 Group:		Applications/Multimedia
 Source0:	http://musicpd.org/uploads/files/%{name}-%{version}.tar.bz2
 # Source0-md5:	b461896369949ff3cff955692ead9f8b
+Source1:	%{name}.conf
 URL:		http://www.musicpd.org/
 BuildRequires:	alsa-lib-devel >= 0.9.0
 BuildRequires:	audiofile-devel >= 0.1.7
@@ -33,6 +33,8 @@
 BuildRequires:	pkgconfig >= 1:0.9.0
 BuildRequires:	pulseaudio-devel
 BuildRequires:	zlib-devel
+Provides:	group(mpd)
+Provides:	user(mpd)
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -43,6 +45,14 @@
 makes a great desktop music player, especially if you are a console
 junkie, like frontend options, or restart X often.
 
+%description -l hu.UTF-8
+Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
+(MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
+menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
+irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
+zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
+sűrűn indítják újra az X-et.
+
 %description -l pl.UTF-8
 Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
 muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
@@ -68,10 +78,22 @@
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 204 mpd
+%useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd
+
+%postun
+if [ "$1" = "0" ]; then
+	%userremove mpd
+	%groupremove mpd
+fi
+
 
 %files
 %defattr(644,root,root,755)
@@ -79,6 +101,7 @@
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/mpd.1*
 %{_mandir}/man5/mpd.conf.5*
+%{_sysconfdir}/mpd.conf
 
 #%{_datadir}/%{name}
 
@@ -92,6 +115,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2008/11/03 19:06:58  uzsolt
+- hu summary, description
+- mpd.conf default config
+- mpd user and group
+- rel 1.1
+
 Revision 1.18  2008/09/03 22:59:31  arvenil
 - up to 0.13.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mpd.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list