packages: dokuwiki-plugin-toc/dokuwiki-plugin-toc.spec (NEW) - new
glen
glen at pld-linux.org
Wed Oct 7 13:56:38 CEST 2009
Author: glen Date: Wed Oct 7 11:56:38 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/dokuwiki-plugin-toc:
dokuwiki-plugin-toc.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/dokuwiki-plugin-toc/dokuwiki-plugin-toc.spec
diff -u /dev/null packages/dokuwiki-plugin-toc/dokuwiki-plugin-toc.spec:1.1
--- /dev/null Wed Oct 7 13:56:38 2009
+++ packages/dokuwiki-plugin-toc/dokuwiki-plugin-toc.spec Wed Oct 7 13:56:32 2009
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+%define plugin toc
+Summary: DokuWiki TOC Action plugin
+Summary(pl.UTF-8): Wtyczka TOC Actiona dla DokuWiki
+Name: dokuwiki-plugin-%{plugin}
+Version: 20090413
+Release: 1
+License: GPL v2
+Group: Applications/WWW
+Source0: http://www.nung.edu.ua/dokuwiki/toc.tgz
+# Source0-md5: cd60c970e176372673ca401dde4ec02f
+URL: http://wiki.splitbrain.org/plugin:toc
+BuildRequires: rpmbuild(macros) >= 1.520
+Requires: dokuwiki >= 20061106
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define dokuconf /etc/webapps/dokuwiki
+%define dokudir /usr/share/dokuwiki
+%define plugindir %{dokudir}/lib/plugins/%{plugin}
+
+%description
+Dokuwiki pluging which allows to move TOC to the specified place in the page content.
+
+%prep
+%setup -q -n %{plugin}
+version=$(awk -F"'" '/date/{print $4}' action.php)
+if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
+ : %%{version} mismatch
+ exit 1
+fi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
+rm -f $RPM_BUILD_ROOT%{plugindir}/{CREDITS,changelog}
+rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+# force css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+ touch %{dokuconf}/local.php
+fi
+
+%files
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/*.php
+%{plugindir}/*.css
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/10/07 11:56:32 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list