Summary: PHP Zend Guard Name: php-zend-guard-loader Version: 6.0.0 Release: 4 URL: http://www.zend.com/en/products/guard/downloads Packager: Scott R. Shinn Source0: ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz Source1: ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz License: Commercial Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-root Requires: php >= 5.4 Requires: php-devel >= 5.4 %description Zend Guard is the industry leading solution for PHP IP protection. Zend Guard provides independent software vendors and IT managers with the ability to safely distribute and manage the distribution of their PHP applications while protecting their source code. Zend Optimizer is a free application that runs the files encoded using Zend Guard and enhances the overall performance of your PHP applications. %prep %ifarch i386 i586 i686 %setup -T -b 0 -n ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386 %endif %ifarch x86_64 %setup -T -b 1 -n ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64/ %endif %build %install %{__rm} -rf %{buildroot} %{__mkdir_p} -m 755 %{buildroot}/etc/php.d/ %{__mkdir_p} -m 755 %{buildroot}/%{_libdir}/php/modules/ %{__install} -m 755 php-5.4.x/ZendGuardLoader.so %{buildroot}/%{_libdir}/php/modules/ZendGuardLoader.so %triggerin -- php ARCH=$(uname -m) if [ "$ARCH" == "x86_64" ]; then echo "zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so" > /etc/php.d/zendguard.ini else echo "zend_extension=/usr/lib/php/modules/ZendGuardLoader.so" > /etc/php.d/zendguard.ini fi %post # No, you don't really need an executable stack. if [ -x /usr/bin/execstack ]; then /usr/bin/execstack -c /usr/lib*/php/modules/ZendGuardLoader.so >/dev/null 2>&1 fi %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/php/modules/ZendGuardLoader.so %changelog * Fri Jun 14 2013 Support - 6.0.0-4 - Update to 6.0.0 for PHP 5.4 support * Tue Apr 26 2011 Support - 5.5.0-1 - Initial release