Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview
php-apc
php-apc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-apc.spec of Package php-apc
# # spec file for package php-APC # #SuSe specific Part %if %{?sles_version:1}0 %define php_exts_dir /usr/lib64/php5/extensions %define php_conf_dir /etc/php5/conf.d %define php_include_dir /usr/include/php5/ext/ %endif %if 0%{?suse_version} == 1315 Name: php5-APC #BuildRequires: unzip php5-devel pcre pcre-devel php5 BuildRequires: unzip php-devel-donotinstall pcre pcre-devel php5 autoconf Requires: unzip php5 Version: 3.1.15 Source: APC-3.1.15.tgz %define fix_directory 1 %endif #%if 0%{?sle_version} == 150000 && 0%{?is_backports} #Name: php7-APC #BuildRequires: unzip php7-devel pcre pcre-devel php7 #Requires: unzip php5 #Version: 3.1.15 #Source: APC-3.1.15.tgz #%endif %if 0%{?suse_version} == 1110 Name: php5-APC BuildRequires: php5 php5-devel pcre pcre-devel Requires: php5 Version: 3.1.15 Source: APC-3.1.15.tgz %endif %if 0%{?centos_version} == 700 Name: php-APC BuildRequires: php-devel>5.5.0, php>5.5.0, php-common>5.5.0, php-cli>5.5.0, pcre, pcre-devel Requires: php>5.5.0 Version: 3.1.15 Source: APC-3.1.15.tgz %define php_exts_dir /usr/lib64/php/modules %define php_conf_dir /etc/php.d/ %define php_include_dir /usr/include/php/ext/ %endif #%if 0%{?suse_version} != 1315 #Version: 3.1.13 #Source: APC-3.1.13.tgz #%endif #all Distros #Version: 3.1.13 Release: 0 License: PHP License Summary: Alternative PHP Cache Group: php/extensions/APC #Source: APC-3.1.13.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. %prep cd %{_builddir} tar -xf %{_sourcedir}/APC-%{version}.tgz %build cd %{_builddir}/APC-%{version}/ #%if 0%{?suse_version} != 1315 #patch < %{_sourcedir}/tracing_modified_functions_classes.patch.patch.txt #%endif phpize %configure make %{?_smp_mflags} %install cd %{_builddir}/APC-%{version} make install INSTALL_ROOT=%{buildroot} install -d %{buildroot}/%{php_conf_dir} #apc.ini is created during Build because %{php_exts_dir} can differ echo extension=%{php_exts_dir}/apc.so >%{buildroot}/%{php_conf_dir}/apc.ini %if %{?fix_directory:1}0 #The wrong directory is caused by the php-devel-donotinstall package. #There should be a better way to get a working phpize. install -d %{buildroot}/usr/lib64/php mkdir -p %{buildroot}/usr/lib64/php5/extensions mv %{buildroot}/usr/lib64/extensions/no-debug-non-zts-20121212/* %{buildroot}/%{php_exts_dir} %endif %post %postun %files %defattr(-,root,root) %if 0%{?suse_version} == 1110 %{php_exts_dir}/apc.so %{php_conf_dir}/apc.ini %dir %{php_include_dir}/apc %{php_include_dir}/apc/apc_serializer.h %else / %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor