[packages/dokuwiki-plugin-tablecalc] up to 2017-02-09
glen
glen at pld-linux.org
Mon Aug 14 11:40:08 CEST 2017
commit 2267907cafd9d99754b5fa35e96c42bc81916199
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 14 12:39:54 2017 +0300
up to 2017-02-09
dokuwiki-plugin-tablecalc.spec | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/dokuwiki-plugin-tablecalc.spec b/dokuwiki-plugin-tablecalc.spec
index d19465e..a56d4d2 100644
--- a/dokuwiki-plugin-tablecalc.spec
+++ b/dokuwiki-plugin-tablecalc.spec
@@ -1,17 +1,22 @@
+%define subver 2017-02-09
+%define ver %(echo %{subver} | tr -d -)
%define plugin tablecalc
+%define php_min_version 5.3.0
+%include /usr/lib/rpm/macros.php
Summary: DokuWiki tablecalc plugin
Summary(pl.UTF-8): Wtyczka tablecalc dla DokuWiki
Name: dokuwiki-plugin-%{plugin}
-Version: 20100413
+Version: %{ver}
Release: 1
License: GPL v2
Group: Applications/WWW
-Source0: http://narezka.ru/cfd/msgdb/740/tablecalc.zip
-# Source0-md5: fee18e13077ca5bba28165e4e4e68b8e
-URL: http://wiki.splitbrain.org/plugin:tablecalc
+Source0: https://narezka.org/cfd/msgdb/740/tablecalc.zip
+# Source0-md5: 6a68227688486e83b8b7a9dd573f4a87
+URL: https://www.dokuwiki.org/plugin:tablecalc
BuildRequires: rpmbuild(macros) >= 1.520
BuildRequires: unzip
-Requires: dokuwiki >= 20061106
+Requires: dokuwiki >= 20131208
+Requires: php(core) >= %{php_min_version}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -26,6 +31,9 @@ Adds ability to use Excel-style formulas in tables.
%setup -qc
mv %{plugin}/* .
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%build
# 13-04-10
version=$(awk -F"'" '/date/{split($4, a, "-"); printf("%04d-%02d-%02d\n", 2000 + a[3], a[2], a[1])}' syntax.php)
if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
@@ -33,8 +41,6 @@ if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
exit 1
fi
-find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{plugindir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-tablecalc.git/commitdiff/2267907cafd9d99754b5fa35e96c42bc81916199
More information about the pld-cvs-commit
mailing list