]> git.pld-linux.org Git - packages/php-pecl-mnogosearch.git/blame - php-pecl-mnogosearch.spec
obsolete old php name
[packages/php-pecl-mnogosearch.git] / php-pecl-mnogosearch.spec
CommitLineData
a195014d 1%define php_name php%{?php_suffix}
a8fca03d
ER
2%define modname mnogosearch
3%define status alpha
4Summary: %{modname} - mnoGoSearch extension module for PHP
5Summary(pl.UTF-8): %{modname} - moduł mnoGoSearch dla PHP
a195014d 6Name: %{php_name}-pecl-%{modname}
a8fca03d 7# extension has no version yet (defiend as NO_VERSION_YET), keep it last pecl release
fc20bd30 8Version: 1.0.0
ff97c503 9Release: 8
b85f0a6f 10License: PHP 3.01
fc20bd30 11Group: Development/Languages/PHP
a8fca03d
ER
12Source0: http://www.mnogosearch.org/Download/mnogosearch-3.3.9.tar.gz
13# Source0-md5: 18d3e6c6cca3f816d05d04bd3943ed6a
fc20bd30 14URL: http://pecl.php.net/package/mnogosearch/
a195014d 15BuildRequires: %{php_name}-devel >= 3:5.0.0
ff97c503 16BuildRequires: mnogosearch-devel
a195014d 17BuildRequires: rpmbuild(macros) >= 1.650
fc20bd30 18%{?requires_php_extension}
782647d3 19Requires: php(core) >= 5.0.4
a8fca03d 20Provides: php-mnogosearch = %{version}-%{release}
fc20bd30 21Obsoletes: php-mnogosearch
ff97c503 22Obsoletes: php-pecl-mnogosearch < 0.2.0-7
fc20bd30
AG
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
fc20bd30 26This extension is a complete PHP binding for the mnoGoSearch API. For
a8fca03d 27details please see to <http://www.mnogosearch.org/> or the manual.
fc20bd30 28
a8fca03d 29In PECL status of this extension is: %{status}.
fc20bd30 30
c679e027 31%description -l pl.UTF-8
c679e027
JR
32Rozszerzenie to jest kompletnym zestawem dowiązań PHP do API
33mnoGoSearch. Dokładne informacje dostępne są pod adresem
a8fca03d 34<http://www.mnogosearch.org/> lub w podręczniku.
fc20bd30 35
a8fca03d 36To rozszerzenie ma w PECL status: %{status}.
fc20bd30
AG
37
38%prep
a8fca03d
ER
39%setup -qc
40mv mnogosearch-*/php/* .
fc20bd30
AG
41
42%build
fc20bd30
AG
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 \
a8fca03d
ER
53 EXTENSION_DIR=%{php_extensiondir} \
54 INSTALL_ROOT=$RPM_BUILD_ROOT
55
56cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
57; Enable %{modname} extension module
58extension=%{modname}.so
fc20bd30
AG
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)
a8fca03d
ER
74%doc CREDITS
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.130087 seconds and 4 git commands to generate.