SPECS: cvsweb.spec - enscript files need to be in enscript dir for...

glen glen at pld-linux.org
Wed Jan 11 00:31:45 CET 2006


Author: glen                         Date: Tue Jan 10 23:31:45 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- enscript files need to be in enscript dir for $allow_enscript to work, so created enscript-cvsweb subpackage

---- Files affected:
SPECS:
   cvsweb.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/cvsweb.spec
diff -u SPECS/cvsweb.spec:1.35 SPECS/cvsweb.spec:1.36
--- SPECS/cvsweb.spec:1.35	Tue Jan 10 00:53:05 2006
+++ SPECS/cvsweb.spec	Wed Jan 11 00:31:39 2006
@@ -4,7 +4,7 @@
 Summary(pl):	Wizualny (WWW) interfejs do przeglądania repozytorium CVS
 Name:		cvsweb
 Version:	3.0.6
-Release:	0.7
+Release:	0.8
 Epoch:		1
 License:	BSD
 Group:		Development/Tools
@@ -31,6 +31,7 @@
 %define		_sysconfdir	%{_webapps}/%{_webapp}
 %define		_appdir		%{_datadir}/%{name}
 %define		_cgibindir	%{_prefix}/lib/cgi-bin
+%define		_enscriptdir	%{_datadir}/enscript/hl
 
 %description
 CVSweb is a WWW interface for CVS repositories with which you can
@@ -53,23 +54,31 @@
 wiele błędów. Wprowadzono także dużo poprawek bezpieczeństwa oraz
 rozbudowano funkcjonalność.
 
+%package -n enscript-%{name}
+Summary:	Enscript language files for CVSweb
+Group:		Applications/Publishing
+Requires:	enscript >= 1.6.3
+
+%description -n enscript-%{name}
+Enscript language files for CVSweb.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 
-install cvsweb.conf* samples
+cp -a cvsweb.conf* samples
 
 # remove backups
 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir}/{css,enscript,icons},%{_cgibindir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_appdir}/{css,icons},%{_cgibindir},%{_enscriptdir},%{_sysconfdir}}
 
 install %{name}.cgi	$RPM_BUILD_ROOT%{_cgibindir}
 install css/*		$RPM_BUILD_ROOT%{_appdir}/css
-install enscript/*	$RPM_BUILD_ROOT%{_appdir}/enscript
+install enscript/*	$RPM_BUILD_ROOT%{_enscriptdir}
 install icons/*		$RPM_BUILD_ROOT%{_appdir}/icons
 
 install %{name}.conf	$RPM_BUILD_ROOT%{_sysconfdir}
@@ -159,12 +168,19 @@
 %attr(755,root,root) %{_cgibindir}/cvsweb.cgi
 %{_appdir}
 
+%files -n enscript-%{name}
+%defattr(644,root,root,755)
+%{_enscriptdir}/*
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2006/01/10 23:31:39  glen
+- enscript files need to be in enscript dir for $allow_enscript to work, so created enscript-cvsweb subpackage
+
 Revision 1.35  2006/01/09 23:53:05  glen
 - list incompatible apaches
 - add webapp triggers
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cvsweb.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list