%define _modname APC %define _status stable Summary: %{_modname} - Alternative PHP Cache Summary(pl): %{_modname} - alternatywne cache PHP Name: php4-pecl-%{_modname} Version: 3.0.4 Release: 1 License: PHP Group: Development/Languages/PHP Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz # Source0-md5: f78dc7d319a64914c50ee28bfd53a231 URL: http://pecl.php.net/package/APC/ BuildRequires: libtool BuildRequires: php4-devel >= 3:4.3.0 Requires: php4-common >= 3:4.3.0 Obsoletes: php-pear-%{_modname} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/php4 %define extensionsdir %{_libdir}/php4 %description APC is the Alternative PHP Cache. It was conceived of to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. In PECL status of this package is: %{_status}. %description -l pl APC to alternatywne cache PHP. W wyobrażeniach miało dostarczać wolnodostępny, otwarty i potężny szkielet do buforowania i optymalizowania kodu pośredniego PHP. To rozszerzenie ma w PECL status: %{_status}. %prep %setup -q -c %build cd %{_modname}-%{version} phpize %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{extensionsdir} install %{_modname}-%{version}/modules/apc.so $RPM_BUILD_ROOT%{extensionsdir}/%{_modname}.so %clean rm -rf $RPM_BUILD_ROOT %post %{_sbindir}/php4-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini %preun if [ "$1" = "0" ]; then %{_sbindir}/php4-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini fi %files %defattr(644,root,root,755) %doc %{_modname}-%{version}/{CHANGELOG,INSTALL,NOTICE} %attr(755,root,root) %{extensionsdir}/%{_modname}.so