]> git.pld-linux.org Git - packages/php-ioncube.git/commitdiff
- rel 6; make sure it uses correct zend_extension directive for php 5.2 and 5.3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 25 Oct 2010 06:33:02 +0000 (06:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-ioncube.spec -> 1.18

php-ioncube.spec

index 644c9771851cb81d199659d62700c1d2cd11f611..a2cfdb7a5e0b596291e689fecb9da05a720efe19 100644 (file)
@@ -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
This page took 0.081019 seconds and 4 git commands to generate.