From c7df5b4db82f8e27e807551ab651c64cfc52f4b9 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Wed, 24 May 2006 18:11:42 +0000 Subject: - new mkrel behavior --- macros.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros.in b/macros.in index 8b80932..3816097 100644 --- a/macros.in +++ b/macros.in @@ -214,9 +214,9 @@ # (user may copy the following line in specfile) %mdkversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandriva-release) -%distsuffix mdk +%distsuffix mdv -%mkrel(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk} +%mkrel(c:) %{-c: 0.%{-c*}.}%{1}%{?distsuffix:%distsuffix}%{?!distsuffix:mdv}%{?mandriva_release:%mandriva_release} %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ -- cgit v1.2.1