]> git.pld-linux.org Git - packages/dokuwiki-plugin-icalevents.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Dec 2010 20:21:49 +0000 (20:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dformat.patch -> 1.1
    dokuwiki-plugin-icalevents.spec -> 1.1

dformat.patch [new file with mode: 0644]
dokuwiki-plugin-icalevents.spec [new file with mode: 0644]

diff --git a/dformat.patch b/dformat.patch
new file mode 100644 (file)
index 0000000..b618559
--- /dev/null
@@ -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
diff --git a/dokuwiki-plugin-icalevents.spec b/dokuwiki-plugin-icalevents.spec
new file mode 100644 (file)
index 0000000..ef0ffcb
--- /dev/null
@@ -0,0 +1,59 @@
+%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
This page took 0.077153 seconds and 4 git commands to generate.