SPECS: php-xcache.spec (NEW) - new

glen glen at pld-linux.org
Tue Jun 13 15:32:35 CEST 2006


Author: glen                         Date: Tue Jun 13 13:32:35 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   php-xcache.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php-xcache.spec
diff -u /dev/null SPECS/php-xcache.spec:1.1
--- /dev/null	Tue Jun 13 15:32:35 2006
+++ SPECS/php-xcache.spec	Tue Jun 13 15:32:24 2006
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+%define		_modname	xcache
+%define		_sysconfdir	/etc/php
+%define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
+Summary:	%{_modname} - PHP opcode cacher
+Name:		php-%{_modname}
+Version:	1.0
+Release:	0.1
+License:	BSD
+Group:		Development/Languages/PHP
+URL:		http://trac.lighttpd.net/xcache/
+Source0:	http://210.51.190.228/pub/XCache/Releases/xcache-%{version}.tar.gz
+# Source0-md5:	a4e2ff36f16b096f24d3edd9b6ab411b
+BuildRequires:	gawk
+BuildRequires:	php-devel >= 3:5.0
+BuildRequires:	rpmbuild(macros) >= 1.254
+%{?requires_php_extension}
+Requires:	%{_sysconfdir}/conf.d
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+XCache is a fast, stable PHP opcode cacher that has been tested and is now
+running on production servers under high load.
+
+%prep
+%setup -q -n xcache
+
+%build
+phpize
+%configure
+%{__make}
+%{__sed} -i -e '
+	s,zend_extension =.*,zend_extension = %{extensiondir}/xcache.so,
+	s,zend_extension_ts = .*,zend_extension_ts = %{extensiondir}/xcache.so,
+' xcache.ini
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
+
+%{__make} install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install xcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+[ ! -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
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README THANKS
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+
+%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.1  2006/06/13 13:32:24  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list