SPECS: php-eaccelerator.spec - sync from php4-eaccelerator, fill f...
glen
glen at pld-linux.org
Sun Sep 11 22:55:39 CEST 2005
Author: glen Date: Sun Sep 11 20:55:39 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- sync from php4-eaccelerator, fill files for -webinterface subpackage
---- Files affected:
SPECS:
php-eaccelerator.spec (1.16 -> 1.17)
---- Diffs:
================================================================
Index: SPECS/php-eaccelerator.spec
diff -u SPECS/php-eaccelerator.spec:1.16 SPECS/php-eaccelerator.spec:1.17
--- SPECS/php-eaccelerator.spec:1.16 Sun Sep 11 19:04:32 2005
+++ SPECS/php-eaccelerator.spec Sun Sep 11 22:55:34 2005
@@ -1,32 +1,29 @@
# $Revision$, $Date$
%define _name eaccelerator
%define _pkgname eaccelerator
-%define php_ver %(rpm -q --qf '%%{epoch}:%%{version}' php-devel)
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: eAccelerator module for PHP
Summary(pl): Moduł eAccelerator dla PHP
Name: php-%{_name}
Version: 0.9.3
-Release: 1
+Release: 1.5
Epoch: 0
License: GPL
Vendor: Turck Software
Group: Libraries
Source0: http://dl.sourceforge.net/eaccelerator/%{_pkgname}-%{version}.tar.gz
# Source0-md5: b17ddf953f18ee6df5c2c24ffccb37d9
-Source1: %{_name}.ini
+Source1: %{_name}.ini
URL: http://eaccelerator.net/
-BuildRequires: libtool
BuildRequires: php-devel >= 3:5.0.0
-Requires: php = %{php_ver}
+%requires_eq_to php php-devel
Requires: php-zlib
-Requires(post,preun): php-common >= 3:5.0.0
+Requires: %{_sysconfdir}/conf.d
Conflicts: php-mmcache
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
eAccelerator is a further development from mmcache PHP Accelerator &
Encoder. It increases performance of PHP scripts by caching them in
@@ -39,7 +36,6 @@
postaci skompilowanej, dzięki czemu narzut potrzebny na kompilację
jest prawie całkowicie wyeliminowany.
-
%package webinterface
Summary: WEB interface for PHP Accelerator
Summary(pl): Interfejs WEB dla PHP Accelerator
@@ -75,37 +71,46 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT/etc/php/conf.d
+install -d $RPM_BUILD_ROOT{%{extensionsdir},%{_bindir},%{_sysconfdir}/conf.d,/var/cache/%{_name}}
install ./modules/eaccelerator.so $RPM_BUILD_ROOT%{extensionsdir}
install ./encoder.php $RPM_BUILD_ROOT%{_bindir}
+install ./eaccelerator_password.php $RPM_BUILD_ROOT%{_bindir}
+install ./eaccelerator.php $RPM_BUILD_ROOT%{_bindir}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/php/conf.d/%{_name}.ini
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_name}.ini
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install eaccelerator %{_sysconfdir}/php.ini
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+ [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+ [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+fi
%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove eaccelerator %{_sysconfdir}/php.ini
+if [ "$1" = 0 ]; then
+ # remove last pieces of cache
+ rm -f /var/cache/%{_name}/*
fi
%files
%defattr(644,root,root,755)
%doc README
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_name}.ini
%attr(755,root,root) %{extensionsdir}/eaccelerator.so
%attr(755,root,root) %{_bindir}/encoder.php
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/php/conf.d/eaccelerator.ini
+%attr(770,root,http) /var/cache/%{_name}
%files webinterface
%defattr(644,root,root,755)
-# FIXME: czy tak rzeczywiście powinno/może być??
-%doc eaccelerator{,_password}.php
+%attr(755,root,root) %{_bindir}/eaccelerator.php
+%attr(755,root,root) %{_bindir}/eaccelerator_password.php
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -113,6 +118,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.17 2005/09/11 20:55:34 glen
+- sync from php4-eaccelerator, fill files for -webinterface subpackage
+
Revision 1.16 2005/09/11 17:04:32 hunter
- eaccelerator.php in webinterface package
- configfile
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-eaccelerator.spec?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list