X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=php-ioncube.spec;h=93b9fda1e3499246317f08fd8ffb6b9d05e8ea5d;hb=34fbc1a;hp=4a01743a7303ddc0f69786051a72ac50912e9e98;hpb=f69bcef46c1894fa61b7929b26b141430fae71da;p=packages%2Fphp-ioncube.git diff --git a/php-ioncube.spec b/php-ioncube.spec index 4a01743..93b9fda 100644 --- a/php-ioncube.spec +++ b/php-ioncube.spec @@ -1,35 +1,24 @@ -%ifarch %{ix86} -%define ver 4.6.1 -%endif -%ifarch %{x8664} -%define ver 4.6.1 -%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%{?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: 12 +Name: %{php_name}-%{modname} +Version: 6.1.0 +Release: 1 License: redistributable Group: Libraries # www.ioncube.com/loaders.php -Source0: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2 -# Source0-md5: 3e97ba2c5383a095562097ecff8b338b -Source1: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2 -# Source1-md5: d400e87e0d6efa20bb4c177e16630e34 -Source2: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2 -# Source2-md5: c9f44f2245e41cba0617c452488c3dc4 +Source0: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz +# Source0-md5: ab516ebc96a40ce45ea1ae1f49989fb6 +Source1: http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz +# Source1-md5: f173c4d285440a7dc5f3fb1b20cacefc URL: http://www.ioncube.com/ -BuildRequires: php%{?php_suffix}-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 @@ -45,12 +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 +%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