[packages/trac-plugin-eventum: 2/13] - release 1

glen glen at pld-linux.org
Sat Sep 8 14:16:28 CEST 2012


commit 942ec814c6b45533c6373a2fdeb47693ba215939
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Sep 17 12:37:01 2008 +0000

    - release 1
    
    Changed files:
        trac-plugin-eventum.spec -> 1.2

 trac-plugin-eventum.spec | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/trac-plugin-eventum.spec b/trac-plugin-eventum.spec
index 7da97ed..db5197b 100644
--- a/trac-plugin-eventum.spec
+++ b/trac-plugin-eventum.spec
@@ -1,7 +1,7 @@
 Summary:	Plugin for linking Eventum issues in Trac
 Name:		trac-plugin-eventum
 Version:	0.2
-Release:	0.53
+Release:	1
 License:	BSD-like
 Group:		Applications/WWW
 BuildRequires:	cvs
@@ -26,6 +26,22 @@ cvs -d %{_cvsroot} co %{?_cvstag:-r %{_cvstag}} -d %{name}-%{version} -P %{_cvsm
 cd -
 
 %build
+# 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 | egrep -c "$tag[[:space:]]") != 0 ]; then
+	: "Tag $tag already exists"
+	exit 1
+fi
+cvs tag $tag %{name}.spec
+cd -
+cvs tag $tag
+%endif
+
 %{__python} setup.py build
 %{__python} setup.py egg_info
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/trac-plugin-eventum.git/commitdiff/0ae285776f1e229b918f4a99c3a11340b525369d



More information about the pld-cvs-commit mailing list