2 %define php_min_version 5.0.0
3 Summary: DokuWiki doodle plugin: Easy scheduling
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://public.doogie.de/projects/dokuwiki/doodle-latest.tar.gz
10 # Source0-md5: af99dac9cc7249d5130b420268f7c03e
11 URL: http://www.dokuwiki.org/plugin:doodle2
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.520
15 Requires: dokuwiki >= 20061106
16 Requires: php(core) >= %{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
29 %define _noautoreq %{?_noautophp} %{?_noautopear}
32 With this plugin you can offer your visitors a poll, where each user
33 can vote for one (or more) choices. This is a unification of the
34 doodle, vote, and userpoll plugins.
40 version=$(awk '/^date/{print $2}' plugin.info.txt)
41 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
42 : %%{version} mismatch
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{plugindir}
49 cp -a . $RPM_BUILD_ROOT%{plugindir}
50 %{__rm} $RPM_BUILD_ROOT%{plugindir}/VERSION
52 %find_lang %{name}.lang
55 rm -rf $RPM_BUILD_ROOT
57 # use this post section if you package .css or .js files
59 # force js/css cache refresh
60 if [ -f %{dokuconf}/local.php ]; then
61 touch %{dokuconf}/local.php
64 %files -f %{name}.lang
65 %defattr(644,root,root,755)