Changes of Revision 2
[-] | Added | php5-zendoptimizer.spec |
x 1
2 +# norootforbuild 3 +%define pkg_name ZendOptimizer 4 +%define pkg_version 3.3.3 5 +%define php_version %(php-config --version 2>/dev/null) 6 + 7 +# 8 +Name: php5-zendoptimizer 9 +Version: %{pkg_version} 10 +Release: 0 11 +# 12 +License: PHP 13 +Group: Productivity/Networking/Web/Servers 14 +# 15 +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 16 +BuildRequires: php5-devel gcc gcc-c++ 17 +Requires: php5 = %{php_version} 18 +# 19 +URL: http://www.zend.com/ 20 +%ifarch x86_64 21 +Source0: %{pkg_name}-%{version}-linux-glibc23-x86_64.tar.gz 22 +%else 23 +Source0: %{pkg_name}-%{version}-linux-glibc23-i386.tar.gz 24 +%endif 25 +Summary: This package contains the Zend Optimizer from Zend Technologies Ltd 26 + 27 +%description 28 +This package contains the Zend Optimizer from Zend Technologies Ltd. 29 + 30 +%prep 31 +%ifarch x86_64 32 +%setup -n %{pkg_name}-%{version}-linux-glibc23-x86_64 33 +%else 34 +%setup -n %{pkg_name}-%{version}-linux-glibc23-i386 35 +%endif 36 + 37 +%build 38 + 39 +%install 40 +%__install -D data/5_2_x_comp/%{pkg_name}.so %{buildroot}%{_libdir}/php5/extensions/%{pkg_name}.so 41 +%__install -D data/5_2_x_comp/TS/%{pkg_name}.so %{buildroot}%{_libdir}/php5/extensions/TS/%{pkg_name}.so 42 +%__install -D data/ZendExtensionManager.so %{buildroot}%{_libdir}/ZendExtensionManager.so 43 +%__install -D data/ZendExtensionManager_TS.so %{buildroot}%{_libdir}/ZendExtensionManager_TS.so 44 +%__install -D data/zendid %{buildroot}%{_bindir}/zendid 45 +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d 46 +echo "; comment out next line to disable %{pkg_name} extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/zendoptimizer.ini 47 +echo "; extension = %{pkg_name}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/zendoptimizer.ini 48 +echo "zend_extension = %{_libdir}/php5/extensions/%{pkg_name}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/zendoptimizer.ini 49 + 50 +%clean 51 +%{__rm} -rf %{buildroot} 52 + 53 +%files 54 +%defattr(-,root,root,-) 55 +%doc README-ZendOptimizer EULA-ZendOptimizer 56 +%doc data/doc/Zend_Optimizer_User_Guide.pdf 57 +%config(noreplace) %{_sysconfdir}/php5/conf.d/zendoptimizer.ini 58 +%defattr(0755,root,root) 59 +%{_bindir}/zendid 60 +%{_libdir}/php5/extensions/%{pkg_name}.so 61 +%{_libdir}/php5/extensions/TS/%{pkg_name}.so 62 +%{_libdir}/ZendExtensionManager.so 63 +%{_libdir}/ZendExtensionManager_TS.so 64 + 65 +%changelog 66 +* Sat Jan 31 2009 Carsten Schoene <cs@linux-administrator.com> 67 +- initial build version 3.3.3 68 |