- new
[packages/dokuwiki-plugin-showlogin2.git] / dokuwiki-plugin-showlogin2.spec
1 %define         plugin          showlogin2
2 %define         php_min_version 5.0.0
3 %include        /usr/lib/rpm/macros.php
4 Summary:        Dokuwiki Action Plugin: Show Login-Page on "Access Denied"
5 Name:           dokuwiki-plugin-%{plugin}
6 Version:        20091017
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://www.tu-harburg.de/~psvkv/dokuwiki/showlogin2.tar.gz
11 # Source0-md5:  806c00de984b15e1aac9bee1c4f4c879
12 URL:            http://www.dokuwiki.org/plugin:showlogin2
13 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
14 BuildRequires:  rpmbuild(macros) >= 1.520
15 Requires:       dokuwiki >= 20061106
16 Requires:       php-common >= 4:%{php_min_version}
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dokuconf        /etc/webapps/dokuwiki
21 %define         dokudir         /usr/share/dokuwiki
22 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
23 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
24
25 %description
26 This plugin shows the login dialog if you try to access a page you do
27 not have rights for in case you are not logged in already.
28
29 %prep
30 %setup -qc
31 mv %{plugin}/* .
32
33 version=$(awk -F"'" '/date/&&/=>/{print $4}' action.php)
34 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
35         : %%{version} mismatch
36         exit 1
37 fi
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{plugindir}
42 cp -a . $RPM_BUILD_ROOT%{plugindir}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %dir %{plugindir}
50 %{plugindir}/*.php
This page took 0.181056 seconds and 3 git commands to generate.