]> git.pld-linux.org Git - packages/dokuwiki-plugin-orphanswanted.git/blob - dokuwiki-plugin-orphanswanted.spec
- BR: unzip
[packages/dokuwiki-plugin-orphanswanted.git] / dokuwiki-plugin-orphanswanted.spec
1 %define         plugin          orphanswanted
2 Summary:        DokuWiki plugin to find orphan pages, Wanted pages with reference counts
3 Name:           dokuwiki-plugin-%{plugin}
4 Version:        20100411
5 Release:        0.1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source0:        http://github.com/downloads/andywebber/dokuwiki-plugin-orphanswanted/orphanswanted.zip
9 # Source0-md5:  50e45168d9ac8d3bf7e663f4f274f57a
10 URL:            http://www.dokuwiki.org/plugin:orphanswanted
11 BuildRequires:  rpmbuild(macros) >= 1.520
12 BuildRequires:  unzip
13 Requires:       dokuwiki >= 20091225
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         dokuconf        /etc/webapps/dokuwiki
18 %define         dokudir         /usr/share/dokuwiki
19 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
20 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
21
22 %description
23 Use this plugin to find orphan pages and wanted pages.
24
25 OrphansWanted show which pages are:
26 - Orphans (the page exists, but it has no links to it)
27 - Wanted (the page does not exist, but there are link(s) to it
28   elsewhere on the site)
29 - Valid (the page exists, and it can be reached through a link)
30
31 Each table shows the reference count and a link to backlinks.
32
33 %prep
34 %setup -qc
35 mv %{plugin}/* .
36
37 version=$(cat VERSION)
38 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
39         : %%{version} mismatch
40         exit 1
41 fi
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{plugindir}
46 cp -a . $RPM_BUILD_ROOT%{plugindir}
47 rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README
55 %dir %{plugindir}
56 %{plugindir}/*.php
This page took 0.069066 seconds and 3 git commands to generate.