]>
Commit | Line | Data |
---|---|---|
3f3ed1b6 | 1 | %define plugin snmplive |
2b8b1623 JB |
2 | Summary: DokuWiki SNMPlive Plugin |
3 | Summary(pl.UTF-8): Wtyczka SNMPlive dla DokuWiki | |
3f3ed1b6 | 4 | Name: dokuwiki-plugin-%{plugin} |
910018c1 | 5 | Version: 0.1 |
3f3ed1b6 | 6 | Release: 1 |
910018c1 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
3f3ed1b6 | 9 | Source0: http://glen.alkohol.ee/pld/%{plugin}.tar.gz |
910018c1 ER |
10 | # Source0-md5: 8fb23b7858d2cba87021e5a56e39297f |
11 | URL: http://wiki.splitbrain.org/plugin:snmplive | |
12 | Requires: dokuwiki | |
13 | Requires: php(pcre) | |
14 | Requires: php(snmp) | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
abf75cad | 18 | %define dokuconf /etc/webapps/dokuwiki |
3f3ed1b6 ER |
19 | %define dokudir /usr/share/dokuwiki |
20 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
910018c1 ER |
21 | |
22 | %description | |
23 | It gets the actual SNMP values out of any by the server reachable | |
24 | device (e.g. servers, printers, temp. sensors). | |
25 | ||
deee6fc1 JB |
26 | %description -l pl.UTF-8 |
27 | Ta wtyczka pobiera odpowiednie wartości SNMP z dowolnych urządzeń | |
28 | osiągalnych z serwera (np. serwerów, drukarek, czujników temperatury). | |
29 | ||
910018c1 | 30 | %prep |
3f3ed1b6 | 31 | %setup -q -n %{plugin} |
910018c1 ER |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | %{__make} install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
abf75cad ER |
41 | %post |
42 | # force css cache refresh | |
43 | if [ -f %{dokuconf}/local.php ]; then | |
44 | touch %{dokuconf}/local.php | |
45 | fi | |
46 | ||
910018c1 ER |
47 | %files |
48 | %defattr(644,root,root,755) | |
3f3ed1b6 | 49 | %{plugindir} |