Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL6
:
5.4.23
>
php5-ioncube-loader
> php5-ioncube-loader.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-ioncube-loader.spec of Package php5-ioncube-loader
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) %global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined") %global php_version %(php-config --version 2>/dev/null || echo 0) Summary: PHP ionCube Loader Name: php5-ioncube-loader Version: 5.0.11 Release: 1 URL: http://www.ioncube.com/loaders.php Source0: ioncube_loaders_lin_x86.tar.bz2 Source1: ioncube_loaders_lin_x86-64.tar.bz2 Source2: ion_loader.sh.in License: ionCube Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-root BuildRequires: php php-devel Provides: php-ioncube-loader = %{version}-%{release} Obsoletes: php-ioncube-loader %description This packages contain ionCube Loader for PHP %prep %setup -n ioncube %ifarch i386 i586 i686 tar -xvjf %{SOURCE0} %endif %ifarch x86_64 tar -xvjf %{SOURCE1} %endif %build cat %{S:2} | sed -e s@"%LIBDIR%"@"%{_libdir}"@ > ion_loader.sh %install %{__rm} -rf %{buildroot} %{__mkdir_p} -m 755 %{buildroot}%{_sbindir} %{__install} -m 755 ion_loader.sh %{buildroot}%{_sbindir}/ion_loader.sh %{__mkdir_p} -m 755 %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_4.3.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_4.4.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.0.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.1.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.2.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.3.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.4.so %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 ioncube/ioncube_loader_lin_5.5.so %{buildroot}/%{_libdir}/php/modules/ %post %{_sbindir}/ion_loader.sh install %postun if [ "0$1" -eq 0 -o "$1" = "remove" -o "$1" = "purge" ]; then php_d="/etc/php.d" rm -f $php_d/00-ioncube-loader* 2>/dev/null fi %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/php/modules/ %{_sbindir}/ion_loader.sh