summaryrefslogtreecommitdiff
path: root/php-pear-SQL_Parser.spec
blob: 5ef1ea7c2da193cd0d8a238fdfc3beb0ed68dd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%include	/usr/lib/rpm/macros.php
%define		_class		SQL
%define		_subclass	Parser
%define		_status		devel
%define		_pearname	%{_class}_%{_subclass}

Summary:	%{_pearname} - an SQL Parser
Summary(pl):	%{_pearname} - parser SQL-a
Name:		php-pear-%{_pearname}
Version:	0.5
Release:	1
License:	LGPL
Group:		Development/Languages/PHP
Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5:	a5b76c31e1914f5b1ce605d9d52c1751
URL:		http://pear.php.net/package/SQL_Parser/
BuildRequires:	rpm-php-pearprov >= 4.0.2-98
Requires:	php-pear
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%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.

This class has in PEAR status: %{_status}.

%description -l pl
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.

Ta klasa ma w PEAR status: %{_status}.

%prep
%setup -q -c

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}

install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc %{_pearname}-%{version}/tests
%dir %{php_pear_dir}/%{_class}
%{php_pear_dir}/%{_class}/*.php