]> git.pld-linux.org Git - packages/php-pecl-mnogosearch.git/blame - php-pecl-mnogosearch.spec
- converted to UTF-8
[packages/php-pecl-mnogosearch.git] / php-pecl-mnogosearch.spec
CommitLineData
fc20bd30
AG
1%define _modname mnogosearch
2%define _status alpha
fc20bd30 3Summary: %{_modname} - mnoGoSearch extension module for PHP
c679e027 4Summary(pl.UTF-8): %{_modname} - moduł mnoGoSearch dla PHP
fc20bd30
AG
5Name: php-pecl-%{_modname}
6Version: 1.0.0
7Release: 1
8License: PHP 2.02
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11# Source0-md5: 07fa9afd0c6fa4a3772f84a0eb4f1965
12URL: http://pecl.php.net/package/mnogosearch/
d2b45005 13BuildRequires: mnogosearch-devel
fc20bd30 14BuildRequires: php-devel >= 3:5.0.0
d2b45005 15BuildRequires: rpmbuild(macros) >= 1.344
fc20bd30 16%{?requires_php_extension}
d2b45005 17Requires: php-common >= 4:5.0.4
fc20bd30
AG
18Obsoletes: php-mnogosearch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Until PHP 5.1.0, this package was bundled in PHP.
23
24This extension is a complete PHP binding for the mnoGoSearch API. For
25details please see to http://www.mnogosearch.org/ or the manual.
26
27In PECL status of this extension is: %{_status}.
28
c679e027
JR
29%description -l pl.UTF-8
30Do wersji PHP 5.1.0, to rozszerzenie było częścią PHP.
fc20bd30 31
c679e027
JR
32Rozszerzenie to jest kompletnym zestawem dowiązań PHP do API
33mnoGoSearch. Dokładne informacje dostępne są pod adresem
34http://www.mnogosearch.org/ lub w podręczniku.
fc20bd30
AG
35
36To rozszerzenie ma w PECL status: %{_status}.
37
38%prep
39%setup -q -c
40
41%build
42cd %{_modname}-%{version}
43phpize
44%configure \
45 --with-mnogosearch=shared,/usr
46%{__make}
47
48%install
49rm -rf $RPM_BUILD_ROOT
d2b45005 50install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
fc20bd30
AG
51
52%{__make} install \
53 -C %{_modname}-%{version} \
54 INSTALL_ROOT=$RPM_BUILD_ROOT \
d2b45005
ER
55 EXTENSION_DIR=%{php_extensiondir}
56cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
fc20bd30
AG
57; Enable %{_modname} extension module
58extension=%{_modname}.so
59EOF
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
d2b45005 65%php_webserver_restart
fc20bd30
AG
66
67%postun
68if [ "$1" = 0 ]; then
d2b45005 69 %php_webserver_restart
fc20bd30
AG
70fi
71
72%files
73%defattr(644,root,root,755)
74%doc %{_modname}-%{version}/CREDITS
d2b45005
ER
75%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
76%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.101306 seconds and 4 git commands to generate.