SPECS: php-xcache.spec - 1.2.0-release, but i fail to build it
glen
glen at pld-linux.org
Sat Feb 17 23:22:00 CET 2007
Author: glen Date: Sat Feb 17 22:22:00 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 1.2.0-release, but i fail to build it
---- Files affected:
SPECS:
php-xcache.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/php-xcache.spec
diff -u SPECS/php-xcache.spec:1.8 SPECS/php-xcache.spec:1.9
--- SPECS/php-xcache.spec:1.8 Tue Feb 13 09:06:40 2007
+++ SPECS/php-xcache.spec Sat Feb 17 23:21:55 2007
@@ -4,13 +4,13 @@
Summary(pl.UTF-8): %{_modname} - buforowanie opcodów PHP
Name: php-%{_modname}
Version: 1.2.0
-Release: 0.1
+Release: 0.2
License: BSD
Group: Development/Languages/PHP
-URL: http://trac.lighttpd.net/xcache/
-Source0: http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-%{version}-rc1.tar.bz2
-# Source0-md5: a518400a879d8904771867b9f50a650d
-BuildRequires: php-devel >= 3:5.0
+URL: http://xcache.lighttpd.net/
+Source0: http://210.51.190.228/pub/XCache/Releases/xcache-%{version}.tar.bz2
+# Source0-md5: ffeaa9547037e098d9b041eb9741b51e
+BuildRequires: php-devel >= 3:5.1
BuildRequires: rpmbuild(macros) >= 1.344
BuildRequires: sed >= 4.0
%{?requires_zend_extension}
@@ -27,16 +27,19 @@
%prep
%setup -q -n xcache
-
-%build
-phpize
-%configure
-%{__make}
%{__sed} -i -e '
s,zend_extension =.*,zend_extension = %{php_extensiondir}/xcache.so,
s,zend_extension_ts = .*,zend_extension_ts = %{php_extensiondir}/xcache.so,
' xcache.ini
+%build
+phpize
+%configure \
+ --enable-xcache \
+ --enable-xcache-optimizer \
+ --enable-xcache-coverager
+%{__make} -j1
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
@@ -44,7 +47,13 @@
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT
+# The cache directory where pre-compiled files will reside
+install -d $RPM_BUILD_ROOT/var/cache/php-xcache
+install -d $RPM_BUILD_ROOT%{_datadir}/xcache
+
+# Drop in the bit of configuration
install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
+install -D admin/* $RPM_BUILD_ROOT%{_datadir}/xcache
%clean
rm -rf $RPM_BUILD_ROOT
@@ -62,6 +71,8 @@
%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
+%{_datadir}/xcache
+%dir %attr(775,root,http) /var/cache/php-xcache
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -69,6 +80,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2007/02/17 22:21:55 glen
+- 1.2.0-release, but i fail to build it
+
Revision 1.8 2007/02/13 08:06:40 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-xcache.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list