From 242a2a012dbb3e53dd17470cf01c31cbf3f20af0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 9 Sep 2008 22:24:02 +0000 Subject: [PATCH] - update plugin to work with dokuwiki 20080505. issue 19410 Changed files: dokuwiki-plugin-eventum.spec -> 1.3 --- dokuwiki-plugin-eventum.spec | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/dokuwiki-plugin-eventum.spec b/dokuwiki-plugin-eventum.spec index c64d08e..c1cc0d3 100644 --- a/dokuwiki-plugin-eventum.spec +++ b/dokuwiki-plugin-eventum.spec @@ -2,11 +2,12 @@ Summary: DokuWiki Eventum Plugin Summary(pl.UTF-8): Wtyczka Include (dołączania) dla Eventum Name: dokuwiki-plugin-%{plugin} -Version: 20080303 -Release: 0.2 +Version: 20080910 +Release: 1 License: GPL v2 Group: Applications/WWW -Requires: dokuwiki >= 20070626 +URL: https://cvs.delfi.ee/dokuwiki/plugin/eventum/ +Requires: dokuwiki >= 20080505 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -17,7 +18,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _cvsmodule dokuwiki/plugin/eventum %description -Adds eventum link button to edit toolbar. +Adds Eventum link button to edit toolbar. %prep %setup -qTc @@ -25,6 +26,22 @@ cd .. cvs -d %{_cvsroot} co -d %{name}-%{version} %{_cvsmodule} cd - +# skip tagging if we checkouted from tag or have debug enabled +# also make make tag only if we have integer release +%if %{!?debug:1}%{?debug:0} && %{!?_cvstag:1}%{?_cvstag:0} && %([[ %{release} = *.* ]] && echo 0 || echo 1) +# do tagging by version +tag=%{name}-%(echo %{version} | tr . _)-%(echo %{release} | tr . _) + +cd %{_specdir} +if [ $(cvs status -v %{name}.spec | grep -c "$tag ") != 0 ]; then + : "Tag $tag already exists" + exit 1 +fi +cvs tag $tag %{name}.spec +cd - +cvs tag $tag +%endif + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{plugindir} -- 2.43.0