blob: 5821ed45a4562e857484a15a3d2888d995ad6da6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
%define plugin revlink
%define php_min_version 5.3.0
Summary: DokuWiki revlink plugin
Name: dokuwiki-plugin-%{plugin}
Version: 20090125
Release: 1
License: GPL v2
Group: Applications/WWW
Source0: http://www.dokuwiki.org/_export/code/plugin:revlink?codeblock=0&/syntax.php
# Source0-md5: dc4cb942df8aeda0c22753f7901478f2
URL: https://www.dokuwiki.org/plugin:revlink
BuildRequires: rpmbuild(macros) >= 1.520
Requires: dokuwiki >= 20090125
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dokuconf /etc/webapps/dokuwiki
%define dokudir /usr/share/dokuwiki
%define plugindir %{dokudir}/lib/plugins/%{plugin}
%description
Extend internal link syntax to allow linking to a previous revision a
of page.
%prep
%setup -qcT
cp -p %{SOURCE0} .
%build
version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php)
if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
: %%{version} mismatch
exit 1
fi
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{plugindir}
cp -a . $RPM_BUILD_ROOT%{plugindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{plugindir}
%{plugindir}/*.php
|