%define realname CalendarPlugin Name: foswiki-plugin-calendar Version: 0 Release: 0.2.20090309%{?dist} Summary: Foswiki calendar plugin Group: Applications/Internet License: GPLv2+ URL: http://foswiki.org/Extensions/%{realname} Source0: http://foswiki.org/pub/Extensions/%{realname}/%{realname}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildARch: noarch Requires: foswiki Requires: perl(HTML::CalendarMonthSimple) %description The CalendarPlugin handles the tag %%CALENDAR%% that inserts a monthly calendar in the page. Multiple topics can be specified as the source of the events, and these can be in any web. The calendar marks dates corresponding to the events. %prep %setup -q -c %{name}-%{version} %build ## Nothing to build %install rm -rf $RPM_BUILD_ROOT # Shared datas mkdir -p $RPM_BUILD_ROOT%{_datadir}/foswiki cp -a lib $RPM_BUILD_ROOT%{_datadir}/foswiki # User datas mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/foswiki cp -a data pub $RPM_BUILD_ROOT%{_localstatedir}/lib/foswiki %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_datadir}/foswiki/lib/Foswiki/Plugins/*.pm %{_localstatedir}/lib/foswiki/data/System/*.txt %{_localstatedir}/lib/foswiki/pub/System/%{realname}/ %changelog * Wed Apr 01 2009 Xavier Bachelot 0-0.2.20090309 - Add Requires: perl(HTML::CalendarMonthSimple). * Wed Apr 01 2009 Xavier Bachelot 0-0.1.20090309 - Initial build.