From: Gavin Carr Date: Tue, 18 Dec 2007 10:39:48 +0000 (+0000) Subject: Updates to blosxom-plugins-medium.spec. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=10b8847c60b60b83a5ee7dca766616f9f61878b1;hp=d4413657ad09e936ce5e9f136425402ea9d5c0de;p=matthijs%2Fupstream%2Fblosxom-plugins.git Updates to blosxom-plugins-medium.spec. --- diff --git a/blosxom-plugins-medium.spec b/blosxom-plugins-medium.spec index 1eaa3c8..c52ffe4 100644 --- a/blosxom-plugins-medium.spec +++ b/blosxom-plugins-medium.spec @@ -25,8 +25,10 @@ blogging application. %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 @@ -36,7 +38,9 @@ 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 +# 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} @@ -44,6 +48,7 @@ rm -f %{buildroot}/usr/share/blosxom/plugins/*.spec %files %defattr(-,root,root) /usr/share/blosxom/plugins/* +/usr/share/blosxom/plugins/scripts/* %doc README %doc *.README %doc *.LICENCE