rpms/mpd/F-17 mpd.logrotate,NONE,1.1 mpd.spec,1.27,1.28

Jamie Nguyen jamielinux at rpmfusion.org
Sun Feb 24 00:06:47 CET 2013


Author: jamielinux

Update of /cvs/free/rpms/mpd/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv13970/F-17

Modified Files:
	mpd.spec 
Added Files:
	mpd.logrotate 
Log Message:
Add a logrotate file




--- NEW FILE mpd.logrotate ---
/var/log/mpd/*.log {
    weekly
    missingok
    rotate 7
    compress
    notifempty
    copytruncate
    create 600
}


Index: mpd.spec
===================================================================
RCS file: /cvs/free/rpms/mpd/F-17/mpd.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- mpd.spec	1 Sep 2012 19:58:02 -0000	1.27
+++ mpd.spec	23 Feb 2013 23:06:47 -0000	1.28
@@ -16,13 +16,14 @@
 Name:           mpd
 Epoch:          1
 Version:        0.16.8
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        The Music Player Daemon
 License:        GPLv2+
 Group:          Applications/Multimedia
 URL:            http://mpd.wikia.com/
 
 Source0:        http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
+Source1:        mpd.logrotate
 Patch0:         mpd-0.16.7-default-pulseaudio.patch
 
 BuildRequires:     alsa-lib-devel
@@ -45,7 +46,7 @@
 BuildRequires:     libmpcdec-devel
 BuildRequires:     libogg-devel
 BuildRequires:     libsamplerate-devel
-BuildRequires:     libshout-devel 
+BuildRequires:     libshout-devel
 BuildRequires:     libvorbis-devel
 BuildRequires:     mikmod-devel
 BuildRequires:     pkgconfig(libpulse)
@@ -87,6 +88,9 @@
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 
+install -p -D -m 0644 %{SOURCE1} \
+    $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/mpd
+
 mkdir -p $RPM_BUILD_ROOT%{mpd_homedir}
 mkdir -p $RPM_BUILD_ROOT%{mpd_logdir}
 mkdir -p $RPM_BUILD_ROOT%{mpd_musicdir}
@@ -156,6 +160,7 @@
 %{_mandir}/man5/mpd.conf.5*
 %{_unitdir}/mpd.service
 %config(noreplace) %{mpd_configfile}
+%config(noreplace) %{_sysconfdir}/logrotate.d/mpd
 
 %defattr(-,%{mpd_user},%{mpd_group})
 %dir %{mpd_homedir}
@@ -168,6 +173,9 @@
 
 
 %changelog
+* Sat Feb 23 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1:0.16.8-6
+- add a logrotate file
+
 * Fri Aug 17 2012 Adrian Reber <adrian at lisas.de> - 1:0.16.8-5
 - fix "mpd fails to bind an addres: started too early" (#2447)
 


More information about the rpmfusion-commits mailing list