X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=php-ioncube.spec;h=85ea5a3ad2905f541a2c0d06296e816abc4b1fcc;hb=1fdb71982f5c2f4787a62ac98a3e3f03e625a973;hp=41ead8e788e4d1d4ff691fe4e8755334a9e4bba4;hpb=e1ed3c35b8817c5e7d98dca76f3824c15912ca0d;p=packages%2Fphp-ioncube.git diff --git a/php-ioncube.spec b/php-ioncube.spec index 41ead8e..85ea5a3 100644 --- a/php-ioncube.spec +++ b/php-ioncube.spec @@ -1,8 +1,8 @@ %ifarch %{ix86} -%define ver 3.3.17 +%define ver 5.0.18 %endif %ifarch %{x8664} -%define ver 3.3.18 +%define ver 5.0.18 %endif %ifarch ppc %define ver 3.1.33 @@ -10,24 +10,26 @@ %define modname ioncube Summary: ionCube loader module for PHP Summary(pl.UTF-8): Moduł wczytujący ionCube dla PHP -Name: php-%{modname} +Name: php%{?php_suffix}-%{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: 2 +Release: 13 License: redistributable Group: Libraries -Source0: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2 -# Source0-md5: d2c0e85fe9ac94c5574e4c41b767c4f6 -Source1: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2 -# Source1-md5: db235ffc984b9a8cfea3e24822a42186 -Source2: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2 -# Source2-md5: 7c0c3e6f02dafa9bf09664b44e2f5340 +# www.ioncube.com/loaders.php +Source0: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2 +# Source0-md5: d6c19034730b5f4eb35b4f94e01cb93f +Source1: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2 +# Source1-md5: 20329d3b324039892215e84c2ea6b0bc +Source2: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2 +# Source2-md5: c9f44f2245e41cba0617c452488c3dc4 URL: http://www.ioncube.com/ -BuildRequires: php-devel >= 4:5.0.4 -BuildRequires: rpmbuild(macros) >= 1.566 +BuildRequires: php%{?php_suffix}-devel >= 4:5.2.0 +BuildRequires: rpmbuild(macros) >= 1.579 BuildRequires: sed >= 4.0 %{?requires_php_extension} +Provides: php(%{modname}) = %{version} ExclusiveArch: %{ix86} %{x8664} ppc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -47,9 +49,8 @@ Moduł wczytujący ionCube dla PHP. %ifarch ppc %setup -q -T -b 2 -n %{modname} %endif -%undos *.txt -mv ioncube_loader_lin_%{php_major_version}.%{php_minor_version}%{?zend_zts:_ts}.so %{modname}.so +mv ioncube_loader_lin_%{php_major_version}.%{php_minor_version}%{?zend_zts}.so %{modname}.so ver=$(strings %{modname}.so | grep -F %{version}) if [ "$ver" != "%{version}" ]; then exit 1 @@ -62,7 +63,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 -zend_extension%{?zend_zts:_ts}=%{php_extensiondir}/%{modname}.so +%if %{php_major_version} == 5 && %{php_minor_version} < 3 +zend_extension%{?zend_zts}=%{php_extensiondir}/%{modname}.so +%else +zend_extension=%{php_extensiondir}/%{modname}.so +%endif EOF %clean @@ -78,6 +83,5 @@ fi %files %defattr(644,root,root,755) -%doc *.txt *.php %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini %attr(755,root,root) %{php_extensiondir}/ioncube.so