diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-11-24 20:25:35 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-11-24 20:25:35 +0100 |
commit | a4397e00feb7638a20c741ec16456bbcead90f06 (patch) | |
tree | ca5b40596196e45135f0fc8b160215245d27184f /php-xcache-dev.spec | |
parent | a92cc1a7374dc2545362ed6f7419302d3a3677b1 (diff) |
php-xcache: switch to remi spec
Diffstat (limited to 'php-xcache-dev.spec')
-rw-r--r-- | php-xcache-dev.spec | 215 |
1 files changed, 0 insertions, 215 deletions
diff --git a/php-xcache-dev.spec b/php-xcache-dev.spec deleted file mode 100644 index 39e3282..0000000 --- a/php-xcache-dev.spec +++ /dev/null @@ -1,215 +0,0 @@ -%global ext_name xcache - -Summary: Fast, stable PHP opcode cacher -Name: php-xcache -Version: 3.0.0 -Release: 2%{?dist} -License: BSD -Group: Development/Languages -URL: http://xcache.lighttpd.net/ - -Source0: http://xcache.lighttpd.net/pub/Releases/%{version}/%{ext_name}-%{version}.tar.gz -Source1: xcache-httpd.conf - -# Relocation of configuration files to /etc/xcache -Patch0: xcache-config.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildRequires: php-devel - -Requires: php(zend-abi) = %{php_zend_api} -Requires: php(api) = %{php_core_api} - -# Only one opcode cache -Conflicts: php-pecl-apc -Conflicts: php-eaccelerator - -# Other third party repo stuff -Obsoletes: php53-xcache -Obsoletes: php53u-xcache -%if "%{php_version}" > "5.4" -Obsoletes: php54-xcache -%endif - -# Filter private shared object -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} - - -%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 release. -ThreadSafe is also perfectly supported. - -It overcomes a lot of problems that has been with other competing opcachers -such as being able to be used with new PHP versions. - - -%package -n xcache-admin -Summary: XCache Administration -Group: Development/Languages -Requires: mod_php, httpd -Requires: %{name} = %{version}-%{release} -%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 -BuildArch: noarch -%endif -Obsoletes: php-xcache-admin < 3.0.0 -Obsoletes: php-xcache-coverager < 3.0.0 -Obsoletes: xcache-coverager < 3.0.0 -Provides: xcache-coverager = %{version}-%{release} - -%description -n xcache-admin -This package provides the XCache Administration web application, -with Apache configuration, on http://localhost/xcache - -This requires to configure, in XCache configuration file (xcache.ini): -- xcache.admin.user -- xcache.admin.pass -- xcache.coveragedump_directory - - -%prep -%setup -q -c - -# rename source folder -mv %{ext_name}-%{version} nts - -cd nts -%patch0 -p1 - -# fix version -sed -e '/XCACHE_VERSION/s/-dev//' -i xcache.h - -# Sanity check, really often broken -extver=$(sed -n '/define XCACHE_VERSION/{s/.* "//;s/".*$//;p}' xcache.h) -if test "x${extver}" != "x%{version}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}. - exit 1 -fi -cd .. - -# duplicate for ZTS build -cp -pr nts zts - - -%build -# Without --enable-xcache-assembler, --enable-xcache-encoder, --enable-xcache-decoder -# This seems not yet implemented - -cd nts -%{_bindir}/phpize -%configure \ - --enable-xcache \ - --enable-xcache-constant \ - --enable-xcache-optimizer \ - --enable-xcache-coverager \ - --with-php-config=%{_bindir}/php-config -make %{?_smp_mflags} - -cd ../zts -%{_bindir}/zts-phpize -%configure \ - --enable-xcache \ - --enable-xcache-constant \ - --enable-xcache-optimizer \ - --enable-xcache-coverager \ - --with-php-config=%{_bindir}/zts-php-config -make %{?_smp_mflags} - - -%install -rm -rf %{buildroot} -# Install the NTS stuff -make -C nts install INSTALL_ROOT=%{buildroot} -install -D -m 644 nts/%{ext_name}.ini %{buildroot}%{_sysconfdir}/php.d/%{ext_name}.ini - -# Install the ZTS stuff -make -C zts install INSTALL_ROOT=%{buildroot} -install -D -m 644 zts/%{ext_name}.ini %{buildroot}%{php_ztsinidir}/%{ext_name}.ini - -# Install the admin stuff -install -d -m 755 %{buildroot}%{_datadir} -cp -pr nts/htdocs %{buildroot}%{_datadir}/xcache -install -d -m 755 %{buildroot}%{_sysconfdir}/xcache/cacher -install -d -m 755 %{buildroot}%{_sysconfdir}/xcache/coverager -mv %{buildroot}%{_datadir}/xcache/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache -mv %{buildroot}%{_datadir}/xcache/cacher/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache/cacher -mv %{buildroot}%{_datadir}/xcache/coverager/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache/coverager - -install -D -m 644 -p %{SOURCE1} \ - %{buildroot}%{_sysconfdir}/httpd/conf.d/xcache.conf - - -%check -cd nts - -# simple module load test -php --no-php-ini \ - --define extension_dir=%{buildroot}%{php_extdir}/\ - --define extension=%{ext_name}.so \ - --modules | grep XCache - -# upstream unit tests -TEST_PHP_EXECUTABLE=%{_bindir}/php \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -php run-tests.php -n -c xcache-test.ini tests - -cd ../zts -%{__ztsphp} --no-php-ini \ - --define extension_dir=%{buildroot}%{php_ztsextdir}/\ - --define extension=%{ext_name}.so \ - --modules | grep XCache - -TEST_PHP_EXECUTABLE=%{__ztsphp} \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__ztsphp} run-tests.php -n -c xcache-test.ini tests - - -%clean -rm -rf %{buildroot} - - -%files -%defattr(-,root,root,-) -%doc nts/{AUTHORS,ChangeLog,COPYING,README,THANKS} -%config(noreplace) %{_sysconfdir}/php.d/%{ext_name}.ini -%{php_extdir}/%{ext_name}.so -%config(noreplace) %{php_ztsinidir}/%{ext_name}.ini -%{php_ztsextdir}/%{ext_name}.so - -%files -n xcache-admin -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/httpd/conf.d/xcache.conf -%{_datadir}/xcache -# No real configuration files, only sample files -%{_sysconfdir}/xcache - - -%changelog -* Wed Oct 31 2012 Remi Collet <remi@fedoraproject.org> - 3.0.0-2 -- rebuild for remi repo - -* Wed Oct 31 2012 Remi Collet <remi@fedoraproject.org> - 3.0.0-1 -- new major version -- drop xcache-coverager subpackage -- xcache-admin now provides cacher, coverager and diagnosis -- run unit tests provided by upstream - -* Sat Oct 27 2012 Remi Collet <remi@fedoraproject.org> - 2.0.1-3 -- drop php prefix from sub packages -- fix License -- spec cleanups - -* Fri Sep 21 2012 Remi Collet <remi@fedoraproject.org> - 2.0.1-2 -- add admin and coverager sub-package - -* Sun Sep 9 2012 Remi Collet <remi@fedoraproject.org> - 2.0.1-1 -- initial package - |