summaryrefslogtreecommitdiff
path: root/php-pear-Search_Mnogosearch.spec
blob: cfebd7e730082ec6e22c935b72c75f2e70d04e65 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%include	/usr/lib/rpm/macros.php
%define		_class		Search
%define		_subclass	Mnogosearch
%define		_status		alpha
%define		_pearname	%{_class}_%{_subclass}

Summary:	%{_pearname} - Wrapper classes for the mnoGoSearch extention
Summary(pl):	%{_pearname} - Klasy do obsługi rozszerzenia mnoGoSearch
Name:		php-pear-%{_pearname}
Version:	0.1.1
Release:	4
License:	PHP 2.02
Group:		Development/Languages/PHP
Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5:	af6c5903821f72e00c65dc573e638581
URL:		http://pear.php.net/package/Search_Mnogosearch/
BuildRequires:	php-pear-PEAR
BuildRequires:	rpm-php-pearprov >= 4.4.2-11
Requires:	php-common >= 3:5.0.0
Requires:	php-pear
Requires:	php-mnogosearch
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

# exclude optional dependencies
%define		_noautoreq	'pear(HTML/QuickForm.*)' 'pear(HTML/Template/Sigma.*)' 'pear(Pager.*)'

%description
This package provides wrapper classes for the mnoGoSearch search
engine. The package has two central classes "Search_Mnogosearch" and
"Search_Mnogosearch_Result". The class "Search_Mnogosearch" gives an
object that represents the search and the "Search_Mnogosearch_Result"
the result. The usage is just like the usage in the "DB" and
"DB_result" classes.

In PEAR status of this package is: %{_status}.

%description -l pl
Ten pakiet dostarcza klasy obudowujące dla silnika wyszukiwarki
mnoGoSearch. Pakiet ma dwie główne klasy: Search_Mnogosearch i
Search_Mnogosearch_Result. Klasa Search_Mnogosearch daje obiekt
reprezentujący wyszukiwanie, a Search_Mnogosearch_Result - wynik.
Sposób użycia jest podobny do klas DB i DB_result.

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

%prep
%pear_package_setup

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}
%pear_package_install

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
fi

%files
%defattr(644,root,root,755)
%doc install.log
%doc docs/%{_pearname}/docs/*
%{php_pear_dir}/.registry/*.reg
%dir %{php_pear_dir}/%{_class}
%{php_pear_dir}/%{_class}/*.php
%{php_pear_dir}/%{_class}/%{_subclass}