1 %define plugin sidebarng
2 Summary: Adds flexible sidebar to DokuWiki
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: https://github.com/chimeric/dokuwiki-plugin-sidebarng/tarball/master/%{name}-%{version}.tgz
9 # Source0-md5: 0971442a6a3cf782cf8240a7b160769a
10 URL: http://www.dokuwiki.org/plugin:sidebarng
11 BuildRequires: rpmbuild(macros) >= 1.268
12 Requires: dokuwiki >= 20091225
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define dokuconf /etc/webapps/dokuwiki
17 %define dokudir /usr/share/dokuwiki
18 %define plugindir %{dokudir}/lib/plugins/%{plugin}
19 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
22 Better navigation with DokuWiki. Features a navigation sidebar, a
23 tagline, highlighting the current page in the sidebar (unique
24 feature!), using the page heading as link text automatically. Retains
25 the default DokuWiki look and feel as much as possible.
27 %description -l pl.UTF-8
28 Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze
29 nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze (co
30 jest unikalną cechą!), przy automatycznym użyciu nagłówka strony jako
31 tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki na
38 version=$(awk '/^date/{print $2}' plugin.info.txt)
39 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
40 : %%{version} mismatch
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{plugindir}
47 cp -a . $RPM_BUILD_ROOT%{plugindir}
48 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
50 %find_lang %{name}.lang
53 rm -rf $RPM_BUILD_ROOT
56 # force css cache refresh
57 if [ -f %{dokuconf}/local.php ]; then
58 touch %{dokuconf}/local.php
61 %files -f %{name}.lang
62 %defattr(644,root,root,755)