]> git.pld-linux.org Git - packages/php-ioncube.git/blobdiff - php-ioncube.spec
- up to 4.4.4
[packages/php-ioncube.git] / php-ioncube.spec
index 41ead8e788e4d1d4ff691fe4e8755334a9e4bba4..42c4091b49909f76c7344c842dd875e7fae8d286 100644 (file)
@@ -1,8 +1,8 @@
 %ifarch %{ix86}
-%define                ver     3.3.17
+%define                ver     4.4.4
 %endif
 %ifarch %{x8664}
-%define                ver     3.3.18
+%define                ver     4.4.4
 %endif
 %ifarch ppc
 %define                ver     3.1.33
@@ -14,18 +14,18 @@ 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:       2
+Release:       12
 License:       redistributable
 Group:         Libraries
 Source0:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
-# Source0-md5: d2c0e85fe9ac94c5574e4c41b767c4f6
+# Source0-md5: 31c187240343ec1414bbf350f15d7a0d
 Source1:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
-# Source1-md5: db235ffc984b9a8cfea3e24822a42186
+# Source1-md5: 967c4dc22d2d7b577638a118764b6088
 Source2:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2
-# Source2-md5: 7c0c3e6f02dafa9bf09664b44e2f5340
+# Source2-md5: c9f44f2245e41cba0617c452488c3dc4
 URL:           http://www.ioncube.com/
-BuildRequires: php-devel >= 4:5.0.4
-BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: php-devel >= 4:5.2.0
+BuildRequires: rpmbuild(macros) >= 1.579
 BuildRequires: sed >= 4.0
 %{?requires_php_extension}
 ExclusiveArch: %{ix86} %{x8664} ppc
@@ -47,9 +47,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 +61,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 +81,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
This page took 0.190593 seconds and 4 git commands to generate.