2 %define php_min_version 5.0.0
3 %include /usr/lib/rpm/macros.php
4 Summary: DokuWiki vCard/hCard plugin
5 Name: dokuwiki-plugin-%{plugin}
9 Group: Applications/WWW
10 Source0: http://tomas.valenta.cz/dokuwiki/vcard-plugin.zip
11 # Source0-md5: a0d6543e1317debfb3b03bb9ffc7a603
12 URL: http://www.dokuwiki.org/plugin:vcard
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}
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}
27 %define _noautopear pear
29 # exclude optional php dependencies
30 %define _noautophp php-someext
32 # put it together for rpmbuild
33 %define _noautoreq %{?_noautophp} %{?_noautopear}
36 This plugin lets you create vCard files on the fly in your wiki, which
37 other users can download and add to their addressbook. With the folded
38 plugin installed, you can unfold information about the person right in
45 version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php)
46 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
47 : %%{version} mismatch
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{plugindir}
54 cp -a . $RPM_BUILD_ROOT%{plugindir}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)