]> git.pld-linux.org Git - packages/php-pecl-session_mysql.git/commitdiff
- prefent segfault if no ini setting is set; rel 4
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 5 Sep 2007 21:49:11 +0000 (21:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-session_mysql.spec -> 1.17

php-pecl-session_mysql.spec

index eeeb07f9660a4ab69728ff4b61d4134cb93a0f42..a0d4fe43bf3922c6f1b30c731858aa57edf3b7a9 100644 (file)
@@ -3,7 +3,7 @@ Summary:        MySQL session save handler for PHP
 Summary(pl.UTF-8):     Obsługa zapisywania sesji w bazie MySQL dla PHP
 Name:          php-pecl-%{_modname}
 Version:       1.9
-Release:       3
+Release:       4
 License:       MIT
 Group:         Development/Languages/PHP
 Source0:       http://websupport.sk/~stanojr/projects/session_mysql/%{_modname}-%{version}.tgz
@@ -12,6 +12,7 @@ Source1:      %{name}.ini
 Source2:       %{name}.sql
 Patch0:                %{name}-leak.patch
 Patch1:                %{name}-reconnect.patch
+Patch2:                %{name}-segv.patch
 URL:           http://websupport.sk/~stanojr/projects/session_mysql/
 BuildRequires: mysql-devel
 BuildRequires: php-devel >= 3:5.0.0
@@ -37,12 +38,17 @@ Obsługa zapisywania sesji w bazie MySQL dla PHP.
 %setup -q -n %{_modname}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 cp -a %{SOURCE2} database.sql
 
 %build
-phpize
-%configure \
+[ config.m4 -ot configure ] || rm -f configure
+[ -f configure ] || phpize
+[ configure -ot Makefile ] || rm -f Makefile
+if [ ! -f Makefile ]; then
+       %configure \
        --with-mysql=/usr
+fi
 %{__make}
 
 %install
This page took 0.092958 seconds and 4 git commands to generate.