[packages/dokuwiki-plugin-comment] up to 20160426

glen glen at pld-linux.org
Sat Aug 12 17:33:07 CEST 2017


commit 8c29605bd4330247990e28372c8767d517f63509
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Aug 12 18:32:39 2017 +0300

    up to 20160426
    
    no git tag again
    https://github.com/dokufreaks/plugin-comment/commit/153b1e8c407759a31ecde983fae70fd927f62865

 dokuwiki-plugin-comment.spec | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/dokuwiki-plugin-comment.spec b/dokuwiki-plugin-comment.spec
index 77cd6e2..0616d45 100644
--- a/dokuwiki-plugin-comment.spec
+++ b/dokuwiki-plugin-comment.spec
@@ -1,18 +1,20 @@
+%define		subver	2016-04-26
+%define		ver		%(echo %{subver} | tr -d -)
 %define		plugin		comment
 %define		php_min_version 5.0.0
 %include	/usr/lib/rpm/macros.php
 Summary:	DokuWiki plugin to add Add comments/notes to your wiki source
 Name:		dokuwiki-plugin-%{plugin}
-Version:	20090206
-Release:	2
+Version:	%{ver}
+Release:	1
 License:	GPL v2
 Group:		Applications/WWW
-Source0:	https://github.com/dokufreaks/plugin-comment/tarball/2009-02-06/%{plugin}-%{version}.tgz
-# Source0-md5:	aded94aa800d880bf48a0f135ccc34a6
-URL:		http://www.dokuwiki.org/plugin:comment
+Source0:	https://github.com/dokufreaks/plugin-comment/archive/153b1e8c/%{plugin}-%{version}.tar.gz
+# Source0-md5:	59723717caa4becfa51a6c0f02f5387c
+URL:		https://www.dokuwiki.org/plugin:comment
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.520
-Requires:	dokuwiki >= 20061106
+Requires:	dokuwiki >= 20131208
 Requires:	php(core) >= %{php_min_version}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,8 +32,9 @@ the wiki page. The syntax is like C and PHP.
 %setup -qc
 mv *-%{plugin}-*/* .
 
-version=$(cat VERSION)
-if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
+%build
+version=$(awk '/^date/{print $2}' plugin.info.txt)
+if [ "$(echo "$version" | tr -d '\r-')" != %{version} ]; then
 	: %%{version} mismatch
 	exit 1
 fi
@@ -40,7 +43,7 @@ fi
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
-%{__rm} $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
+%{__rm} $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,3 +53,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README
 %dir %{plugindir}
 %{plugindir}/*.php
+%{plugindir}/*.txt
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-comment.git/commitdiff/8c29605bd4330247990e28372c8767d517f63509



More information about the pld-cvs-commit mailing list