]> git.pld-linux.org Git - packages/php-xcache.git/blobdiff - php-xcache.spec
web is noarch package
[packages/php-xcache.git] / php-xcache.spec
index c3af29771bf5ff98a1dedb9979a4d0adc32c5c99..f8d8583473b73a3654a762d515fd4be900c9baa3 100644 (file)
@@ -1,24 +1,26 @@
 # TODO
 # - verify %lang codes
+%define                php_name        php%{?php_suffix}
 %define                modname xcache
 Summary:       %{modname} - PHP opcode cacher
 Summary(pl.UTF-8):     %{modname} - buforowanie opcodów PHP
-Name:          php-%{modname}
-Version:       3.0.0
-Release:       0.5
+Name:          %{php_name}-%{modname}
+Version:       3.0.1
+Release:       3
 License:       BSD
 Group:         Development/Languages/PHP
-URL:           http://xcache.lighttpd.net/
 Source0:       http://xcache.lighttpd.net/pub/Releases/%{version}/xcache-%{version}.tar.bz2
-# Source0-md5: 63be7c8b14ffc01babe5378111f13228
+# Source0-md5: 45086010bc4f82f506c08be1c556941b
 Source1:       %{modname}-apache.conf
 Source2:       %{modname}-lighttpd.conf
-Patch0:                ini.patch
-BuildRequires: php-devel >= 4:5.2.17-8
+Patch0:                config.patch
+URL:           http://xcache.lighttpd.net/
+BuildRequires: %{php_name}-devel >= 4:5.2.17-8
 BuildRequires: rpmbuild(macros) >= 1.344
 BuildRequires: sed >= 4.0
 %{?requires_zend_extension}
 Requires:      php(core) >= 5.0.4
+Requires(triggerpostun):       sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _webapps        /etc/webapps
@@ -39,7 +41,11 @@ Summary:     WEB interface for xCache
 Group:         Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      webapps
+Requires:      webserver(access)
 Requires:      webserver(php) >= 5.0
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description web
 Via this web interface script you can manage and view statistics of
@@ -113,6 +119,9 @@ if [ "$1" = 0 ]; then
        %php_webserver_restart
 fi
 
+%triggerpostun -- %{name} < 3.0.0-0.8
+%{__sed} -i -e 's,zend_extension,extension,' %{php_sysconfdir}/conf.d/%{modname}.ini
+
 %triggerin web -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
 
This page took 0.068009 seconds and 4 git commands to generate.