From 86c04ca15443ad8a407e8a426190c204b600262f Mon Sep 17 00:00:00 2001 From: Arkadiusz Miƛkiewicz Date: Mon, 25 Oct 2010 06:33:02 +0000 Subject: - rel 6; make sure it uses correct zend_extension directive for php 5.2 and 5.3 Changed files: php-ioncube.spec -> 1.18 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 -- cgit v0.10.2