Logoj0ke.net Open Build Service > Projects > internetx:php5:extensions > php5-mysqlnd_uh > Changes
Sign Up | Log In

Changes of Revision 2

[+] Deleted php5-mysqlnd_qc.spec
[-] Added php5-mysqlnd_uh.spec ^
x
 
1
@@ -0,0 +1,81 @@
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 ^