Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
php5-extensions
>
php5-xcache
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
php5-xcache.spec
@@ -1,164 +1,91 @@ -# norootforbuild -%define pkg_name xcache -%define php_version %(php-config --version 2>/dev/null) -# -Name: php5-xcache -Version: 3.2.0 -Release: 1 -License: BSD -Group: Productivity/Networking/Web/Servers -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: php5-devel >= 5.1 indent -Requires: php5 = %{php_version} -Provides: php5_code_cache -Conflicts: php5-APC php5-eaccelerator -%if 0%{?suse_version} > 1000 -Enhances: php5 -%endif -# -URL: http://xcache.lighttpd.net/ -Source: http://xcache.lighttpd.net/pub/Releases/%{version}/%{pkg_name}-%{version}.tar.bz2 -Patch0: xcache-broken-%{version}.ini.patch -# -Summary: A fast, stable php opcode cacher +%define default_extdir %{_libdir}/php/modules +%define module_version 1.2.2 -%description -XCache is a fast, stable php opcode cacher that has been tested and now running -on production server under high load. It support and is tested on all lastest -php cvs branches, such as PHP_4_3 PHP_4_4 PHP_5_1 PHP_5_2 PHP_5_3 PHP_5_4 HEAD(6.x) +%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{default_extdir}) +%{!?php_version:%define php_version %(php-config --version 2>/dev/null || echo %{default_version})} +# This is the apache userid, only used for sysvipc semaphores which is the +# default on ppc since spinlock is not detected +%define userid 48 + +Summary: PHP accelerator, optimizer, encoder and dynamic content cacher +Name: php-xcache +Version: %{php_version}_%{module_version} +Release: 1 +License: GPL +Group: Development/Languages +URL: http://xcache.lighttpd.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: php = %{php_version} +Provides: php-zend_extension +BuildRequires: php, php-devel, sed +# Required by phpize +BuildRequires: autoconf, automake, libtool -Authors: ---------- - moo <phpxcache@gmail.com> +Source0: xcache-%{module_version}.tar.bz2 +Source1: xcache.ini -%prep -%setup -q -n %{pkg_name}-%{version} -%patch0 +%description +XCache is a fast, stable PHP opcode cacher that has been tested and is now +running on production servers under high load. It is tested (on linux) and +supported on all of the latest PHP cvs branches such as PHP_4_3 PHP_4_4 +PHP_5_1 PHP_5_2 HEAD(6.x). ThreadSafe/Windows is also supported. -%{__mkdir} %{name} +%prep +%setup -n xcache-%{module_version} %build -/usr/bin/phpize +phpize +%configure --enable-xcache -CFLAGS="%{optflags} -fno-strict-aliasing" -%if 0%{?suse_version} > 1000 -CFLAGS="$CFLAGS -fstack-protector" -%endif - -export CFLAGS - -./configure \ - --enable-xcache \ - --enable-xcache-coverager -%{__make} %{?jobs:-j%jobs} +%{__make} %{?_smp_mflags} %install -%__make install INSTALL_ROOT=%{buildroot} -%{__install} -D -m 0644 xcache.ini %{buildroot}%{_sysconfdir}/php5/conf.d/xcache.ini -%{__install} -Dd -m 0755 %{buildroot}%{_datadir}/php5/xcache/ -touch htdocs/{,coverager}/config.php -%{__cp} -rv htdocs/* %{buildroot}%{_datadir}/php5/xcache/ +%{__rm} -rf %{buildroot} +%{__make} install INSTALL_ROOT=%{buildroot} + +# The cache directory where pre-compiled files will reside +%{__mkdir_p} %{buildroot}%{_var}/cache/php-xcache +%{__mkdir_p} %{buildroot}%{_var}/www/html/xcache/ + +# Drop in the bit of configuration +%{__install} -D -m 0644 $RPM_SOURCE_DIR/xcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini +sed -i -e 's|/REPLACEME|%{php_extdir}|g' $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini +%{__install} -D -m 0644 admin/* $RPM_BUILD_ROOT%{_var}/www/html/xcache/ + %clean %{__rm} -rf %{buildroot} + %files -%defattr(644,root,root,755) -%{_libdir}/php5/extensions/xcache.so -%config(noreplace) %{_sysconfdir}/php5/conf.d/xcache.ini -%dir %{_datadir}/php5/xcache/ -%dir %{_datadir}/php5/xcache/cacher -%dir %{_datadir}/php5/xcache/cacher/lang -%dir %{_datadir}/php5/xcache/cacher/sub -%dir %{_datadir}/php5/xcache/common -%dir %{_datadir}/php5/xcache/common/lang -%dir %{_datadir}/php5/xcache/coverager -%dir %{_datadir}/php5/xcache/coverager/lang -%dir %{_datadir}/php5/xcache/diagnosis -%dir %{_datadir}/php5/xcache/diagnosis/lang -%ghost %config(noreplace) %{_datadir}/php5/xcache/config.php -%ghost %config(noreplace) %{_datadir}/php5/xcache/coverager/config.php -%{_datadir}/php5/xcache/config.example.php -%{_datadir}/php5/xcache/diagnosis/lang/zh-tranditional.php -%{_datadir}/php5/xcache/diagnosis/lang/zh-traditional.po -%{_datadir}/php5/xcache/diagnosis/lang/zh-simplified.po -%{_datadir}/php5/xcache/diagnosis/lang/zh-traditional.php -%{_datadir}/php5/xcache/diagnosis/lang/zh-simplified.php -%{_datadir}/php5/xcache/diagnosis/lang/en.po -%{_datadir}/php5/xcache/diagnosis/lang/en.php -%{_datadir}/php5/xcache/diagnosis/diagnosis.css -%{_datadir}/php5/xcache/diagnosis/diagnosis.tpl.php -%{_datadir}/php5/xcache/diagnosis/index.php -%{_datadir}/php5/xcache/config.default.php -%{_datadir}/php5/xcache/cacher/edit.php -%{_datadir}/php5/xcache/cacher/lang/zh-traditional.po -%{_datadir}/php5/xcache/cacher/lang/zh-simplified.po -%{_datadir}/php5/xcache/cacher/lang/zh-traditional.php -%{_datadir}/php5/xcache/cacher/lang/zh-simplified.php -%{_datadir}/php5/xcache/cacher/lang/en.po -%{_datadir}/php5/xcache/cacher/lang/en.php -%{_datadir}/php5/xcache/cacher/common.php -%{_datadir}/php5/xcache/cacher/config.example.php -%{_datadir}/php5/xcache/cacher/config.default.php -%{_datadir}/php5/xcache/cacher/edit.tpl.php -%{_datadir}/php5/xcache/cacher/cacher.css -%{_datadir}/php5/xcache/cacher/summary.tpl.php -%{_datadir}/php5/xcache/common/tablesort.js -%{_datadir}/php5/xcache/cacher/index.php -%{_datadir}/php5/xcache/cacher/mkpassword.php -%{_datadir}/php5/xcache/cacher/sub/testcoredump.tpl.php -%{_datadir}/php5/xcache/cacher/sub/entrylist.tpl.php -%{_datadir}/php5/xcache/cacher/sub/summary.tpl.php -%{_datadir}/php5/xcache/cacher/sub/moduleinfo.tpl.php -%{_datadir}/php5/xcache/cacher/listentries.tpl.php -%{_datadir}/php5/xcache/common/common.css -%{_datadir}/php5/xcache/common/lang/zh-traditional.po -%{_datadir}/php5/xcache/common/lang/zh-simplified.po -%{_datadir}/php5/xcache/common/lang/zh-traditional.php -%{_datadir}/php5/xcache/common/lang/zh-simplified.php -%{_datadir}/php5/xcache/common/lang/en.po -%{_datadir}/php5/xcache/common/lang/en.php -%{_datadir}/php5/xcache/common/xcache.png -%{_datadir}/php5/xcache/common/common.php -%{_datadir}/php5/xcache/common/header.tpl.php -%{_datadir}/php5/xcache/common/footer.tpl.php -%{_datadir}/php5/xcache/index.php -%{_datadir}/php5/xcache/coverager/lang/zh-traditional.po -%{_datadir}/php5/xcache/coverager/lang/zh-simplified.po -%{_datadir}/php5/xcache/coverager/lang/zh-traditional.php -%{_datadir}/php5/xcache/coverager/lang/zh-simplified.php -%{_datadir}/php5/xcache/coverager/lang/en.po -%{_datadir}/php5/xcache/coverager/lang/en.php -%{_datadir}/php5/xcache/coverager/common.php -%{_datadir}/php5/xcache/coverager/config.example.php -%{_datadir}/php5/xcache/coverager/config.default.php -%{_datadir}/php5/xcache/coverager/index.php -%{_datadir}/php5/xcache/coverager/coverager.css -%{_datadir}/php5/xcache/coverager/coverager.tpl.php -%doc AUTHORS COPYING NEWS THANKS +%defattr(-, root, root, 0755) +%doc xcache.ini admin/ +%config(noreplace) %{_sysconfdir}/php.d/xcache.ini +#%config %{_sysconfdir}/php.d/xcache.ini +%{php_extdir}/xcache.so +%{_var}/www/html/xcache/* %changelog -* Mon Nov 29 2010 Carsten Schoene <cs@linux-administrator.com> - 1.3.1 -- update to release 1.3.1 +* Tue Apr 8 2008 Juergen Gotteswinter <jg@internetx.de> 1.2.2-1 +- Updated to 1.2.2 -* Sat Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 1.3.0