]> git.pld-linux.org Git - packages/dokuwiki-plugin-sidebarng.git/blob - dokuwiki-plugin-sidebarng.spec
- really use 20100604 version code
[packages/dokuwiki-plugin-sidebarng.git] / dokuwiki-plugin-sidebarng.spec
1 %define         plugin  sidebarng
2 Summary:        Adds flexible sidebar to DokuWiki
3 Name:           dokuwiki-plugin-%{plugin}
4 Version:        20100604
5 Release:        2
6 License:        GPL v2
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
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
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}
20
21 %description
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.
26
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
32 ile to możliwe.
33
34 %prep
35 %setup -qc
36 mv *-%{plugin}-*/* .
37
38 version=$(awk '/^date/{print $2}' plugin.info.txt)
39 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
40         : %%{version} mismatch
41         exit 1
42 fi
43
44 %install
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}
49
50 %find_lang %{name}.lang
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post
56 # force css cache refresh
57 if [ -f %{dokuconf}/local.php ]; then
58         touch %{dokuconf}/local.php
59 fi
60
61 %files -f %{name}.lang
62 %defattr(644,root,root,755)
63 %doc README
64 %dir %{plugindir}
65 %{plugindir}/*.css
66 %{plugindir}/*.php
67 %{plugindir}/*.txt
68 %{plugindir}/conf
69 %{plugindir}/sidebars
This page took 0.070866 seconds and 3 git commands to generate.