packages: dokuwiki-plugin-icalevents/dformat.patch (NEW), dokuwiki-plugin-i...

glen glen at pld-linux.org
Sun Dec 5 21:21:55 CET 2010


Author: glen                         Date: Sun Dec  5 20:21:55 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/dokuwiki-plugin-icalevents:
   dformat.patch (NONE -> 1.1)  (NEW), dokuwiki-plugin-icalevents.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/dokuwiki-plugin-icalevents/dformat.patch
diff -u /dev/null packages/dokuwiki-plugin-icalevents/dformat.patch:1.1
--- /dev/null	Sun Dec  5 21:21:55 2010
+++ packages/dokuwiki-plugin-icalevents/dformat.patch	Sun Dec  5 21:21:49 2010
@@ -0,0 +1,16 @@
+use dformat from dokuwiki by default
+
+--- icalevents/conf/default.php~	2010-04-26 15:48:52.000000000 +0300
++++ icalevents/conf/default.php	2010-12-05 22:15:22.486210482 +0200
+@@ -3,9 +3,7 @@
+ 
+ # Date format that is used to display the from and to values
+ # If you leave this empty '', then the default dformat from /conf/dokuwiki.php will be used.
+-$conf['dformat'] = '%d.%m.%Y';
++$conf['dformat'] = '';
+ 
+ # should the end dates for each event be shown?
+ $conf['showEndDates'] = 0;
+-
+-?>
+\ No newline at end of file

================================================================
Index: packages/dokuwiki-plugin-icalevents/dokuwiki-plugin-icalevents.spec
diff -u /dev/null packages/dokuwiki-plugin-icalevents/dokuwiki-plugin-icalevents.spec:1.1
--- /dev/null	Sun Dec  5 21:21:55 2010
+++ packages/dokuwiki-plugin-icalevents/dokuwiki-plugin-icalevents.spec	Sun Dec  5 21:21:49 2010
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define		plugin	icalevents
+%define		php_min_version 5.0.0
+%include	/usr/lib/rpm/macros.php
+Summary:	Parses an iCal calendar .ics file and renders it as an HTML table
+Name:		dokuwiki-plugin-%{plugin}
+Version:	20100501
+Release:	0.4
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://public.doogie.de/projects/dokuwiki/plugin_iCalEvents_2.0.zip
+# Source0-md5:	abef6798132ba03b74afd72ea62678ca
+URL:		http://www.dokuwiki.org/plugin:icalevents
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+Patch0:		dformat.patch
+BuildRequires:	rpmbuild(macros) >= 1.553
+Requires:	dokuwiki >= 20080505
+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
+Many calendars can export their entries in the iCalendar (RFC 2445)
+format. This plugin can read such an *.ics file from an URL, parse it
+and display upcoming events as an HTML table.
+
+%prep
+%setup -qc
+mv iCalEvents/* .
+%undos -f php
+%patch0 -p1
+
+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}
+
+%find_lang %{name}.lang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/*.php
+%{plugindir}/conf
+
+%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/12/05 20:21:49  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list