1 %define plugin orphanswanted
2 Summary: DokuWiki plugin to find orphan pages, Wanted pages with reference counts
3 Name: dokuwiki-plugin-%{plugin}
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
13 Requires: dokuwiki >= 20091225
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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}
23 Use this plugin to find orphan pages and wanted pages.
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)
31 Each table shows the reference count and a link to backlinks.
37 version=$(cat VERSION)
38 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
39 : %%{version} mismatch
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}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)