From cd59145b30a6b9e3e4c130144a3360e631e64c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Thu, 13 Sep 2012 11:07:31 +0200 Subject: [PATCH] automate handling of release candidates --- uboot-tools.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/uboot-tools.spec b/uboot-tools.spec index 1ec1b82..d10a334 100644 --- a/uboot-tools.spec +++ b/uboot-tools.spec @@ -1,12 +1,14 @@ +#global candidate rc1 + Name: uboot-tools Version: 2012.07 -Release: 1%{?dist} +Release: 1%{?candidate:.%{candidate}}%{?dist} Summary: U-Boot utilities Group: Development/Tools License: GPLv2+ URL: http://www.denx.de/wiki/U-Boot -Source0: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}-rc1.tar.bz2 +Source0: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}%{?candidate:-%{candidate}}.tar.bz2 Patch0: 0001-panda-convert-to-uEnv.txt-bootscript.patch Patch1: u-boot-fat.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +55,7 @@ u-boot bootloader binaries for origenboard %endif %prep -%setup -q -n u-boot-%{version}-rc1 +%setup -q -n u-boot-%{version}%{?candidate:-%{candidate}} %patch0 -p1 %patch1 -p1 mkdir builds