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}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define dokuconf /etc/webapps/dokuwiki
28 %define dokudir /usr/share/dokuwiki
29 %define plugindir %{dokudir}/lib/plugins/%{plugin}
32 %define _noautopear pear
34 # put it together for rpmbuild
35 %define _noautoreq %{?_noautophp} %{?_noautopear}
38 DokuWiki Sphinx Search plugin replaces DokuWiki's built-in search
39 functionality with the Sphinx Search Engine powered search which gives
40 high-performance and more relevant search results.
43 - Google-style results (Results are shown in traditional Google-style:
44 title, snippet and address (document path).)
45 - Filtering by namespaces (Click on namespaces in the results to see
46 search only within chosen namespace
47 - Document sections are indexed separately (This is very useful for
48 those who have large pages in DokuWiki)
53 rm %{plugin}/.hg_archival.txt
54 rm %{plugin}/.htaccess
60 version=$(awk '/date/{print $2}' plugin.info.txt)
61 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
62 : %%{version} mismatch
63 # version check blocker intentionally missing
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{plugindir}
70 cp -a . $RPM_BUILD_ROOT%{plugindir}
71 rm $RPM_BUILD_ROOT%{plugindir}/{INSTALL,COPYING,changelog,sphinx.conf}
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc INSTALL changelog sphinx.conf