commit 8cc336300a9ef18250cb06415c316dbd35ceb04e
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Jun 21 11:01:28 2013 +0300

    support multiple php versions

 php-pecl-SQLite.spec | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/php-pecl-SQLite.spec b/php-pecl-SQLite.spec
index 27a9dd8..3d494f1 100644
--- a/php-pecl-SQLite.spec
+++ b/php-pecl-SQLite.spec
@@ -1,9 +1,10 @@
+%define                php_name        php%{?php_suffix}
 %define                modname         SQLite
 %define                status          stable
-%define                smodname        sqlite
+%define                extname sqlite
 Summary:       SQLite 2 Embeddable SQL Database Engine
 Summary(pl.UTF-8):     %{modname} - powiązania z bazą danych
-Name:          php-pecl-%{modname}
+Name:          %{php_name}-pecl-%{modname}
 Version:       1.0.3
 Release:       0.2
 License:       PHP
@@ -13,11 +14,11 @@ Group:              Development/Languages/PHP
 Source0:       sqlite.tbz2
 # Source0-md5: 0ce6bcba180b650271bab6fc75113470
 URL:           http://pecl.php.net/package/SQLite/
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: %{php_name}-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.650
 BuildRequires: sqlite-devel >= 2.8.14
 %{?requires_php_extension}
-Requires:      php-common >= 4:5.0.4
+Requires:      php(core) >= 5.0.4
 Provides:      php(sqlite)
 Obsoletes:     php-pear-SQLite
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,14 +52,12 @@ phpize
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-
-#chmod 755 build/shtool
 %{__make} install \
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{smodname}.ini
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{extname}.ini
 ; Enable %{modname} extension module
-extension=%{smodname}.so
+extension=%{extname}.so
 EOF
 
 %clean
@@ -76,5 +75,5 @@ fi
 %defattr(644,root,root,755)
 %doc README TODO CREDITS
 %doc sqlite.php tests
-%config(noreplace) %verify(not md5 mtime size) 
%{php_sysconfdir}/conf.d/%{smodname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{smodname}.so
+%config(noreplace) %verify(not md5 mtime size) 
%{php_sysconfdir}/conf.d/%{extname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{extname}.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-SQLite.git/commitdiff/8cc336300a9ef18250cb06415c316dbd35ceb04e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to