]>
Commit | Line | Data |
---|---|---|
70700432 ER |
1 | %define plugin password |
2 | Summary: DokuWiki plugin to hide passwords from plain view | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 20070926 | |
5 | Release: 0.1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://rolandeckert.com/_media/projects/plugin-password.tgz | |
9 | # Source0-md5: cbbf05d46aced4b9d8586514ef367c64 | |
10 | URL: http://www.dokuwiki.org/plugin:password | |
11 | BuildRequires: rpmbuild(macros) >= 1.520 | |
12 | Requires: dokuwiki >= 20060309 | |
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 | |
21 | This password syntax plugin screens text from view. It may be used for | |
22 | storing clear-text passwords which otherwise would be stored fully | |
23 | visible. Only users with write access to the page can view the wiki | |
24 | source. This may be just enough security for non-important passwords | |
25 | or group access in an internal wiki. | |
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 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %dir %{plugindir} | |
48 | %{plugindir}/*.php |