packaging: use opensuse_bs macro
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 5 Aug 2013 07:11:22 +0000 (10:11 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 6 Aug 2013 08:24:14 +0000 (11:24 +0300)
The <CI_CNT>.<B_CNT> trick is OBS-specific, so wrap it with the 'opensuse_bs'
macro.

Change-Id: I817757ffdacddc32077b2876185220e880655ad7
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
packaging/bmap-tools.spec

index d0a667d449202b2a8ca00cef43b0b1fb838b473b..c75c14f7503d406198638391a7db3b6d5f74025f 100644 (file)
@@ -5,7 +5,13 @@
 Name:       bmap-tools
 Summary:    Bmap Tools
 Version:    2.4
-Release:    %{rc_str}.<CI_CNT>.<B_CNT>
+
+%if 0%{?opensuse_bs}
+Release: %{rc_str}.<CI_CNT>.<B_CNT>
+%else
+Release: %{rc_str}.0.0
+%endif
+
 Group:      Development/Tools/Other
 License:    GPL-2.0
 BuildArch:  noarch