packages: dokuwiki-plugin-data/dokuwiki-plugin-data.spec (NEW) - new

glen glen at pld-linux.org
Mon Jun 15 17:32:21 CEST 2009


Author: glen                         Date: Mon Jun 15 15:32:21 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/dokuwiki-plugin-data:
   dokuwiki-plugin-data.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/dokuwiki-plugin-data/dokuwiki-plugin-data.spec
diff -u /dev/null packages/dokuwiki-plugin-data/dokuwiki-plugin-data.spec:1.1
--- /dev/null	Mon Jun 15 17:32:21 2009
+++ packages/dokuwiki-plugin-data/dokuwiki-plugin-data.spec	Mon Jun 15 17:32:15 2009
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+%define		plugin		data
+Summary:	DokuWiki Structured Data Plugin
+Name:		dokuwiki-plugin-%{plugin}
+Version:	20090213
+Release:	0.1
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://dev.splitbrain.org/download/snapshots/data-plugin-latest.tgz
+# Source0-md5:	6a3ee212496a60a343b62246e8002957
+URL:		http://wiki.splitbrain.org/plugin:data
+BuildRequires:	rpmbuild(macros) >= 1.520
+Requires:	dokuwiki >= 20071221
+Requires:	php(sqlite)
+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}
+%define		find_lang 	%{_rpmhome}/dokuwiki-find-lang.sh %{buildroot}
+
+%description
+This plugin allows you to add structured data to any DokuWiki page.
+Think about this data as additional named attributes. Those attributes
+can then be queried and aggregated. The plugin is similar to what was
+done here for the repository plugin but its internals are very
+different to the repository plugin.
+
+%prep
+%setup -q -n %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
+
+# find locales
+%find_lang %{name}.lang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+# force css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+	touch %{dokuconf}/local.php
+fi
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/syntax
+%{plugindir}/*.php
+%{plugindir}/*.css
+%{plugindir}/*.sql
+
+%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/06/15 15:32:15  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list