packages: php-pear-SQL_Parser/php-pear-SQL_Parser.spec, php-pear-SQL_Parser...

glen glen at pld-linux.org
Wed Sep 21 07:18:12 CEST 2011


Author: glen                         Date: Wed Sep 21 05:18:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use ctype ext, not reimplementation in php

---- Files affected:
packages/php-pear-SQL_Parser:
   php-pear-SQL_Parser.spec (1.27 -> 1.28) , no-pure-ctype.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec
diff -u packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec:1.27 packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec:1.28
--- packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec:1.27	Mon Oct 11 09:58:34 2010
+++ packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec	Wed Sep 21 07:18:07 2011
@@ -1,20 +1,22 @@
 # $Revision$, $Date$
+%define		status		devel
+%define		pearname	SQL_Parser
 %include	/usr/lib/rpm/macros.php
-%define		_status		devel
-%define		_pearname	SQL_Parser
-Summary:	%{_pearname} - an SQL Parser
-Summary(pl.UTF-8):	%{_pearname} - parser SQL-a
-Name:		php-pear-%{_pearname}
+Summary:	%{pearname} - an SQL Parser
+Summary(pl.UTF-8):	%{pearname} - parser SQL-a
+Name:		php-pear-%{pearname}
 Version:	0.6.0
-Release:	2
+Release:	3
 License:	LGPL
 Group:		Development/Languages/PHP
-Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
+Source0:	http://pear.php.net/get/%{pearname}-%{version}.tgz
 # Source0-md5:	9ca052adc0c79f5df83b23c5786f5757
+Patch0:		no-pure-ctype.patch
 URL:		http://pear.php.net/package/SQL_Parser/
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
-BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	rpmbuild(macros) >= 1.580
+Requires:	php-ctype
 Requires:	php-pear
 Obsoletes:	php-pear-SQL_Parser-tests
 BuildArch:	noarch
@@ -23,24 +25,27 @@
 %description
 This class is primarily an SQL parser, written with influences from a
 variety of sources (mSQL, CPAN's SQL-Statement, mySQL). It also
-includes a tokenizer (lexer) class and a reimplementation of the ctype
-extension in PHP.
+includes a tokenizer (lexer) class.
 
-In PEAR status of this package is: %{_status}.
+In PEAR status of this package is: %{status}.
 
 %description -l pl.UTF-8
 Ta klasa jest przede wszystkim parserem SQL-a, napisanym pod wpływem
 wielu źródeł (mSQL, SQL-Statement z CPAN, mySQL). Zawiera także klasę
-tokenizera (leksera) i własną implementację rozszerzenia ctype z PHP.
+tokenizera (leksera).
 
-Ta klasa ma w PEAR status: %{_status}.
+Ta klasa ma w PEAR status: %{status}.
 
 %prep
 %pear_package_setup
+%patch0 -p1
 
 install -d docs
 mv .%{php_pear_dir}/data/SQL_Parser/TODO docs
 
+# use php ext instead
+%{__rm} .%{php_pear_dir}/SQL/Parser/ctype.php
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
@@ -64,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2011/09/21 05:18:07  glen
+- use ctype ext, not reimplementation in php
+
 Revision 1.27  2010/10/11 07:58:34  glen
 - missing dir
 

================================================================
Index: packages/php-pear-SQL_Parser/no-pure-ctype.patch
diff -u /dev/null packages/php-pear-SQL_Parser/no-pure-ctype.patch:1.1
--- /dev/null	Wed Sep 21 07:18:12 2011
+++ packages/php-pear-SQL_Parser/no-pure-ctype.patch	Wed Sep 21 07:18:07 2011
@@ -0,0 +1,11 @@
+--- SQL_Parser-0.6.0/usr/share/pear/SQL/Parser/Lexer.php~	2011-09-21 08:13:37.000000000 +0300
++++ SQL_Parser-0.6.0/usr/share/pear/SQL/Parser/Lexer.php	2011-09-21 08:15:54.680062140 +0300
+@@ -24,8 +24,6 @@
+ // $Id$
+ //
+ 
+-include dirname(__FILE__) . '/ctype.php';
+-
+ // {{{ token definitions
+ // variables: 'ident', 'sys_var'
+ // values:    'real_val', 'text_val', 'int_val', null
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-SQL_Parser/php-pear-SQL_Parser.spec?r1=1.27&r2=1.28&f=u



More information about the pld-cvs-commit mailing list