]> git.pld-linux.org Git - packages/ZendGuardLoader.git/blobdiff - ZendGuardLoader.spec
- 3.2.2 - Zend Optimizer 3 with full support for PHP 5.2
[packages/ZendGuardLoader.git] / ZendGuardLoader.spec
index 5623eca2c26880c0e205566927a44a2261707c32..fb6d0ed7e5ec8a4b9391b4bcd243fcbcf47c3e1e 100644 (file)
@@ -7,21 +7,17 @@
 Summary:       Zend Optimizer - PHP code optimizer
 Summary(pl):   Zend Optimizer - optymalizator kodu PHP
 Name:          ZendOptimizer
-Version:       2.5.10a
-Release:       0.30
+Version:       3.2.2
+Release:       1
 License:       Zend License, distributable only if unmodified and for free (see LICENSE)
 Group:         Libraries
-Source0:       http://downloads.zend.com/optimizer/2.5.10/%{name}-%{version}-linux-glibc21-i386.tar.gz
-# Source0-md5: 3064cb6d33f0d4800cf84b8a5521cd48
-Source1:       http://downloads.zend.com/optimizer/2.5.10/%{name}-%{version}-linux-glibc23-x86_64.tar.gz
-# Source1-md5: 6d7e50b1875fb77eff7d0cc6ff45db32
-URL:           http://www.zend.com/zend/optimizer.php
-BuildRequires: rpmbuild(macros) >= 1.213
+Source0:       http://downloads.zend.com/optimizer/3.2.2/%{name}-%{version}-linux-glibc21-i386.tar.gz
+# Source0-md5: 05bf2c306a8e16c1430d691f83f1054a
+Source1:       http://downloads.zend.com/optimizer/3.2.2/%{name}-%{version}-linux-glibc23-x86_64.tar.gz
+# Source1-md5: 0e3a0901f6e9ef2a549100db2531c7fa
+URL:           http://www.zend.com/products/zend_optimizer
+BuildRequires: rpmbuild(macros) >= 1.344
 BuildRequires: tar >= 1:1.15.1
-# circular dependency, so ones upgraded are forced to choose php and
-# ones that want to install specific for specific version need not to
-# install ZendOptimizer separately
-Requires:      %{name}(php) = %{version}-%{release}
 Requires(triggerpostun):       sed >= 4.0
 ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,25 +29,31 @@ Zend Optimizer - PHP code optimizer.
 Zend Optimizer - optymalizator kodu PHP.
 
 %package -n php4-%{name}
-Summary:       Zend Optimizer for PHP 4.x.
+Summary:       Zend Optimizer for PHP 4.x
+Summary(pl):   Zend Optimizer dla PHP 4.x
 Group:         Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      php4-common >= 3:4.0.6
-Provides:      %{name}(php) = %{version}-%{release}
+Requires:      php4-common >= 3:4.4.0-3
 
 %description -n php4-%{name}
 Zend Optimizer for PHP 4.x.
 
+%description -n php4-%{name} -l pl
+Zend Optimizer dla PHP 4.x.
+
 %package -n php-%{name}
-Summary:       Zend Optimizer for PHP 5.x.
+Summary:       Zend Optimizer for PHP 5.x
+Summary(pl):   Zend Optimizer dla PHP 5.x
 Group:         Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      php-common >= 4:5.0.0
-Provides:      %{name}(php) = %{version}-%{release}
+Requires:      php-common >= 4:5.0.4
 
 %description -n php-%{name}
 Zend Optimizer for PHP 5.x.
 
+%description -n php-%{name} -l pl
+Zend Optimizer dla PHP 5.x.
+
 %prep
 %setup -q -c
 
@@ -111,8 +113,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %preun -n php4-%{name}
 if [ "$1" = "0" ]; then
-       [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+       %php4_webserver_restart
 fi
 
 %post -n php4-%{name}
@@ -121,14 +122,11 @@ fi
 if [ ! -L %{_libdir}/Zend/etc ]; then
        ln -snf /etc/php4 %{_libdir}/Zend/etc
 fi
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
-
+%php4_webserver_restart
 
 %preun -n php-%{name}
 if [ "$1" = "0" ]; then
-       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+       %php_webserver_restart
 fi
 
 %post -n php-%{name}
@@ -137,8 +135,7 @@ fi
 if [ ! -L %{_libdir}/Zend/etc ]; then
        ln -snf /etc/php %{_libdir}/Zend/etc
 fi
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%php_webserver_restart
 
 %post
 if [ "$1" = 1 ]; then
This page took 0.066718 seconds and 4 git commands to generate.