]> git.pld-linux.org Git - packages/php-pecl-sphinx.git/blame - php-pecl-sphinx.spec
- updated to 1.2.0
[packages/php-pecl-sphinx.git] / php-pecl-sphinx.spec
CommitLineData
7cc693a1
ER
1%define modname sphinx
2Summary: %{modname} - client for sphinx SQL full-text search engine
3Name: php-pecl-%{modname}
2d5a797a
ŁK
4Version: 1.2.0
5Release: 1
2c771283 6License: PHP 3.01
7cc693a1
ER
7Group: Development/Languages/PHP
8Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
2d5a797a 9# Source0-md5: 74e23a18f8cea31d64735f2cf5a3115c
7cc693a1
ER
10URL: http://pecl.php.net/package/sphinx/
11BuildRequires: libsphinxclient-devel
12BuildRequires: php-devel >= 4:5.0.4
13BuildRequires: rpmbuild(macros) >= 1.519
14%{?requires_php_extension}
5fe578cb 15Provides: php(sphinx)
7cc693a1
ER
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Client extension for Sphinx - Opensource SQL full-text search engine.
20
21%prep
22%setup -qc
23mv %{modname}-%{version}/* .
24
25%build
26phpize
27%configure
28%{__make}
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
33
34%{__make} install \
35 INSTALL_ROOT=$RPM_BUILD_ROOT \
36 EXTENSION_DIR=%{php_extensiondir}
37cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
38; Enable %{modname} extension module
39extension=%{modname}.so
40EOF
41
42%clean
43rm -rf $RPM_BUILD_ROOT
44
45%post
46%php_webserver_restart
47
48%postun
49if [ "$1" = 0 ]; then
50 %php_webserver_restart
51fi
52
53%files
54%defattr(644,root,root,755)
55%doc CREDITS
56%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
57%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.106953 seconds and 4 git commands to generate.