]> git.pld-linux.org Git - packages/dokuwiki-plugin-orphanswanted.git/blame - dokuwiki-plugin-orphanswanted.spec
- BR: unzip
[packages/dokuwiki-plugin-orphanswanted.git] / dokuwiki-plugin-orphanswanted.spec
CommitLineData
8ae1ea53
ER
1%define plugin orphanswanted
2Summary: DokuWiki plugin to find orphan pages, Wanted pages with reference counts
3Name: dokuwiki-plugin-%{plugin}
4Version: 20100411
5Release: 0.1
6License: GPL v2
7Group: Applications/WWW
8Source0: http://github.com/downloads/andywebber/dokuwiki-plugin-orphanswanted/orphanswanted.zip
9# Source0-md5: 50e45168d9ac8d3bf7e663f4f274f57a
10URL: http://www.dokuwiki.org/plugin:orphanswanted
11BuildRequires: rpmbuild(macros) >= 1.520
e5b292fc 12BuildRequires: unzip
8ae1ea53
ER
13Requires: dokuwiki >= 20091225
14BuildArch: noarch
15BuildRoot: %{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
23Use this plugin to find orphan pages and wanted pages.
24
25OrphansWanted 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
31Each table shows the reference count and a link to backlinks.
32
33%prep
34%setup -qc
35mv %{plugin}/* .
36
37version=$(cat VERSION)
38if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
39 : %%{version} mismatch
40 exit 1
41fi
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT%{plugindir}
46cp -a . $RPM_BUILD_ROOT%{plugindir}
47rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
48
49%clean
50rm -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.187303 seconds and 4 git commands to generate.