%ifarch %{ix86}
-%define ver 4.0.9
+%define ver 5.0.7
%endif
%ifarch %{x8664}
-%define ver 4.0.9
+%define ver 5.0.7
%endif
%ifarch ppc
%define ver 3.1.33
%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: 8
+Release: 13
License: redistributable
Group: Libraries
-Source0: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
-# Source0-md5: fbf099576e0c2e869f24de5fdde2c6d7
-Source1: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
-# Source1-md5: 97c56bc8ff9fc3f9bba442c178b804d2
-Source2: http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2
+# www.ioncube.com/loaders.php
+Source0: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
+# Source0-md5: 6b0f6c0df77cbc766eeeaca6741164ae
+Source1: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
+# Source1-md5: a7379c88e56078ad43b897d572a68bcb
+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.2.0
+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)
%ifarch ppc
%setup -q -T -b 2 -n %{modname}
%endif
-%undos *.txt
mv ioncube_loader_lin_%{php_major_version}.%{php_minor_version}%{?zend_zts}.so %{modname}.so
ver=$(strings %{modname}.so | grep -F %{version})
%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