]>
Commit | Line | Data |
---|---|---|
e20893eb | 1 | %define plugin revlink |
b2ec9857 | 2 | %define php_min_version 5.3.0 |
e20893eb ER |
3 | Summary: DokuWiki revlink plugin |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 20090125 | |
6 | Release: 1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
b2ec9857 | 9 | Source0: http://www.dokuwiki.org/_export/code/plugin:revlink?codeblock=0&/syntax.php |
e20893eb | 10 | # Source0-md5: dc4cb942df8aeda0c22753f7901478f2 |
b2ec9857 | 11 | URL: https://www.dokuwiki.org/plugin:revlink |
e20893eb ER |
12 | BuildRequires: rpmbuild(macros) >= 1.520 |
13 | Requires: dokuwiki >= 20090125 | |
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 | ||
21 | %description | |
22 | Extend internal link syntax to allow linking to a previous revision a | |
23 | of page. | |
24 | ||
25 | %prep | |
26 | %setup -qcT | |
b2ec9857 | 27 | cp -p %{SOURCE0} . |
e20893eb | 28 | |
b2ec9857 | 29 | %build |
e20893eb ER |
30 | version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php) |
31 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
32 | : %%{version} mismatch | |
33 | exit 1 | |
34 | fi | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{plugindir} | |
39 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %dir %{plugindir} | |
47 | %{plugindir}/*.php |