]> git.pld-linux.org Git - packages/dokuwiki-plugin-backlinks.git/blob - dokuwiki-plugin-backlinks.spec
- adapter; rel 1
[packages/dokuwiki-plugin-backlinks.git] / dokuwiki-plugin-backlinks.spec
1 %define         plugin          backlinks
2 Summary:        DokuWiki Backlinks Plugin
3 Summary(pl.UTF-8):      Wtyczka backlinks dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        20090521
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://cloud.github.com/downloads/chimeric/dokuwiki-plugin-backlinks/plugin-backlinks.tgz
10 # Source0-md5:  916d5121fd40fe9a5b5d0a2accb66ce6
11 URL:            http://www.dokuwiki.org/plugin:backlinks2
12 Requires:       dokuwiki >= 20061106
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
20 %description
21 Lists all pages that link back to a given page using the first
22 headline as link title.
23
24 %prep
25 %setup -q -n %{plugin}
26 version=$(cat VERSION)
27 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
28         : %%{version} mismatch
29         exit 1
30 fi
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{plugindir}
35 cp -a . $RPM_BUILD_ROOT%{plugindir}
36 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 # force css cache refresh
43 if [ -f %{dokuconf}/local.php ]; then
44         touch %{dokuconf}/local.php
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README VERSION
50 %dir %{plugindir}
51 %{plugindir}/*.php
This page took 0.082032 seconds and 3 git commands to generate.