Add Makefile; update make-dist; add blosxom-plugins-medium.spec.
authorGavin Carr <gonzai@users.sourceforge.net>
Tue, 18 Sep 2007 12:57:40 +0000 (12:57 +0000)
committerGavin Carr <gonzai@users.sourceforge.net>
Tue, 18 Sep 2007 12:57:40 +0000 (12:57 +0000)
.cvsignore
Makefile [new file with mode: 0644]
README
blosxom-plugins-medium.spec [new file with mode: 0644]
make-dist

index 772ecb14ecf85ea3fa9e76f3ed31676edb93bb29..f7b7d382c6819c9d327ede6855f4bf51c00ae803 100644 (file)
@@ -1,4 +1,6 @@
 .svn
 .bzr
 .bzrignore
-blosxom-plugins*
+blosxom-plugins-small*
+blosxom-plugins-medium*
+blosxom-plugins-large*
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..6ba2ff6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+
+dist:
+       ./make-dist
+
+clean:
+       rm -f blosxom-plugins-*.tar.gz blosxom-plugins-*.zip
+
diff --git a/README b/README
index 8b97c11911b739be047affecce8150dc2ae9f544..eccb5012793fb135a02bf51bc937cd9dce907302 100644 (file)
--- a/README
+++ b/README
@@ -3,8 +3,6 @@ you just copy it into the directory you have configured as your
 $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.
 
-
diff --git a/blosxom-plugins-medium.spec b/blosxom-plugins-medium.spec
new file mode 100644 (file)
index 0000000..09c02b0
--- /dev/null
@@ -0,0 +1,57 @@
+
+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.
+
index a7f51a1ec60fa262c62cb1a4aec0e970b6183a01..bffc6922975b3c4e1441588fa6d111b257700b51 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -8,29 +8,50 @@ cd `dirname $0`
 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