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

glen glen at pld-linux.org
Wed Nov 3 00:19:18 CET 2010


Author: glen                         Date: Tue Nov  2 23:19:18 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/dokuwiki-plugin-pagequery/dokuwiki-plugin-pagequery.spec
diff -u /dev/null packages/dokuwiki-plugin-pagequery/dokuwiki-plugin-pagequery.spec:1.1
--- /dev/null	Wed Nov  3 00:19:18 2010
+++ packages/dokuwiki-plugin-pagequery/dokuwiki-plugin-pagequery.spec	Wed Nov  3 00:19:13 2010
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+%define		plugin		pagequery
+%define		php_min_version 5.0.0
+%include	/usr/lib/rpm/macros.php
+Summary:	DokuWiki pagequery plugin
+Name:		dokuwiki-plugin-%{plugin}
+Version:	20100505
+Release:	1
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://github.com/downloads/MrBertie/pagequery/%{plugin}.zip
+# Source0-md5:	06f35ccab9739e3a5efa27616fee1723
+URL:		http://www.dokuwiki.org/plugin:pagequery
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.520
+Requires:	dokuwiki >= 20091225
+Requires:	php-common >= 4:%{php_min_version}
+Requires:	php-date
+Requires:	php-pcre
+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 	%{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
+
+%description
+An all-in-one multipurpose navigation plugin to search for and list
+pages; by full-text or page name; neatly grouped results, optionally
+in columns, with preview snippet.
+
+%prep
+%setup -qc
+mv %{plugin}/* .
+
+version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.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 $RPM_BUILD_ROOT%{plugindir}/{readme.txt,changes.txt}
+
+# find locales
+%find_lang %{name}.lang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+# force js/css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+	touch %{dokuconf}/local.php
+fi
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc changes.txt readme.txt
+%dir %{plugindir}
+%{plugindir}/*.php
+%{plugindir}/*.css
+%{plugindir}/images
+
+%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  2010/11/02 23:19:13  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list