Changes of Revision 2
[-] | Added | php5-xcache.spec |
x 1
2 +# norootforbuild 3 +%define pkg_name xcache 4 +%define php_version %(php-config --version 2>/dev/null) 5 +# 6 +Name: php5-xcache 7 +Version: 1.2.2 8 +Release: 0 9 +License: BSD 10 +Group: Productivity/Networking/Web/Servers 11 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 12 +BuildRequires: php5-devel >= 5.1 indent 13 +Requires: php5 = %{php_version} 14 +Provides : php5_code_cache 15 +Conflicts : php5-APC php5-eaccelerator 16 +%if 0%{?suse_version} > 1000 17 +Enhances : php5 18 +%endif 19 +# 20 +URL: http://trac.lighttpd.net/xcache/ 21 +Source: http://210.51.190.228/pub/XCache/Releases/%{pkg_name}-%{version}.tar.bz2 22 +Patch0: xcache-broken.ini.patch 23 +# 24 +Summary: A fast, stable php opcode cacher 25 +%description 26 +XCache is a fast, stable php opcode cacher that has been tested and now running 27 +on production server under high load. It support and is tested on all lastest 28 +php cvs branches, such as PHP_4_3 PHP_4_4 PHP_5_1 PHP_5_2 HEAD(6.x) 29 + 30 + 31 +Authors: 32 +--------- 33 + moo <phpxcache@gmail.com> 34 + 35 +%prep 36 +%setup -q -n %{pkg_name}-%{version} 37 +%patch0 38 + 39 +%{__mkdir} %{name} 40 + 41 +%build 42 +/usr/bin/phpize 43 +pushd %{name} 44 + 45 +CFLAGS="%{optflags} -fno-strict-aliasing" 46 +%if 0%{?suse_version} > 1000 47 +CFLAGS="$CFLAGS -fstack-protector" 48 +%endif 49 + 50 +export CFLAGS 51 + 52 +../configure \ 53 + --enable-xcache \ 54 + --enable-xcache-coverager 55 +%{__make} %{?jobs:-j%jobs} 56 +popd 57 + 58 +%install 59 +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 60 +%{__install} -D -m 0644 xcache.ini %{buildroot}%{_sysconfdir}/php5/conf.d/xcache.ini 61 +%{__install} -Dd -m 0755 %{buildroot}%{_datadir}/php5/xcache/ 62 +touch {admin,coverager}/config.php 63 +%{__cp} -rv admin/ coverager/ %{buildroot}%{_datadir}/php5/xcache/ 64 + 65 +%clean 66 +%{__rm} -rf %{buildroot} 67 + 68 +%files 69 +%defattr(644,root,root,755) 70 +%{_libdir}/php5/extensions/xcache.so 71 +%config(noreplace) %{_sysconfdir}/php5/conf.d/xcache.ini 72 +%dir %{_datadir}/php5/xcache/ 73 +%dir %{_datadir}/php5/xcache/admin/ 74 +%ghost %config(noreplace) %{_datadir}/php5/xcache/admin/config.php 75 +%{_datadir}/php5/xcache/admin/config.php.example 76 +%{_datadir}/php5/xcache/admin/index.php 77 +%{_datadir}/php5/xcache/admin/help.php 78 +%{_datadir}/php5/xcache/admin/tablesort.js 79 +%{_datadir}/php5/xcache/admin/xcache.css 80 +%{_datadir}/php5/xcache/admin/xcache.php 81 +%{_datadir}/php5/xcache/admin/xcache.tpl.php 82 +%{_datadir}/php5/xcache/admin/common-en.lang.php 83 +%{_datadir}/php5/xcache/admin/common-zh-simplified-utf-8.lang.php 84 +%{_datadir}/php5/xcache/admin/common.php 85 +%{_datadir}/php5/xcache/admin/help-en.lang.php 86 +%{_datadir}/php5/xcache/admin/help-zh-simplified-utf-8.lang.php 87 +%{_datadir}/php5/xcache/admin/common-zh-traditional-utf-8.lang.php 88 +%{_datadir}/php5/xcache/admin/help-zh-traditional-utf-8.lang.php 89 +%{_datadir}/php5/xcache/admin/edit.php 90 +%{_datadir}/php5/xcache/admin/edit.tpl.php 91 +%{_datadir}/php5/xcache/admin/footer.tpl.php 92 +%{_datadir}/php5/xcache/admin/header.tpl.php 93 +%dir %{_datadir}/php5/xcache/coverager/ 94 +%ghost %config(noreplace) %{_datadir}/php5/xcache/coverager/config.php 95 +%{_datadir}/php5/xcache/coverager/config.php.example 96 +%{_datadir}/php5/xcache/coverager/coverager.css 97 +%{_datadir}/php5/xcache/coverager/coverager.php 98 +%{_datadir}/php5/xcache/coverager/coverager.tpl.php 99 +%{_datadir}/php5/xcache/coverager/index.php 100 +%{_datadir}/php5/xcache/coverager/common-en.lang.php 101 +%{_datadir}/php5/xcache/coverager/common-zh-simplified-utf-8.lang.php 102 +%{_datadir}/php5/xcache/coverager/common.php 103 +%{_datadir}/php5/xcache/coverager/common-zh-simplified-gb2312.lang.php 104 +%doc AUTHORS COPYING THANKS 105 + 106 +%changelog 107 +* Mon Dec 11 2006 - judas_iscariote@shorewall.net 108 +- Update to 1.2.0 final. 109 +* Wed Oct 11 2006 - soporte@onfocus.cl 110 +- Update package name to 1.2dev, currenly running OK in php 5.2 111 +* Mon Sep 18 2006 - soporte@onfocus.cl 112 +- update snapshot and add missing files 113 +* Thu Aug 08 2006 - soporte@onfocus.cl 114 +- License is BSD not GPL 115 +- update to current svn and include the revision name in the package name 116 +* Thu Jul 27 2006 - soporte@onfocus.cl 117 +- updated to current SVN to make it work under PHP 5.2 118 +* Thu Jul 11 2006 - soporte@onfocus.cl 119 +- Enable var_cache and safer read only protection 120 +* Sun Jul 2 2006 - soporte@onfocus.cl 121 +- xcache-broken-ini.patch updated again.. 122 +* Fri Jun 9 2006 - soporte@onfocus.cl 123 +- xcache-broken.ini.patch make things really work... 124 |