Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
5.6.18
:
extensions
>
php5-ioncube
> php5-ioncube.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-ioncube.spec of Package php5-ioncube
# norootforbuild %define pkg_name ioncube_loaders_lin %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) # BuildRequires: awk Name: php5-ioncube Version: %{ion_version} Release: 20161007.<CI_CNT>.<B_CNT> License: PHP Group: Productivity/Networking/Web/Servers BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php5-devel Requires: php5 = %{php_version} URL: http://www.ioncube.com/loaders.php %ifarch x86_64 Source: %{pkg_name}_x86-64.tar.bz2 %else Source: %{pkg_name}_x86.tar.bz2 %endif Summary: PHP ionCube loader %description Loader for ionCube encoded files %prep %setup -q -n ioncube %build %install %{__mkdir} -p %{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 = %{_libdir}/php5/extensions/ioncube_loader_lin_%{ion_version}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/ioncube.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_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 %changelog