1 %define plugin searchindex
2 %define php_min_version 5.0.0
3 %include /usr/lib/rpm/macros.php
4 Summary: DokuWiki Searchindex Manager
5 Summary(pl.UTF-8): Zarządca indeksu wyszukiwania dla DokuWiki
6 Name: dokuwiki-plugin-%{plugin}
10 Group: Applications/WWW
11 Source0: http://github.com/splitbrain/dokuwiki-plugin-%{plugin}/zipball/master/%{plugin}.zip
12 # Source0-md5: ecf9e27851b6ef33df6e75ce144076a5
13 URL: http://www.dokuwiki.org/plugin:searchindex
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.520
16 Requires: dokuwiki >= 20090214
17 Requires: php(core) >= %{php_min_version}
19 Requires: php(session)
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define dokuconf /etc/webapps/dokuwiki
24 %define dokudir /usr/share/dokuwiki
25 %define plugindir %{dokudir}/lib/plugins/%{plugin}
26 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
29 This admin plugin allows you to rebuild the index used by the fulltext
30 search. This isn't needed generally as the index builds and updates
31 itself while users browse your wiki. However if you just upgraded,
32 added or removed a lot of files it may be a good idea to cleanup the
35 This Plugin needs a recent Browser as it makes use of modern
36 JavaScript to carry out multiple tasks in the background (using AJAX).
38 %description -l pl.UTF-8
39 Wtyczka administratora pozwalająca przebudować indeks używany przez
40 wyszukiwanie pełnotekstowe. Nie jest niezbędna w ogólnym przypadku,
41 jako że indeks buduje się i uaktualnia sam w czasie przeglądania wiki.
42 Jednakże po uaktualnieniu, dodaniu lub usunięciu wielu plików
43 wyczyszczenie indeksu może być dobrym pomysłem.
45 Wtyczka ta wymaga aktualnej przeglądarki, jako że wykorzystuje nową
46 wersję JavaScriptu do wykonywania wielu zadań w tle (z użyciem
54 version=$(awk '/^date/{print $2}' plugin.info.txt)
55 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
56 : %%{version} mismatch
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{plugindir}
63 cp -a . $RPM_BUILD_ROOT%{plugindir}
64 %{__rm} $RPM_BUILD_ROOT%{plugindir}/README
66 %find_lang %{name}.lang
69 rm -rf $RPM_BUILD_ROOT
72 # force js/css cache refresh
73 if [ -f %{dokuconf}/local.php ]; then
74 touch %{dokuconf}/local.php
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)