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