packages: php-pecl-SQLite/php-pecl-SQLite.spec - use svn checkout, builds w...

glen glen at pld-linux.org
Sun Aug 7 15:21:08 CEST 2011


Author: glen                         Date: Sun Aug  7 13:21:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use svn checkout, builds with php 5.3.6

---- Files affected:
packages/php-pecl-SQLite:
   php-pecl-SQLite.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: packages/php-pecl-SQLite/php-pecl-SQLite.spec
diff -u packages/php-pecl-SQLite/php-pecl-SQLite.spec:1.21 packages/php-pecl-SQLite/php-pecl-SQLite.spec:1.22
--- packages/php-pecl-SQLite/php-pecl-SQLite.spec:1.21	Mon Feb 12 23:09:12 2007
+++ packages/php-pecl-SQLite/php-pecl-SQLite.spec	Sun Aug  7 15:21:02 2011
@@ -1,48 +1,49 @@
 # $Revision$, $Date$
-# TODO
-# - doesn't build
-%define		_modname	SQLite
-%define		_status		stable
-%define		_smodname	sqlite
-Summary:	%{_modname} - database bindings
-Summary(pl.UTF-8):	%{_modname} - powiązania z bazą danych
-Name:		php-pecl-%{_modname}
+%define		modname		SQLite
+%define		status		stable
+%define		smodname	sqlite
+Summary:	%{modname} - database bindings
+Summary(pl.UTF-8):	%{modname} - powiązania z bazą danych
+Name:		php-pecl-%{modname}
 Version:	1.0.3
-Release:	0.1
+Release:	0.2
 License:	PHP
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
-# Source0-md5:	3741cb211f9eb3f77de086e96d232e95
+# svn co http://svn.php.net/repository/pecl/sqlite/trunk sqlite
+#Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+Source0:	sqlite.tbz2
+# Source0-md5:	0ce6bcba180b650271bab6fc75113470
 URL:		http://pecl.php.net/package/SQLite/
 BuildRequires:	php-devel >= 3:5.0.0
-BuildRequires:	sqlite-devel >= 2.8.14
 BuildRequires:	rpmbuild(macros) >= 1.344
+BuildRequires:	sqlite-devel >= 2.8.14
 %{?requires_php_extension}
 Requires:	php-common >= 4:5.0.4
-Obsoletes:	php-pear-%{_modname}
+Provides:	php(sqlite)
+Obsoletes:	php-pear-SQLite
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-%{_modname} is a C library that implements an embeddable SQL database
-engine. Programs that link with the %{_modname} library can have SQL
+%{modname} is a C library that implements an embeddable SQL database
+engine. Programs that link with the %{modname} library can have SQL
 database access without running seperate RDBMS process. This extension
-allows you to access %{_modname} databases from within PHP.
+allows you to access %{modname} databases from within PHP.
 
-In PECL status of this package is: %{_status}.
+In PECL status of this package is: %{status}.
 
 %description -l pl.UTF-8
-%{_modname} jest napisaną w C biblioteką implementującą osadzoną bazę
-SQL. Programy konsolidowane z %{_modname} mogą mieć dostęp do bazy SQL
+%{modname} jest napisaną w C biblioteką implementującą osadzoną bazę
+SQL. Programy konsolidowane z %{modname} mogą mieć dostęp do bazy SQL
 bez potrzeby uruchamiana kolejnego procesu RDBMS. To rozszerzenie
 pozwala na dostęp do baz SQLite z poziomu PHP.
 
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
+%setup -qc
+mv sqlite/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure \
 	--with-sqlite=shared,/usr
@@ -53,12 +54,12 @@
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
 
 #chmod 755 build/shtool
-%{__make} -C %{_modname}-%{version} install \
+%{__make} install \
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_smodname}.ini
-; Enable %{_modname} extension module
-extension=%{_smodname}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{smodname}.ini
+; Enable %{modname} extension module
+extension=%{smodname}.so
 EOF
 
 %clean
@@ -74,10 +75,10 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/README %{_modname}-%{version}/TODO %{_modname}-%{version}/CREDITS
-%doc %{_modname}-%{version}/sqlite.php %{_modname}-%{version}/tests
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_smodname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_smodname}.so
+%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
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -85,6 +86,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2011/08/07 13:21:02  glen
+- use svn checkout, builds with php 5.3.6
+
 Revision 1.21  2007/02/12 22:09:12  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-SQLite/php-pecl-SQLite.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list