SPECS: viewvc.spec - use viewvc-install instead copying files - vi...

twittner twittner at pld-linux.org
Sun Oct 1 11:18:54 CEST 2006


Author: twittner                     Date: Sun Oct  1 09:18:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use viewvc-install instead copying files - viewvc-install
  sets some parameters (paths) in sources during installation

---- Files affected:
SPECS:
   viewvc.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/viewvc.spec
diff -u SPECS/viewvc.spec:1.1 SPECS/viewvc.spec:1.2
--- SPECS/viewvc.spec:1.1	Sat Sep 30 22:24:59 2006
+++ SPECS/viewvc.spec	Sun Oct  1 11:18:48 2006
@@ -76,13 +76,11 @@
 <Location /cgi-bin/viewvc.cgi>
     Allow from all
 
-# TODO: make mod_python example instead mod_perl
-# if using apache2 mod_perl:
-#   <IfModule mod_perl.c>
-#       SetHandler perl-script
-#       PerlResponseHandler ModPerl::Registry
-#       PerlOptions +ParseHeaders
-#       Options ExecCGI
+# if using apache2 mod_python:
+#   <IfModule mod_python.c>
+#        AddHandler mod_python .py
+#        PythonHandler handler 
+#        PythonDebug Off 
 #   </IfModule>
 </Location>
 
@@ -109,15 +107,13 @@
 install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
 #install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
 
-cp -Rf bin lib templates	$RPM_BUILD_ROOT%{_appdir}
-cp -f cvsgraph.conf.dist	$RPM_BUILD_ROOT%{_sysconfdir}/cvsgraph.conf
-cp -f viewvc.conf.dist		$RPM_BUILD_ROOT%{_sysconfdir}/viewvc.conf
+./viewvc-install --destdir=$RPM_BUILD_ROOT --prefix=%{_appdir}
+
+mv -f $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}/cvsgraph.conf 
+mv -f $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}/viewvc.conf 
 ln -sf %{_sysconfdir}/cvsgraph.conf $RPM_BUILD_ROOT%{_appdir}/cvsgraph.conf
 ln -sf %{_sysconfdir}/viewvc.conf $RPM_BUILD_ROOT%{_appdir}/viewvc.conf
 
-# compile the scripts
-%{py_comp} $RPM_BUILD_ROOT%{_appdir}/lib
-
 # %webapp_* macros usage extracted from /usr/lib/rpm/macros.build:
 #
 # Usage:
@@ -352,6 +348,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/10/01 09:18:48  twittner
+- use viewvc-install instead copying files - viewvc-install
+  sets some parameters (paths) in sources during installation
+
 Revision 1.1  2006/09/30 20:24:59  twittner
 - viewvc: viewcvs successor
 - spec based on template-webapp.spec
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/viewvc.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list