Author: jamielinux
Update of /cvs/free/rpms/mpd/F-16
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3032/F-16
Modified Files:
mpd.spec
Log Message:
Fix log directory permissions
Index: mpd.spec
===================================================================
RCS file: /cvs/free/rpms/mpd/F-16/mpd.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- mpd.spec 9 Apr 2012 15:50:34 -0000 1.23
+++ mpd.spec 9 Apr 2012 20:28:05 -0000 1.24
@@ -13,7 +13,7 @@
Name: mpd
Version: 0.16.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The Music Player Daemon
License: GPLv2+
Group: Applications/Multimedia
@@ -120,13 +120,9 @@
# as we switched from running as root.root to mpd.mpd
# chown the db files and playlists on upgrades
chown -R %{mpd_user}.%{mpd_group} \
- %{mpd_playlistsdir} > /dev/null 2>&1 ||:
- chown %{mpd_user}.%{mpd_group} \
- %{mpd_dbfile} > /dev/null 2>&1 ||:
- chown %{mpd_user}.%{mpd_group} \
- %{mpd_logfile} > /dev/null 2>&1 ||:
- chown %{mpd_user}.%{mpd_group} \
- %{mpd_statefile} > /dev/null 2>&1 ||:
+ %{mpd_homedir} > /dev/null 2>&1 ||:
+ chown -R %{mpd_user}.%{mpd_group} \
+ %{mpd_logdir} > /dev/null 2>&1 ||:
fi
%preun
@@ -150,6 +146,7 @@
%defattr(-,%{mpd_user},%{mpd_group})
%dir %{mpd_homedir}
+%dir %{mpd_logdir}
%dir %{mpd_musicdir}
%dir %{mpd_playlistsdir}
%ghost %{mpd_dbfile}
@@ -157,6 +154,10 @@
%ghost %{mpd_statefile}
%changelog
+* Mon Apr 09 2012 Jamie Nguyen <jamie(a)tomoyolinux.co.uk> - 0.16.8-2
+- chown recursively in %%post scriptlet
+- add missing %%{mpd_logdir} to %%files
+
* Mon Apr 09 2012 Jamie Nguyen <jamie(a)tomoyolinux.co.uk> - 0.16.8-1
- update to 0.16.8
Show replies by date