rpms/rt3/devel rt3.spec,1.23,1.24

Ralf Corsépius (corsepiu) fedora-extras-commits at redhat.com
Mon Mar 17 10:24:39 UTC 2008


Author: corsepiu

Update of /cvs/pkgs/rpms/rt3/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9117

Modified Files:
	rt3.spec 
Log Message:
* Mon Mar 17 2008 Ralf Corsépius <rc040203 at freenet.de> - 3.6.6-4
- Add %{_sysconfdir}/logrotate.d/rt3 (BZ 437100)
- Let RT3_LOGDIR be owned by user apache (BZ 437100).



Index: rt3.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rt3/devel/rt3.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- rt3.spec	7 Mar 2008 02:22:35 -0000	1.23
+++ rt3.spec	17 Mar 2008 10:24:00 -0000	1.24
@@ -13,7 +13,7 @@
 
 Name:		rt3
 Version:	3.6.6
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Request tracker 3
 
 Group:		Applications/Internet
@@ -22,6 +22,7 @@
 Source0:	http://www.bestpractical.com/pub/rt/release/rt-%{version}.tar.gz
 Source3:	rt3.conf.in
 Source4:	README.fedora.in
+Source5:	rt3.logrotate.in
 
 Patch0:		rt-3.6.1-config.diff
 Patch1:		rt-3.4.1-I18N.diff
@@ -85,6 +86,8 @@
 
 sed -e 's, at RT3_CACHEDIR@,%{RT3_CACHEDIR},' %{SOURCE4} \
   > README.fedora
+sed -e 's, at RT3_LOGDIR@,%{RT3_LOGDIR},' %{SOURCE5} \
+  > rt3.logrotate
 
 # Fixup the tarball shipping with broken permissions
 find . \( -name '*.pm' -o -name '*.pm.in' -o -name '*.po' -o -name '*.pod' \) \
@@ -205,6 +208,11 @@
 install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/lib/rt3/lib
 
 install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOGDIR}
+
+# install log rotation stuff
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rt3
+install -m 644 rt3.logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rt3
+
 install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOCALSTATEDIR}
 
 # Fix permissions
@@ -235,7 +243,7 @@
 %{_mandir}/man1/*
 %exclude %{_mandir}/man1/rt-mailgate*
 %{RT3_LIBDIR}/*
-%{RT3_LOGDIR}
+%attr(0700,apache,apache) %{RT3_LOGDIR}
 
 %dir %{_sysconfdir}/rt3
 %attr(-,root,root)%{_sysconfdir}/rt3/upgrade
@@ -244,6 +252,8 @@
 %attr(-,root,root)%{_sysconfdir}/rt3/init*
 %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/rt3/RT_*
 
+%config(noreplace) %{_sysconfdir}/logrotate.d/rt3
+
 %dir %{_datadir}/rt3
 %{RT3_WWWDIR}
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/rt3.conf
@@ -264,8 +274,12 @@
 %{_mandir}/man1/rt-mailgate*
 
 %changelog
+* Mon Mar 17 2008 Ralf Corsépius <rc040203 at freenet.de> - 3.6.6-4
+- Add %%{_sysconfdir}/logrotate.d/rt3 (BZ 437100)
+- Let RT3_LOGDIR be owned by user apache (BZ 437100).
+
 * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 3.6.6-3
-Rebuild for new perl
+- Rebuild for new perl
 
 * Mon Feb 04 2008 Ralf Corsépius <rc040203 at freenet.de> - 3.6.6-2
 - R: perl(CSS::Squish).




More information about the fedora-extras-commits mailing list