Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
:
5.3.29
:
extensions
>
php-pecl-APCu
> php-pecl-APCu.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-pecl-APCu.spec of Package php-pecl-APCu
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}} %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) %define pecl_name apcu Summary: APCu - APC User Cache Name: php-pecl-APCu Version: 4.0.10 Release: 1%{?dist} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel >= 4.3.11, php-pear, zlib-devel Requires(post): %{__pecl} Requires(postun): %{__pecl} Provides: php-pecl(%{pecl_name}) = %{version}-%{release} %if %{defined php_zend_api} Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} %else Requires: php-api = %{php_apiver} %endif %description APC User Caching %prep %setup -c -q %build cd %{pecl_name}-%{version} phpize %configure %{__make} %{?_smp_mflags} %install cd %{pecl_name}-%{version} %{__rm} -rf %{buildroot} %{__make} install INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d %{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{pecl_name}.ini << 'EOF' ; Enable %{pecl_name} extension module extension=%{pecl_name}.so EOF # Install XML package description # use 'name' rather than 'pecl_name' to avoid conflict with pear extensions %{__mkdir_p} %{buildroot}%{pecl_xmldir} %{__install} -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %clean %{__rm} -rf %{buildroot} %if 0%{?pecl_install:1} %post %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : %endif %if 0%{?pecl_uninstall:1} %postun if [ $1 -eq 0 ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi %endif %files %defattr(-, root, root, -) %doc %{pecl_name}-%{version}/NOTICE %{pecl_name}-%{version}/TECHNOTES.txt %{pecl_name}-%{version}/README.md %config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so %{pecl_xmldir}/%{name}.xml %dir %{_includedir}/php %dir %{_includedir}/php/ext %dir %{_includedir}/php/ext/apcu %{_includedir}/php/ext/apcu/apc.h %{_includedir}/php/ext/apcu/apc_api.h %{_includedir}/php/ext/apcu/apc_bin_api.h %{_includedir}/php/ext/apcu/apc_cache_api.h %{_includedir}/php/ext/apcu/apc_lock_api.h %{_includedir}/php/ext/apcu/apc_pool_api.h %{_includedir}/php/ext/apcu/apc_serializer.h %{_includedir}/php/ext/apcu/apc_sma_api.h %changelog