X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=php-ioncube.spec;h=4b542e53d07aeb67d818bbb5aa451933dd303ba2;hb=30738460ff763e8b7d59f4a7ed69eb8d961a3750;hp=e3ceb446144ad0648c45187a6a38b0ed3e57c34c;hpb=f349401598724b8ed6339c5b38e7339e9fb4f2b7;p=packages%2Fphp-ioncube.git diff --git a/php-ioncube.spec b/php-ioncube.spec index e3ceb44..4b542e5 100644 --- a/php-ioncube.spec +++ b/php-ioncube.spec @@ -1,34 +1,24 @@ -%ifarch %{ix86} -%define ver 4.0.9 -%endif -%ifarch %{x8664} -%define ver 4.0.9 -%endif -%ifarch ppc -%define ver 3.1.33 -%endif +%define php_name php%{?php_suffix} %define modname ioncube Summary: ionCube loader module for PHP Summary(pl.UTF-8): Moduł wczytujący ionCube dla PHP -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: 7 +Name: %{php_name}-%{modname} +Version: 10.4.5 +Release: 1 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 -# Source2-md5: c9f44f2245e41cba0617c452488c3dc4 +# www.ioncube.com/loaders.php +Source0: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz +# Source0-md5: 237e78bc86ef5604b18fa31116c6f3c2 +Source1: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz +# Source1-md5: 5105b0d6788b4f874bf07d9c0aa9e515 URL: http://www.ioncube.com/ -BuildRequires: php-devel >= 4:5.2.0 +BuildRequires: %{php_name}-devel >= 4:5.2.0 BuildRequires: rpmbuild(macros) >= 1.579 BuildRequires: sed >= 4.0 %{?requires_php_extension} -ExclusiveArch: %{ix86} %{x8664} ppc +Provides: php(%{modname}) = %{version} +ExclusiveArch: %{ix86} %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -44,13 +34,10 @@ Moduł wczytujący ionCube dla PHP. %ifarch %{x8664} %setup -q -T -b 1 -n %{modname} %endif -%ifarch ppc -%setup -q -T -b 2 -n %{modname} -%endif -%undos *.txt +%build mv ioncube_loader_lin_%{php_major_version}.%{php_minor_version}%{?zend_zts}.so %{modname}.so -ver=$(strings %{modname}.so | grep -F %{version}) +ver=$(strings %{modname}.so | grep -F %{version} | grep "^%{version}" | sed -e s'# .*##g') if [ "$ver" != "%{version}" ]; then exit 1 fi @@ -82,6 +69,6 @@ fi %files %defattr(644,root,root,755) -%doc *.txt *.php +%doc LICENSE.txt README.txt USER-GUIDE.txt %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini %attr(755,root,root) %{php_extensiondir}/ioncube.so