4 %define php_min_version 5.0.0
5 %include /usr/lib/rpm/macros.php
6 Summary: Export DokuWiki content to PDF
7 Name: dokuwiki-plugin-%{plugin}
11 Group: Applications/WWW
12 Source0: http://github.com/splitbrain/dokuwiki-plugin-%{plugin}/tarball/master#/%{plugin}-%{version}.tgz
13 # Source0-md5: 9a95f566ba0553e488f27ea58552b0f3
14 URL: http://www.dokuwiki.org/plugin:dw2pdf
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.520
17 Requires: dokuwiki >= 20101107
18 Requires: php-common >= 4:%{php_min_version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define dokuconf /etc/webapps/dokuwiki
23 %define dokudir /usr/share/dokuwiki
24 %define plugindir %{dokudir}/lib/plugins/%{plugin}
25 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
28 %define _noautopear pear
30 # put it together for rpmbuild
31 %define _noautoreq %{?_noautophp} %{?_noautopear}
34 The goal of this plugin was to provide a simple, ready to go PDF
35 converter that almost faithfully replicates the screen view of your
36 wiki pages (i.e. doesn't convert them to a print-document format like
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}
54 %find_lang %{name}.lang
57 rm -rf $RPM_BUILD_ROOT
60 # force js/css cache refresh
61 if [ -f %{dokuconf}/local.php ]; then
62 touch %{dokuconf}/local.php
65 %files -f %{name}.lang
66 %defattr(644,root,root,755)