Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-ioncube
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Changed
php5-ioncube.spec
@@ -1,16 +1,17 @@ # norootforbuild %define pkg_name ioncube_loaders_lin -%define php_version %(php-config --version | awk -F. '{print $1"."$2 }' 2>/dev/null || echo PHPCONFIG_NOT_FOUND) +%define ion_version %(php-config --version | awk -F. '{print $1"."$2 }' 2>/dev/null || echo PHPCONFIG_NOT_FOUND) +%define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) # BuildPreReq: /usr/bin/awk Name: php5-ioncube -Version: %{php_version} +Version: %{ion_version} Release: 1 License: PHP Group: Productivity/Networking/Web/Servers BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php5-devel -Requires: php5 +Requires: php5 = %{php_version} URL: http://www.ioncube.com/loaders.php %ifarch x86_64 Source: %{pkg_name}_x86-64.tar.bz2 @@ -28,11 +29,11 @@ %install %{__mkdir} -p %{buildroot}%{_libdir}/php5/extensions -%__install -m 0755 ioncube_loader_lin_%{php_version}.so %{buildroot}%{_libdir}/php5/extensions/ -%__install -m 0755 ioncube_loader_lin_%{php_version}_ts.so %{buildroot}%{_libdir}/php5/extensions/ +%__install -m 0755 ioncube_loader_lin_%{ion_version}.so %{buildroot}%{_libdir}/php5/extensions/ +%__install -m 0755 ioncube_loader_lin_%{ion_version}_ts.so %{buildroot}%{_libdir}/php5/extensions/ %{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d echo "; comment out next line to disable ioncube extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/ioncube.ini -echo "zend_extension = ioncube_loader_lin_%{php_version}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/ioncube.ini +echo "zend_extension = ioncube_loader_lin_%{ion_version}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/ioncube.ini %clean @@ -40,8 +41,8 @@ %files %defattr(-,root,root,-) -%{_libdir}/php5/extensions/ioncube_loader_lin_%{php_version}.so -%{_libdir}/php5/extensions/ioncube_loader_lin_%{php_version}_ts.so +%{_libdir}/php5/extensions/ioncube_loader_lin_%{ion_version}.so +%{_libdir}/php5/extensions/ioncube_loader_lin_%{ion_version}_ts.so %config(noreplace) %{_sysconfdir}/php5/conf.d/ioncube.ini