1 %define plugin bureaucracy
2 %define php_min_version 5.1.2
3 %include /usr/lib/rpm/macros.php
4 Summary: Easily create HTML forms and collect the data via email or use it to create pages
5 Summary(pl.UTF-8): Wtyczka bureaucracy dla DokuWiki
6 Name: dokuwiki-plugin-%{plugin}
10 Group: Applications/WWW
11 Source0: https://github.com/splitbrain/dokuwiki-plugin-%{plugin}/archive/ec2ff42/%{plugin}-%{version}.tar.gz
12 # Source0-md5: e0a2b19b9daafd3488bd3644db36b78b
13 URL: https://www.dokuwiki.org/plugin:bureaucracy
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.520
16 Requires: dokuwiki >= 20131208
17 Requires: php(core) >= %{php_min_version}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define dokuconf /etc/webapps/dokuwiki
24 %define dokudir /usr/share/dokuwiki
25 %define plugindir %{dokudir}/lib/plugins/%{plugin}
26 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
29 The bureaucracy plugin allows you to create a HTML form right within
32 Input format validation is automatically handled by the plugin and
33 requires no coding. User input can be emailed to a preconfigured
34 address or used to create new pages using a template.
43 version=$(awk '/^date/{print $2}' plugin.info.txt)
44 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
45 : %%{version} mismatch
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{plugindir}
52 cp -a . $RPM_BUILD_ROOT%{plugindir}
53 %{__rm} $RPM_BUILD_ROOT%{plugindir}/README
55 %find_lang %{name}.lang
58 rm -rf $RPM_BUILD_ROOT
61 # force js/css cache refresh
62 if [ -f %{dokuconf}/local.php ]; then
63 touch %{dokuconf}/local.php
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)