summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Miƛkiewicz2010-10-25 06:33:02 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit86c04ca15443ad8a407e8a426190c204b600262f (patch)
tree15f23e933150ff9e575c814f37e26b415d08472a
parentb2926130770789f9a6f74539ef19ea61070a1bb8 (diff)
downloadphp-ioncube-86c04ca15443ad8a407e8a426190c204b600262f.zip
php-ioncube-86c04ca15443ad8a407e8a426190c204b600262f.tar.gz
- rel 6; make sure it uses correct zend_extension directive for php 5.2 and 5.3
Changed files: php-ioncube.spec -> 1.18
-rw-r--r--php-ioncube.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/php-ioncube.spec b/php-ioncube.spec
index 644c977..a2cfdb7 100644
--- a/php-ioncube.spec
+++ b/php-ioncube.spec
@@ -14,7 +14,7 @@ Name: php-%{modname}
Version: %{ver}
# Never decrease release in this package.
# As not all arch versions are identical, you could be making some arch package older.
-Release: 5
+Release: 6
License: redistributable
Group: Libraries
Source0: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
@@ -24,11 +24,10 @@ Source1: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-
Source2: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2
# Source2-md5: 592ecac4c53028ad22e8cfb0cc8edd36
URL: http://www.ioncube.com/
-BuildRequires: php-devel >= 4:5.3.0
+BuildRequires: php-devel >= 4:5.2.0
BuildRequires: rpmbuild(macros) >= 1.579
BuildRequires: sed >= 4.0
%{?requires_php_extension}
-Requires: php-common >= 4:5.3.0
ExclusiveArch: %{ix86} %{x8664} ppc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,7 +62,11 @@ install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
install -p %{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
; Enable %{modname} extension module
+%if %{php_major_version} == 5 && %{php_minor_version} < 3
zend_extension%{?zend_zts:_ts}=%{php_extensiondir}/%{modname}.so
+%else
+zend_extension=%{php_extensiondir}/%{modname}.so
+%endif
EOF
%clean