]> git.pld-linux.org Git - packages/php-ioncube.git/blobdiff - php-ioncube.spec
- up to 10.2.7
[packages/php-ioncube.git] / php-ioncube.spec
index a2cfdb7a5e0b596291e689fecb9da05a720efe19..1f16c120e2aa88608a68b583f0f4c4daec675a95 100644 (file)
@@ -1,34 +1,24 @@
-%ifarch %{ix86}
-%define                ver     4.0.0
-%endif
-%ifarch %{x8664}
-%define                ver     4.0.0
-%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:       6
+Name:          %{php_name}-%{modname}
+Version:       10.2.7
+Release:       1
 License:       redistributable
 Group:         Libraries
-Source0:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
-# Source0-md5: 163e947e9da863c1fdf12e0a15b3f20b
-Source1:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
-# Source1-md5: 8f628b49916ba47a5441eb797a883a56
-Source2:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2
-# Source2-md5: 592ecac4c53028ad22e8cfb0cc8edd36
+# www.ioncube.com/loaders.php
+Source0:       http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
+# Source0-md5: 78bd8a291e568ea5608be55f20165c4b
+Source1:       http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
+# Source1-md5: ffab7ca309a2a858af6c1c9b8ac35ec9
 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
@@ -63,7 +50,7 @@ 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
+zend_extension%{?zend_zts}=%{php_extensiondir}/%{modname}.so
 %else
 zend_extension=%{php_extensiondir}/%{modname}.so
 %endif
@@ -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
This page took 0.114116 seconds and 4 git commands to generate.