Changes of Revision 10
[-] | Changed | php-sqlite2.spec |
x 1
2 Summary: PHP SQLite2 extension 3 Source0: http://pecl.php.net/get/SQLite-1.0.3.tgz 4 Patch0: SQLite-arg3.patch 5 +Patch1: SQLite-utf8.patch 6 Group: Development/Languages 7 BuildRoot: %{_tmppath}/%{name}-%{version}-root 8 Provides: php-pecl-%{pkgname} = %{version} 9
10 %prep 11 %setup -n %{pkgname}-%{pkgversion} 12 %patch 13 +%patch1 14 15 %build 16 %{_bindir}/phpize 17 -./configure --help || : 18 %configure --with-sqlite --with-sqlite-utf8 --with-php-config=%{_bindir}/php-config 19 -cat config.h || : 20 %{__make} %{?_smp_mflags} 21 22 23 |
||
[+] | Added | SQLite-utf8.patch ^ |
@@ -0,0 +1,18 @@ +--- libsqlite/src/main.c.orig 2011-02-02 10:02:13.430979131 +0100 ++++ libsqlite/src/main.c 2011-02-02 10:59:32.179678484 +0100 +@@ -453,11 +453,11 @@ + ** Does the library expect data to be encoded as UTF-8 or iso8859? The + ** following global constant always lets us know. + */ +-#ifdef SQLITE_UTF8 ++// #ifdef SQLITE_UTF8 + const char sqlite_encoding[] = "UTF-8"; +-#else +-const char sqlite_encoding[] = "iso8859"; +-#endif ++// #else ++// const char sqlite_encoding[] = "iso8859"; ++// #endif + + /* + ** Open a new SQLite database. Construct an "sqlite" structure to define |