packages: dokuwiki-plugin-html2pdf/dokuwiki-plugin-html2pdf.spec (NEW) - in...

glen glen at pld-linux.org
Fri Aug 28 18:13:50 CEST 2009


Author: glen                         Date: Fri Aug 28 16:13:50 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, even produces something, but is too huge and exports wrong page

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

---- Diffs:

================================================================
Index: packages/dokuwiki-plugin-html2pdf/dokuwiki-plugin-html2pdf.spec
diff -u /dev/null packages/dokuwiki-plugin-html2pdf/dokuwiki-plugin-html2pdf.spec:1.1
--- /dev/null	Fri Aug 28 18:13:51 2009
+++ packages/dokuwiki-plugin-html2pdf/dokuwiki-plugin-html2pdf.spec	Fri Aug 28 18:13:45 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+# TODO
+# - use more system pkgs
+%define		plugin		html2pdf
+Summary:	DokuWiki plugin to export HTML to PDF
+Summary(pl.UTF-8):	Wtyczka html2pdf dla DokuWiki
+Name:		dokuwiki-plugin-%{plugin}
+Version:	20090215
+Release:	0.1
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://snorriheim.dnsdojo.com/dokuPlugins/html2pdf.tar.gz
+# Source0-md5:	89e8a250bbb14f0ce9d649c286a415b4
+URL:		http://wiki.splitbrain.org/plugin:html2pdf
+BuildRequires:	rpmbuild(macros) >= 1.520
+Requires:	dokuwiki
+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 plugin to export HTML to PDF.
+
+%description -l pl.UTF-8
+Wtyczka dla DokuWiki
+
+%prep
+%setup -q -n %{plugin}
+%{__sed} -i -e 's,\r$,,' info.txt
+version=$(awk '/date/{print $2}' info.txt)
+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 action.php conf $RPM_BUILD_ROOT%{plugindir}
+cp -a html2ps $RPM_BUILD_ROOT%{plugindir}
+
+%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}/conf
+%{plugindir}/html2ps
+
+%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/08/28 16:13:45  glen
+- initial, even produces something, but is too huge and exports wrong page
================================================================


More information about the pld-cvs-commit mailing list