Changes of Revision 2
[-] | Added | php5-mongodb.changes |
1
2 +------------------------------------------------------------------- 3 +Wed Oct 12 15:55:00 UTC 2016 - cs@linux-administrator.com 4 + 5 +- initial package 6 + 7 |
||
[+] | Deleted | php7-mongodb.changes ^ |
@@ -1,5 +0,0 @@ -------------------------------------------------------------------- -Wed Oct 12 15:55:00 UTC 2016 - cs@linux-administrator.com - -- initial package - | ||
[-] | Added | php5-mongodb.spec ^ |
81 1
2 +# norootforbuild 3 +%define pkg_name mongodb 4 +%define src_version 1.2.0alpha3 5 +%define pkg_version 1.2.0 6 +%define php_version %(php-config --version 2>/dev/null) 7 +# 8 +Name: php5-mongodb 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 17 +BuildRequires: gcc 18 +BuildRequires: gcc-c++ 19 +BuildRequires: cyrus-sasl-devel 20 +BuildRequires: openssl-devel 21 +BuildRequires: pkg-config 22 +Requires: php5 = %{php_version} 23 +# 24 +URL: http://pecl.php.net/ 25 +Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{src_version}.tgz 26 +Summary: MongoDB extension 27 + 28 +%description 29 +The purpose of this driver is to provide exceptionally thin glue between MongoDB 30 +and PHP, implementing only fundemental and performance-critical components 31 +necessary to build a fully-functional MongoDB driver. 32 + 33 +Authors: 34 +--------- 35 + 36 + Derick Rethans 37 + Jeremy Mikola 38 + Hannes Magnusson 39 + 40 +%debug_package 41 + 42 +%prep 43 +%setup -n %{pkg_name}-%{src_version} 44 + 45 +%{__mkdir} %{name} 46 + 47 +%build 48 +/usr/bin/phpize 49 + 50 +CFLAGS="%{optflags} -fno-strict-aliasing" 51 +CXXFLAGS="%{optflags} -fno-strict-aliasing" 52 +%if 0%{?suse_version} > 1000 53 +CFLAGS="$CFLAGS -fstack-protector" 54 +CXXFLAGS="$CXXFLAGS -fstack-protector" 55 +%endif 56 + 57 +#export CFLAGS 58 +#export CXXFLAGS 59 +#export LDFLAGS="-L%{_libdir}" 60 + 61 +./configure --enable-mongodb || cat config.log 62 + 63 +%{__make} %{?jobs:-j%jobs} 64 + 65 +%install 66 +%makeinstall INSTALL_ROOT=%{buildroot} 67 +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d 68 +echo "; comment out next line to disable mongodb extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/mongodb.ini 69 +echo "extension = mongodb.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/mongodb.ini 70 + 71 + 72 +%clean 73 +%{__rm} -rf %{buildroot} 74 + 75 +%files 76 +%defattr(-,root,root,-) 77 +%{_libdir}/php5/extensions/mongodb.so 78 +%config(noreplace) %{_sysconfdir}/php5/conf.d/mongodb.ini 79 + 80 +%changelog 81 |
||
[+] | Deleted | php7-mongodb.spec ^ |
@@ -1,79 +0,0 @@ -# norootforbuild -%define pkg_name mongodb -%define src_version 1.2.0alpha3 -%define pkg_version 1.2.0 -%define php_version %(php-config --version 2>/dev/null) -# -Name: php7-mongodb -Version: %{pkg_version} -Release: 0 -# -License: PHP -Group: Productivity/Networking/Web/Servers -# -BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build -BuildRequires: php7-devel -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: cyrus-sasl-devel -BuildRequires: openssl-devel -BuildRequires: pkg-config -Requires: php7 = %{php_version} -# -URL: http://pecl.php.net/ -Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{src_version}.tgz -Summary: MongoDB extension - -%description -The purpose of this driver is to provide exceptionally thin glue between MongoDB -and PHP, implementing only fundemental and performance-critical components -necessary to build a fully-functional MongoDB driver. - -Authors: ---------- - - Derick Rethans - Jeremy Mikola - Hannes Magnusson - -%debug_package - -%prep -%setup -n %{pkg_name}-%{src_version} - -%{__mkdir} %{name} - -%build -/usr/bin/phpize - -CFLAGS="%{optflags} -fno-strict-aliasing" -CXXFLAGS="%{optflags} -fno-strict-aliasing" -%if 0%{?suse_version} > 1000 -CFLAGS="$CFLAGS -fstack-protector" -CXXFLAGS="$CXXFLAGS -fstack-protector" -%endif - -#export CFLAGS -#export CXXFLAGS -#export LDFLAGS="-L%{_libdir}" - -./configure --enable-mongodb || cat config.log - -%{__make} %{?jobs:-j%jobs} - -%install -%makeinstall INSTALL_ROOT=%{buildroot} -%{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d -echo "; comment out next line to disable mongodb extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/mongodb.ini -echo "extension = mongodb.so" >> %{buildroot}%{_sysconfdir}/php7/conf.d/mongodb.ini - - -%clean -%{__rm} -rf %{buildroot} - -%files -%defattr(-,root,root,-) -%{_libdir}/php7/extensions/mongodb.so -%config(noreplace) %{_sysconfdir}/php7/conf.d/mongodb.ini - -%changelog |