Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.13
:
extensions
>
php7-ioncube
> php7-ioncube.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php7-ioncube.spec of Package php7-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: php7-ioncube Version: %{ion_version} Release: 20161007.<CI_CNT>.<B_CNT> License: PHP Group: Productivity/Networking/Web/Servers BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php7-devel Requires: php7 = %{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}/php7/extensions %__install -m 0755 ioncube_loader_lin_%{ion_version}.so %{buildroot}%{_libdir}/php7/extensions/ %__install -m 0755 ioncube_loader_lin_%{ion_version}_ts.so %{buildroot}%{_libdir}/php7/extensions/ %{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d echo "; comment out next line to disable ioncube extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/01_ioncube.ini echo "zend_extension = %{_libdir}/php7/extensions/ioncube_loader_lin_%{ion_version}.so" >> %{buildroot}%{_sysconfdir}/php7/conf.d/01_ioncube.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php7/extensions/ioncube_loader_lin_%{ion_version}.so %{_libdir}/php7/extensions/ioncube_loader_lin_%{ion_version}_ts.so %config(noreplace) %{_sysconfdir}/php7/conf.d/01_ioncube.ini %changelog