Name: blosxom-plugins-medium
Summary: Plugins for blosxom, the lightweight blogging application
-Version: 2.0.0
+Version: 2.0.0rc1
Release: 1
Source0: http://downloads.sourceforge.net/blosxom/%{name}-%{version}.tar.gz
License: MIT/GPL/Perl
Prefix: /usr/share/blosxom/plugins
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildArch: noarch
-Conflicts: blosxom-plugins-large
+Conflicts: blosxom-plugins-small, blosxom-plugins-large
+Provides: blosxom-plugins
%description
This package contains a set of plugins for blosxom, the lightweight
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/blosxom/plugins
+mkdir -p %{buildroot}/usr/share/blosxom/plugins/scripts
+install -m0755 scripts/* %{buildroot}/usr/share/blosxom/plugins/scripts
+rm -rf scripts
install -m0644 * %{buildroot}/usr/share/blosxom/plugins
rm -f %{buildroot}/usr/share/blosxom/plugins/*README
#install activate_blosxom_ipc %{buildroot}/usr/share/blosxom/plugins
%post
-#/usr/share/blosxom/plugins/activate_blosxom_ipc
+# Activate Blosxom::Include on plugins if installed
+perl -MBlosxom::Include -e1 2>/dev/null \
+ && /usr/share/blosxom/plugins/scripts/activate-blosxom-include
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
/usr/share/blosxom/plugins/*
+/usr/share/blosxom/plugins/scripts/*
%doc README
%doc *.README
-#%doc *.LICENCE
+%doc *.LICENCE
%changelog
* Tue Sep 18 2007 Gavin Carr <gavin@openfusion.com.au> 2.0.0-1