1 %define plugin iCalEvents
2 %define php_min_version 5.0.0
3 %include /usr/lib/rpm/macros.php
4 Summary: Parses an iCal calendar .ics file and renders it as an HTML table
5 Name: dokuwiki-plugin-icalevents
9 Group: Applications/WWW
10 Source0: http://public.doogie.de/projects/dokuwiki/plugin_iCalEvents_2.0.zip
11 # Source0-md5: abef6798132ba03b74afd72ea62678ca
12 URL: http://www.dokuwiki.org/plugin:icalevents
14 Patch1: reset-error.patch
15 Patch2: allow-params.patch
16 Patch3: relative-dates.patch
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.553
19 Requires: dokuwiki >= 20080505
20 Requires: php-common >= 4:%{php_min_version}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define dokuconf /etc/webapps/dokuwiki
27 %define dokudir /usr/share/dokuwiki
28 %define plugindir %{dokudir}/lib/plugins/%{plugin}
29 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
32 Many calendars can export their entries in the iCalendar (RFC 2445)
33 format. This plugin can read such an *.ics file from an URL, parse it
34 and display upcoming events as an HTML table.
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}
56 %find_lang %{name}.lang
59 rm -rf $RPM_BUILD_ROOT
61 %files -f %{name}.lang
62 %defattr(644,root,root,755)