- new
[packages/dokuwiki-plugin-vcard.git] / dokuwiki-plugin-vcard.spec
CommitLineData
7760d38b
ER
1%define plugin vcard
2%define php_min_version 5.0.0
3%include /usr/lib/rpm/macros.php
4Summary: DokuWiki vCard/hCard plugin
5Name: dokuwiki-plugin-%{plugin}
6Version: 20070516
7Release: 1
8License: GPL v2
9Group: Applications/WWW
10Source0: http://tomas.valenta.cz/dokuwiki/vcard-plugin.zip
11# Source0-md5: a0d6543e1317debfb3b03bb9ffc7a603
12URL: http://www.dokuwiki.org/plugin:vcard
13BuildRequires: rpm-php-pearprov >= 4.4.2-11
14BuildRequires: rpmbuild(macros) >= 1.520
15Requires: dokuwiki >= 20061106
16Requires: php-common >= 4:%{php_min_version}
17Requires: php-date
18Requires: php-pcre
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define dokuconf /etc/webapps/dokuwiki
23%define dokudir /usr/share/dokuwiki
24%define plugindir %{dokudir}/lib/plugins/%{plugin}
25
26# no pear deps
27%define _noautopear pear
28
29# exclude optional php dependencies
30%define _noautophp php-someext
31
32# put it together for rpmbuild
33%define _noautoreq %{?_noautophp} %{?_noautopear}
34
35%description
36This plugin lets you create vCard files on the fly in your wiki, which
37other users can download and add to their addressbook. With the folded
38plugin installed, you can unfold information about the person right in
39your wiki.
40
41%prep
42%setup -qc
43mv %{plugin}/* .
44
45version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php)
46if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
47 : %%{version} mismatch
48 exit 1
49fi
50
51%install
52rm -rf $RPM_BUILD_ROOT
53install -d $RPM_BUILD_ROOT%{plugindir}
54cp -a . $RPM_BUILD_ROOT%{plugindir}
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%dir %{plugindir}
62%{plugindir}/*.php
63%{plugindir}/*.gif
This page took 0.054151 seconds and 4 git commands to generate.