From 65c44ad7cce4a1652e00e092708e32eeae4e9b1e Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Tue, 18 Sep 2007 12:57:40 +0000 Subject: [PATCH] Add Makefile; update make-dist; add blosxom-plugins-medium.spec. --- .cvsignore | 4 ++- Makefile | 7 ++++ README | 2 -- blosxom-plugins-medium.spec | 57 ++++++++++++++++++++++++++++++ make-dist | 69 ++++++++++++++++++++++++------------- 5 files changed, 112 insertions(+), 27 deletions(-) create mode 100644 Makefile create mode 100644 blosxom-plugins-medium.spec diff --git a/.cvsignore b/.cvsignore index 772ecb1..f7b7d38 100644 --- a/.cvsignore +++ b/.cvsignore @@ -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 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 8b97c11..eccb501 100644 --- 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 index 0000000..09c02b0 --- /dev/null +++ b/blosxom-plugins-medium.spec @@ -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 2.0.0-1 +- Rename to blosxom-plugins-medium. +- Move content to /usr/share/blosxom/plugins. + +* Fri Aug 24 2007 Gavin Carr 2.0.0-0 +- Initial spec file. + diff --git a/make-dist b/make-dist index a7f51a1..bffc692 100755 --- 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 -- 2.30.2