SPECS: wpkg-http.spec - package htpasswd - use system Smarty - doe...
glen
glen at pld-linux.org
Sun Nov 13 18:53:07 CET 2005
Author: glen Date: Sun Nov 13 17:53:07 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- package htpasswd
- use system Smarty
- doesn't work ...
---- Files affected:
SPECS:
wpkg-http.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/wpkg-http.spec
diff -u SPECS/wpkg-http.spec:1.6 SPECS/wpkg-http.spec:1.7
--- SPECS/wpkg-http.spec:1.6 Sun Nov 13 18:13:35 2005
+++ SPECS/wpkg-http.spec Sun Nov 13 18:53:01 2005
@@ -1,19 +1,20 @@
# $Revision$, $Date$
-# TODO:
-# - config for apache
-# - use system Smarty
+# TODO
+# - smarty cache dirs to /var/cache
Summary: WPKG - HTTP backend
Summary(pl): WPKG - Interfejs WWW
Name: wpkg-http
%define _snap 06062005
Version: 0.0.%{_snap}
-Release: 0.1
+Release: 0.6
License: GPL v2
Group: Applications
Source0: http://dl.sourceforge.net/wpkg/%{name}-%{_snap}.tar.gz
# Source0-md5: 033e6251fb80db3ec1207f83155a5b6b
Source1: %{name}_apache.conf
+Patch0: %{name}-config.patch
URL: http://wpkg.sourceforge.net/
+Requires: Smarty >= 2.6.10-4
Requires: apache >= 1.3.33-2
Requires: php
Requires: wpkg
@@ -31,8 +32,11 @@
%prep
%setup -q -n wpkg
+%patch0 -p1
rm INSTALL xml/{hosts.xml,packages.xml,profiles.xml} root/wpkg.tar.gz
+rm -rf libs/smarty
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
@@ -43,7 +47,6 @@
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-
mv $RPM_BUILD_ROOT%{_appdir}/config/* $RPM_BUILD_ROOT%{_sysconfdir}
cd $RPM_BUILD_ROOT%{_appdir}/config
ln -s %{_sysconfdir}/config.xml config.xml
@@ -51,6 +54,7 @@
ln -s %{_sysconfdir}/hosts.xml hosts.xml
ln -s %{_sysconfdir}/packages.xml packages.xml
ln -s %{_sysconfdir}/profiles.xml profiles.xml
+touch $RPM_BUILD_ROOT%{_sysconfdir}/htpasswd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -70,7 +74,10 @@
%files
%defattr(644,root,root,755)
%dir %{_sysconfdir}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.xml
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/htpasswd
+
%dir %{_appdir}
%{_appdir}/*
@@ -80,6 +87,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2005/11/13 17:53:01 glen
+- package htpasswd
+- use system Smarty
+- doesn't work ...
+
Revision 1.6 2005/11/13 17:13:35 glen
- use apache config triggers
- cleanups
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/wpkg-http.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list