%define realname BugzillaLinkPlugin Name: foswiki-plugin-bugzillalink Version: 1.3 Release: 1%{?dist} Summary: Display links to bugzilla bugs Group: Applications/Internet License: GPLv2+ URL: http://twiki.org/cgi-bin/view/Plugins/%{realname} Source0: http://twiki.org/p/pub/Plugins/%{realname}/%{realname}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildARch: noarch Requires: foswiki %description Instead of writing [[yourBugZillaURL/path/shob_bug.cgi?id=123][Bug #123]] for every bug this plugin provides a convenient way to to this. Now, you only have to write %BUG{123}% to get the same result. This plugin does nothing else than giving your a shorthand for the above plus it places a nice bug-icon next to the bug. %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/TWiki/Plugins/*.pm %{_localstatedir}/lib/foswiki/data/TWiki/*.txt %{_localstatedir}/lib/foswiki/pub/TWiki/%{realname}/ %changelog * Thu Jun 04 2009 Xavier Bachelot 1.3-1 - Initial build.