]>
Commit | Line | Data |
---|---|---|
86811ede ER |
1 | %define plugin sphinxsearch |
2 | Summary: DokuWiki sphinxsearch plugin | |
3 | Summary(pl.UTF-8): Wtyczka sphinxsearch dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 0.3.3 | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://launchpad.net/dokuwiki-sphinxsearch/0.3/%{version}/+download/sphinxsearch-%{version}.tar.gz | |
10 | # Source0-md5: 07448f7d6639431f44013708e577f45d | |
11 | URL: http://www.dokuwiki.org/plugin:sphinxsearch | |
12 | BuildRequires: rpmbuild(macros) >= 1.520 | |
13 | # for %%undos macro | |
14 | BuildRequires: rpmbuild(macros) >= 1.553 | |
15 | Requires: dokuwiki >= 20091225 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define dokuconf /etc/webapps/dokuwiki | |
20 | %define dokudir /usr/share/dokuwiki | |
21 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
22 | ||
23 | %description | |
24 | DokuWiki Sphinx Search plugin replaces DokuWiki's built-in search | |
25 | functionality with the Sphinx Search Engine powered search which gives | |
26 | high-performance and more relevant search results. | |
27 | ||
28 | Features | |
29 | ||
30 | - Google-style results (Results are shown in traditional Google-style: | |
31 | title, snippet and address (document path).) | |
32 | - Filtering by namespaces (Click on namespaces in the results to see | |
33 | search only within chosen namespace, or simply use “ “search phrase | |
34 | @ns personal:mike:travel”) | |
35 | - Document sections are indexed separately (This is very useful for | |
36 | those who have large pages in DokuWiki) | |
37 | ||
38 | %prep | |
39 | %setup -qc | |
40 | mv %{plugin}/* . | |
41 | rm %{plugin}/.hg_archival.txt | |
42 | rm %{plugin}/.htaccess | |
43 | ||
44 | version=$(awk '/date/{print $2}' plugin.info.txt) | |
45 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
46 | : %%{version} mismatch | |
47 | # version check blocker intentionally missing | |
48 | # exit 1 | |
49 | fi | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{plugindir} | |
54 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
55 | rm $RPM_BUILD_ROOT%{plugindir}/{INSTALL,COPYING,changelog,sphinx.conf} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc INSTALL changelog sphinx.conf | |
63 | %dir %{plugindir} | |
64 | %{plugindir}/*.txt | |
65 | %{plugindir}/*.php | |
66 | %{plugindir}/conf |