SPECS: rt.spec - first try to switch to webapps, just for apache, so R: apa...

paszczus paszczus at pld-linux.org
Tue Jan 20 10:25:33 CET 2009


Author: paszczus                     Date: Tue Jan 20 09:25:33 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- first try to switch to webapps, just for apache, so R: apache-base

---- Files affected:
SPECS:
   rt.spec (1.68 -> 1.69) 

---- Diffs:

================================================================
Index: SPECS/rt.spec
diff -u SPECS/rt.spec:1.68 SPECS/rt.spec:1.69
--- SPECS/rt.spec:1.68	Mon Jan 19 09:52:30 2009
+++ SPECS/rt.spec	Tue Jan 20 10:25:28 2009
@@ -40,7 +40,7 @@
 Summary(pl.UTF-8):	Request Tracker - system do śledzenia zleceń
 Name:		rt
 Version:	3.8.2
-Release:	1
+Release:	1.1
 License:	GPL v2
 Group:		Applications
 Source0:	http://download.bestpractical.com/pub/rt/release/%{name}-%{version}.tar.gz
@@ -115,6 +115,7 @@
 BuildRequires:	perl-XML-RSS >= %{perl_xml_rss_ver}
 BuildRequires:	perl-base >= 5.8.0
 BuildRequires:	perl-libnet
+Requires:	apache-base >= 2.2.0
 Requires:	perl-Apache-Session >= %{perl_apache_session_ver}
 Requires:	perl-CGI >= %{perl_cgi_ver}
 Requires:	perl-CSS-Squish >= %{perl_css_squish_ver}
@@ -154,6 +155,9 @@
 %define		_noautoreq	'perl().*' 'perl(RT.*)' 'perl(Encode::compat)' 'perl(CGI::Fast)' 'perl(Exception::Class::Base)'
 # workarounds for bug in perl.req ("perl()") and ,,famous'' rpm's feature (RT::*)
 
+%define         _webapps        /etc/webapps
+%define         _webapp         %{name}
+%define         _webappsdir     %{_webapps}/%{_webapp}
 %define		_sysconfdir	/etc/rt3
 %define		_libdir		%{perl_vendorlib}
 %define		htmldir		%{_datadir}/rt3/html
@@ -217,12 +221,12 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_libdir} \
 	$RPM_BUILD_ROOT%{masonstatedir} \
-	$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+	$RPM_BUILD_ROOT%{_webappsdir}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cat %{SOURCE1} %{SOURCE2} > $RPM_BUILD_ROOT%{_webappsdir}/httpd.conf
 
 # unneeded in installed copy
 rm -f $RPM_BUILD_ROOT%{_sbindir}/rt-test-dependencies
@@ -230,14 +234,21 @@
 # *.in, tests
 find $RPM_BUILD_ROOT -type f -name \*.in -exec rm '{}' \;
 
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc README* UPGRADING docs
-%dir %{_sysconfdir}
+%dir %attr(750,root,http) %{_sysconfdir}
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappsdir}/httpd.conf
 %attr(755,root,root) %{_bindir}/mason_handler.*
 %attr(755,root,root) %{_bindir}/rt-*
 %attr(755,root,root) %{_bindir}/standalone_httpd
@@ -247,7 +258,6 @@
 %{_datadir}/rt3/html
 %{_libdir}/*
 %dir %attr(770,root,http) %{masonstatedir}
-%{_examplesdir}/%{name}-%{version}
 
 %files cli
 %defattr(644,root,root,755)
@@ -259,6 +269,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.69  2009/01/20 09:25:28  paszczus
+- first try to switch to webapps, just for apache, so R: apache-base
+
 Revision 1.68  2009/01/19 08:52:30  paszczus
 - and one more R: perl-PerlIO-eol
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/rt.spec?r1=1.68&r2=1.69&f=u



More information about the pld-cvs-commit mailing list