]>
Commit | Line | Data |
---|---|---|
e03c23b2 JK |
1 | %define plugin encryptedpasswords |
2 | Summary: DokuWiki Encrypted Passwords Plugin | |
3 | Summary(pl.UTF-8): Wtyczka szyfrowania haseł dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 20120706 | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://www.werbeagentur-willers.de/download/dokuwiki-plugins/encryptedpasswords.zip | |
10 | # Source0-md5: 049ab5cd52392ab32c4deb97d84c7cf5 | |
11 | URL: https://www.dokuwiki.org/plugin:encryptedpasswords | |
12 | Requires: dokuwiki >= 20110525 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define dokuconf /etc/webapps/dokuwiki | |
17 | %define dokudir /usr/share/dokuwiki | |
18 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
19 | ||
20 | %description | |
134afc42 JK |
21 | This plugin let you store 256 bit AES encrypted passwords in your |
22 | DokuWiki pages. The password can be decrypted by clicking them | |
23 | (Javascript must be enabled). | |
e03c23b2 JK |
24 | |
25 | %prep | |
26 | %setup -q -n %{plugin} | |
27 | version=$(cat version) | |
28 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
29 | : %%{version} mismatch | |
30 | exit 1 | |
31 | fi | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{plugindir} | |
36 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
37 | rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION} | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
43 | # force css cache refresh | |
44 | if [ -f %{dokuconf}/local.php ]; then | |
45 | touch %{dokuconf}/local.php | |
46 | fi | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc version | |
51 | %dir %{plugindir} | |
52 | %{plugindir}/*.php | |
53 | %{plugindir}/*.css | |
54 | %{plugindir}/*.js | |
55 | %{plugindir}/*.png | |
56 | %{plugindir}/version | |
57 | %dir %{plugindir}/lang | |
58 | %lang(en) %{plugindir}/lang/en | |
59 | %lang(de) %{plugindir}/lang/de |