Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview
php-mongo
php-mongo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-mongo.spec of Package php-mongo
# # spec file for package php-mongo # #SuSe specific Part %if %{?sles_version:1}0 %define php_exts_dir /usr/lib64/php5/extensions %define php_conf_dir /etc/php5/conf.d %endif %if 0%{?suse_version} >= 1315 Name: php5-mongo BuildRequires: unzip pwdutils aaa_base php5-devel glibc php5 Requires: glibc unzip %endif %if 0%{?suse_version} == 1110 Name: php5-mongo BuildRequires: php5-devel glibc Requires: php5 %endif %if %{?centos_version:1}0 %define prepare_scons 1 Name: php5-mongo BuildRequires: php php-common php-cli php-devel coreutils Requires: php %define php_exts_dir /usr/lib64/php/modules %define php_conf_dir /etc/php.d/ %endif #RedHat specific Part %if %{?rhel_version:1}0 Name: php-mongo BuildRequires: php php-common php-cli php-devel-donotinstall Requires: php %define php_exts_dir /usr/lib64/php/modules %define php_conf_dir /etc/php.d/ #redhat builds are moving the extension to a nonsens subdirectory called "no-debug-non-zts-20100525". %define fix_directory 1 %endif #all Distros Version: 1.5.7 Release: 0 License: Apache License Summary: API for php to communicate with mongo Url: http://docs.mongodb.org/ecosystem/drivers/php/ Group: php/extensions/mongo #Source: http://pecl.php.net/get/mongo Source: mongo-1.5.7.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description php5-mongo %prep cd %{_builddir} tar -xf %{_sourcedir}/mongo-%{version}.tgz %build cd %{_builddir}/mongo-%{version}/ phpize %configure make %{?_smp_mflags} %install cd %{_builddir}/mongo-%{version} make install INSTALL_ROOT=$RPM_BUILD_ROOT install -d %{buildroot}/%{php_conf_dir} #redis.ini is created during Build because %{php_exts_dir} can differ echo extension=%{php_exts_dir}/mongo.so >%{buildroot}/%{php_conf_dir}/mongo.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 mv %{buildroot}/usr/lib64/extensions/no-debug-non-zts-20100525 %{buildroot}/%{php_exts_dir} %endif %post %postun %files %defattr(-,root,root) %{php_exts_dir}/mongo.so %{php_conf_dir}/mongo.ini
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