SPECS: php-xcache.spec - -web subpackage

glen glen at pld-linux.org
Thu Nov 13 18:58:28 CET 2008


Author: glen                         Date: Thu Nov 13 17:58:28 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- -web subpackage

---- Files affected:
SPECS:
   php-xcache.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/php-xcache.spec
diff -u SPECS/php-xcache.spec:1.18 SPECS/php-xcache.spec:1.19
--- SPECS/php-xcache.spec:1.18	Wed Jan 30 21:44:49 2008
+++ SPECS/php-xcache.spec	Thu Nov 13 18:58:23 2008
@@ -1,17 +1,17 @@
 # $Revision$, $Date$
-%define		_modname	xcache
-Summary:	%{_modname} - PHP opcode cacher
-Summary(pl.UTF-8):	%{_modname} - buforowanie opcodów PHP
-Name:		php-%{_modname}
+%define		modname	xcache
+Summary:	%{modname} - PHP opcode cacher
+Summary(pl.UTF-8):	%{modname} - buforowanie opcodów PHP
+Name:		php-%{modname}
 Version:	1.2.2
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Languages/PHP
 URL:		http://xcache.lighttpd.net/
 Source0:	http://xcache.lighttpd.net/pub/Releases/%{version}/xcache-%{version}.tar.bz2
 # Source0-md5:	0907f62536e6f8b10f900e54e37090b9
-Source1:	%{_modname}-apache.conf
-Source2:	%{_modname}-lighttpd.conf
+Source1:	%{modname}-apache.conf
+Source2:	%{modname}-lighttpd.conf
 BuildRequires:	php-devel >= 3:5.1
 BuildRequires:	rpmbuild(macros) >= 1.344
 BuildRequires:	sed >= 4.0
@@ -20,7 +20,7 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_webapps	/etc/webapps
-%define		_webapp		%{_modname}
+%define		_webapp		%{modname}
 %define		_sysconfdir	%{_webapps}/%{_webapp}
 %define		_appdir		%{_datadir}/%{_webapp}
 
@@ -32,8 +32,21 @@
 XCache to szybkie, stabilne buforowanie opcodów PHP, przetestowane i
 działające na produkcyjnych serwerach o dużym obciążeniu.
 
+%package web
+Summary:	WEB interface for xCache
+Group:		Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	webapps
+Requires:	webserver(php) >= 5.0
+
+%description web
+Via this web interface script you can manage and view statistics of
+xCache.
+
+More information you can find at %{url}.
+
 %prep
-%setup -q -n %{_modname}-%{version}
+%setup -q -n %{modname}-%{version}
 %{__sed} -i -e '
 	s,zend_extension =.*,zend_extension = %{php_extensiondir}/xcache.so,
 	s,zend_extension_ts = .*,zend_extension_ts = %{php_extensiondir}/xcache.so,
@@ -55,11 +68,11 @@
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 
 # The cache directory where pre-compiled files will reside
-install -d $RPM_BUILD_ROOT/var/cache/php-%{_modname}
+install -d $RPM_BUILD_ROOT/var/cache/php-%{modname}
 install -d $RPM_BUILD_ROOT%{_appdir}
 
 # Drop in the bit of configuration
-install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
+install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 install admin/* $RPM_BUILD_ROOT%{_appdir}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
@@ -77,35 +90,40 @@
 	%php_webserver_restart
 fi
 
-%triggerin -- apache1 < 1.3.37-3, apache1-base
+%triggerin web -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
 
-%triggerun -- apache1 < 1.3.37-3, apache1-base
+%triggerun web -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin web -- apache < 2.2.0, apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun web -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
-%triggerin -- lighttpd
+%triggerin web -- lighttpd
 %webapp_register lighttpd %{_webapp}
 
-%triggerun -- lighttpd
+%triggerun web -- lighttpd
 %webapp_unregister lighttpd %{_webapp}
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README THANKS
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
+
+# XXX: what for this dir is used?
+%dir %attr(775,root,http) /var/cache/php-xcache
+
+%files web
+%defattr(644,root,root,755)
 %dir %attr(750,root,http) %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
 %{_appdir}
-%dir %attr(775,root,http) /var/cache/php-xcache
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -113,7 +131,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.18  2008/01/30 20:44:49  dzeus
+Revision 1.19  2008/11/13 17:58:23  glen
+- -web subpackage
+
+Revision 1.18  2008-01-30 20:44:49  dzeus
 - up to 1.2.2
 
 Revision 1.17  2007-09-20 13:34:09  dzeus
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-xcache.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list