.svn
.bzr
.bzrignore
-blosxom-plugins*
+blosxom-plugins-small*
+blosxom-plugins-medium*
+blosxom-plugins-large*
--- /dev/null
+
+dist:
+ ./make-dist
+
+clean:
+ rm -f blosxom-plugins-*.tar.gz blosxom-plugins-*.zip
+
$plugin_dir in blosxom.cgi. You should also check the top of the
plugin for a configuration section, and configure to taste.
-
Plugin authors: if you would like to have your plugins included
here, please send an email to blosxom-devel@lists.sourceforge.net.
-
--- /dev/null
+
+Name: blosxom-plugins-medium
+Summary: Plugins for blosxom, the lightweight blogging application
+Version: 2.0.0
+Release: 1
+Source0: http://downloads.sourceforge.net/blosxom/%{name}-%{version}.tar.gz
+License: MIT/GPL/Perl
+URL: http://blosxom.sourceforge.net
+Group: Applications/Internet
+Prefix: /usr/share/blosxom/plugins
+BuildRoot: %{_tmppath}/%{name}-%{version}
+BuildArch: noarch
+Conflicts: blosxom-plugins-large
+
+%description
+This package contains a set of plugins for blosxom, the lightweight
+blogging application.
+
+%prep
+%setup
+
+%build
+
+%install
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+
+mkdir -p %{buildroot}/usr/share/blosxom/plugins
+
+install -m0644 * %{buildroot}/usr/share/blosxom/plugins
+
+rm -f %{buildroot}/usr/share/blosxom/plugins/*README
+rm -f %{buildroot}/usr/share/blosxom/plugins/*LICEN?E
+rm -f %{buildroot}/usr/share/blosxom/plugins/*.spec
+
+#install activate_blosxom_ipc %{buildroot}/usr/share/blosxom/plugins
+
+%post
+#/usr/share/blosxom/plugins/activate_blosxom_ipc
+
+%clean
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+/usr/share/blosxom/plugins/*
+%doc README
+%doc *.README
+#%doc *.LICENCE
+
+%changelog
+* Tue Sep 18 2007 Gavin Carr <gavin@openfusion.com.au> 2.0.0-1
+- Rename to blosxom-plugins-medium.
+- Move content to /usr/share/blosxom/plugins.
+
+* Fri Aug 24 2007 Gavin Carr <gavin@openfusion.com.au> 2.0.0-0
+- Initial spec file.
+
NAME=blosxom-plugins
VERSION=`cat VERSION`
-test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
-mkdir $NAME-$VERSION
-
-find * \( -name $NAME-$VERSION -o -name CVS \) -prune -o -type f -exec cp -p {} $NAME-$VERSION \;
-
-# Prune unwanted files
-for i in make-dist README.cvs; do
- rm -f $NAME-$VERSION/$i
+for SIZE in large medium small; do
+ TARBALL="$NAME-$SIZE-$VERSION"
+ test -d $TARBALL && rm -rf $TARBALL
+ mkdir $TARBALL
+
+ # Small/Medium
+ if [ -f MANIFEST.$SIZE ]; then
+ for i in `cat MANIFEST.$SIZE`; do
+ if [ -f $i ]; then
+ cp -p $i $TARBALL
+ elif [ -f $NAME-large-$VERSION/$i ]; then
+ cp -p $NAME-large-$VERSION/$i $TARBALL
+ else
+ echo "Warning: cannot find plugin '$i' (MANIFEST.$SIZE)"
+ fi
+ done
+
+ # Large
+ else
+ # Copy everything
+ find * \( -name $TARBALL -o -name CVS \) -prune -o -type f -exec cp -p {} $TARBALL \;
+
+ # Prune unwanted files
+ for i in make-dist README.cvs blosxom-plugins-medium.spec; do
+ rm -f $TARBALL/$i
+ done
+ fi
+
+ # Create tarball
+ which tar >/dev/null 2>&1
+ if [ $? == 0 ]; then
+ echo "Creating $TARBALL.tar.gz"
+ tar -zcf $TARBALL.tar.gz $TARBALL
+ fi
+
+ # Create zip file
+ which zip >/dev/null 2>&1
+ if [ $? == 0 ]; then
+ echo "Creating $TARBALL.zip"
+ zip -q -r $TARBALL.zip $TARBALL
+ fi
done
-# Create tarball
-which tar >/dev/null 2>&1
-if [ $? == 0 ]; then
- echo "Creating $NAME-$VERSION.tar.gz"
- tar -zcf $NAME-$VERSION.tar.gz $NAME-$VERSION
-fi
-
-# Create zip file
-which zip >/dev/null 2>&1
-if [ $? == 0 ]; then
- echo "Creating $NAME-$VERSION.zip"
- zip -q -r $NAME-$VERSION.zip $NAME-$VERSION
-fi
-
-test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
-
+for SIZE in large medium small; do
+ TARBALL="$NAME-$SIZE-$VERSION"
+ test -d $TARBALL && rm -rf $TARBALL
+done