]> git.pld-linux.org Git - packages/dokuwiki-plugin-orphanswanted.git/blame - dokuwiki-plugin-orphanswanted.spec
up to 20170625
[packages/dokuwiki-plugin-orphanswanted.git] / dokuwiki-plugin-orphanswanted.spec
CommitLineData
bac65863
ER
1%define subver 2017-06-25
2%define ver %(echo %{subver} | tr -d -)
8ae1ea53 3%define plugin orphanswanted
bac65863
ER
4%define php_min_version 5.3.0
5%include /usr/lib/rpm/macros.php
8ae1ea53
ER
6Summary: DokuWiki plugin to find orphan pages, Wanted pages with reference counts
7Name: dokuwiki-plugin-%{plugin}
bac65863
ER
8Version: %{ver}
9Release: 1
8ae1ea53
ER
10License: GPL v2
11Group: Applications/WWW
bac65863
ER
12Source0: https://github.com/lupo49/dokuwiki-plugin-orphanswanted/archive/163625f/%{plugin}-%{subver}.tar.gz
13# Source0-md5: b14fbb365e9b9e0dfcde770e7b50a0d3
14URL: https://www.dokuwiki.org/plugin:orphanswanted
15BuildRequires: rpm-php-pearprov >= 4.4.2-11
16BuildRequires: rpmbuild(macros) >= 1.553
17Requires: dokuwiki >= 20131208
18Requires: php(core) >= %{php_min_version}
8ae1ea53
ER
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define dokuconf /etc/webapps/dokuwiki
23%define dokudir /usr/share/dokuwiki
24%define plugindir %{dokudir}/lib/plugins/%{plugin}
25%define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
26
27%description
28Use this plugin to find orphan pages and wanted pages.
29
30OrphansWanted show which pages are:
31- Orphans (the page exists, but it has no links to it)
32- Wanted (the page does not exist, but there are link(s) to it
33 elsewhere on the site)
34- Valid (the page exists, and it can be reached through a link)
35
36Each table shows the reference count and a link to backlinks.
37
38%prep
39%setup -qc
bac65863 40mv *-%{plugin}-*/* .
8ae1ea53 41
bac65863
ER
42%build
43version=$(awk '/^date/{print $2}' plugin.info.txt)
8ae1ea53
ER
44if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
45 : %%{version} mismatch
46 exit 1
47fi
48
49%install
50rm -rf $RPM_BUILD_ROOT
51install -d $RPM_BUILD_ROOT%{plugindir}
52cp -a . $RPM_BUILD_ROOT%{plugindir}
bac65863
ER
53rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
54
55%find_lang %{name}.lang
8ae1ea53
ER
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
bac65863 60%files -f %{name}.lang
8ae1ea53
ER
61%defattr(644,root,root,755)
62%doc README
63%dir %{plugindir}
64%{plugindir}/*.php
bac65863
ER
65%{plugindir}/*.txt
66%{plugindir}/conf
This page took 0.132029 seconds and 4 git commands to generate.