]>
Commit | Line | Data |
---|---|---|
4df5901c ER |
1 | %define plugin javadoc |
2 | Summary: Add Javadoc link capability to dokuwiki | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 20070919 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://www.doolin-guif.net/wiki/lib/exe/fetch.php?media=plugin:plugin-%{plugin}-1.0.0.zip#/%{plugin}.zip | |
9 | # Source0-md5: a6629e93b430f1a38ab4d2623f94f2ca | |
10 | URL: http://www.dokuwiki.org/plugin:javadoc | |
11 | BuildRequires: rpmbuild(macros) >= 1.520 | |
0ef2dd66 | 12 | BuildRequires: unzip |
4df5901c ER |
13 | Requires: dokuwiki >= 20061106 |
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 | This plugin allows the editor to create links to a Javadoc page using | |
23 | the full same of a class or a method, and referring the Javadoc base | |
24 | URL using an identifier. This allows to easily refer to one or several | |
25 | Javadoc sites without hard-coding the base URL at each time. | |
26 | ||
27 | %prep | |
28 | %setup -qc | |
29 | mv %{plugin}/* . | |
30 | ||
31 | version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php) | |
32 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
33 | : %%{version} mismatch | |
34 | exit 1 | |
35 | fi | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{plugindir} | |
40 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %post | |
46 | # force js/css cache refresh | |
47 | if [ -f %{dokuconf}/local.php ]; then | |
48 | touch %{dokuconf}/local.php | |
49 | fi | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %dir %{plugindir} | |
54 | %{plugindir}/*.php | |
55 | %{plugindir}/*.css | |
56 | %{plugindir}/conf | |
57 | %{plugindir}/images |