Changes of Revision 2
[+] | Deleted | php5-mysqlnd_qc.spec |
@@ -1,84 +0,0 @@ -# norootforbuild -%define pkg_name mysqlnd_qc -%define pkg_version 1.0.0 -%define php_version %(php-config --version 2>/dev/null) -# -Name: php5-mysqlnd_qc -Version: %{pkg_version} -Release: 0 -# -License: PHP -Group: Productivity/Networking/Web/Servers -# -BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build -BuildRequires: gcc gcc-c++ -BuildRequires: php5-devel >= 5.3.0 -BuildRequires: libmemcached-devel -#BuildRequires: mysql-devel -BuildRequires: sqlite-devel >= 3.0 -Requires: php5 = %{php_version} -# -URL: http://pecl.php.net/ -Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz -Summary: A query cache plugin for mysqlnd - -%description -The mysqlnd query result cache plugin is a mysqlnd plugin. It adds basic client side -result set caching to all PHP MySQL extensions (ext/mysql, ext/mysqli, PDO_MySQL), -if they are compiled to use mysqlnd. It does not change the API of the MySQL extensions -and thus it operates virtually transparent for applications." - -Authors: ---------- - - Andrey Hristov - Ulf Wendel - -%debug_package - -%prep -%setup -n %{pkg_name}-%{version} - -%{__mkdir} %{name} - -%build -/usr/bin/phpize -pushd %{name} - -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 - -../configure --with-libdir=%{_lib} \ - --enable-mysqlnd-qc \ - --enable-mysqlnd-qc-memcache \ - --enable-mysqlnd-qc-sqlite \ - --with-sqlite-dir=%{_prefix} - -%{__make} %{?jobs:-j%jobs} -popd - -%install -%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} -%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d -echo "; comment out next line to disable mysqlnd_qc extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/mysqlnd_qc.ini -echo "extension = mysqlnd_qc.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/mysqlnd_qc.ini - - -%clean -%{__rm} -rf %{buildroot} - -%files -%defattr(-,root,root,-) -%{_libdir}/php5/extensions/mysqlnd_qc.so -%config(noreplace) %{_sysconfdir}/php5/conf.d/mysqlnd_qc.ini - -%changelog -* Fri Oct 15 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.0-1 -- initial build version 1.0.0 beta | ||
[-] | Added | php5-mysqlnd_uh.spec ^ |
x 1
2 +# norootforbuild 3 +%define pkg_name mysqlnd_uh 4 +%define pkg_version 0.1.0a1 5 +%define php_version %(php-config --version 2>/dev/null) 6 +# 7 +Name: php5-mysqlnd_uh 8 +Version: %{pkg_version} 9 +Release: 0 10 +# 11 +License: PHP 12 +Group: Productivity/Networking/Web/Servers 13 +# 14 +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 15 +BuildRequires: gcc gcc-c++ 16 +BuildRequires: php5-devel >= 5.3.0 17 +BuildRequires: libmemcached-devel 18 +#BuildRequires: mysql-devel 19 +BuildRequires: sqlite-devel >= 3.0 20 +Requires: php5 = %{php_version} 21 +# 22 +URL: http://pecl.php.net/ 23 +Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz 24 +Summary: A query cache plugin for mysqlnd 25 + 26 +%description 27 +The mysqlnd query result cache plugin is a mysqlnd plugin. It adds basic client side 28 +result set caching to all PHP MySQL extensions (ext/mysql, ext/mysqli, PDO_MySQL), 29 +if they are compiled to use mysqlnd. It does not change the API of the MySQL extensions 30 +and thus it operates virtually transparent for applications." 31 + 32 +Authors: 33 +--------- 34 + 35 + Andrey Hristov 36 + Ulf Wendel 37 + 38 +%debug_package 39 + 40 +%prep 41 +%setup -n %{pkg_name}-%{version} 42 + 43 +%{__mkdir} %{name} 44 + 45 +%build 46 +/usr/bin/phpize 47 +pushd %{name} 48 + 49 +CFLAGS="%{optflags} -fno-strict-aliasing" 50 +CXXFLAGS="%{optflags} -fno-strict-aliasing" 51 +%if 0%{?suse_version} > 1000 52 +CFLAGS="$CFLAGS -fstack-protector" 53 +CXXFLAGS="$CXXFLAGS -fstack-protector" 54 +%endif 55 + 56 +export CFLAGS 57 +export CXXFLAGS 58 + 59 +../configure --with-libdir=%{_lib} \ 60 + --enable-mysqlnd-uh 61 + 62 +%{__make} %{?jobs:-j%jobs} 63 +popd 64 + 65 +%install 66 +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 67 +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d 68 +echo "; comment out next line to disable mysqlnd_uh extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/mysqlnd_uh.ini 69 +echo "extension = mysqlnd_uh.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/mysqlnd_uh.ini 70 + 71 + 72 +%clean 73 +%{__rm} -rf %{buildroot} 74 + 75 +%files 76 +%defattr(-,root,root,-) 77 +%{_libdir}/php5/extensions/mysqlnd_uh.so 78 +%config(noreplace) %{_sysconfdir}/php5/conf.d/mysqlnd_uh.ini 79 + 80 +%changelog 81 +* Thu Oct 21 2010 Carsten Schoene <cs@linux-administrator.com> - 0.1.0a1-1 82 +- initial build version 0.1.0a1 83 |
||
Deleted | mysqlnd_qc-1.0.0.tgz ^ | |
Added | mysqlnd_uh-0.1.0a1.tgz ^ |