1 %define plugin sphinxsearch
2 %define php_min_version 5.1.0
3 %include /usr/lib/rpm/macros.php
4 Summary: DokuWiki sphinxsearch plugin
5 Summary(pl.UTF-8): Wtyczka sphinxsearch dla DokuWiki
6 Name: dokuwiki-plugin-%{plugin}
10 Group: Applications/WWW
11 Source0: http://launchpad.net/dokuwiki-sphinxsearch/0.3/%{version}/+download/sphinxsearch-%{version}.tar.gz
12 # Source0-md5: 07448f7d6639431f44013708e577f45d
13 Patch0: sphinxapi-pecl.patch
14 URL: http://www.dokuwiki.org/plugin:sphinxsearch
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.520
17 Requires: dokuwiki >= 20091225
19 Requires: php-common >= 4:%{php_min_version}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define dokuconf /etc/webapps/dokuwiki
26 %define dokudir /usr/share/dokuwiki
27 %define plugindir %{dokudir}/lib/plugins/%{plugin}
30 %define _noautopear pear
32 # put it together for rpmbuild
33 %define _noautoreq %{?_noautophp} %{?_noautopear}
36 DokuWiki Sphinx Search plugin replaces DokuWiki's built-in search
37 functionality with the Sphinx Search Engine powered search which gives
38 high-performance and more relevant search results.
41 - Google-style results (Results are shown in traditional Google-style:
42 title, snippet and address (document path).)
43 - Filtering by namespaces (Click on namespaces in the results to see
44 search only within chosen namespace
45 - Document sections are indexed separately (This is very useful for
46 those who have large pages in DokuWiki)
51 rm %{plugin}/.hg_archival.txt
52 rm %{plugin}/.htaccess
58 version=$(awk '/date/{print $2}' plugin.info.txt)
59 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
60 : %%{version} mismatch
61 # version check blocker intentionally missing
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{plugindir}
68 cp -a . $RPM_BUILD_ROOT%{plugindir}
69 rm $RPM_BUILD_ROOT%{plugindir}/{INSTALL,COPYING,changelog,sphinx.conf}
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc INSTALL changelog sphinx.conf