Re: [PATCH 3/3] Add %{?dist} to the release number in the spec file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/29/2009 04:57 PM, David Cantrell wrote:
> We never change the release number when making a release from git, but
> it would be useful to start having the dist tag in the release field so
> when people report bugs we can easily identify the product they are
> using.

Sure.

> ---
>  Makefile      |    2 +-
>  anaconda.spec |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 3db2347..332f453 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -20,7 +20,7 @@
>  
>  include Makefile.inc
>  VERSION := $(shell awk '/Version:/ { print $$2 }' anaconda.spec)
> -RELEASE := $(shell awk '/Release:/ { print $$2 }' anaconda.spec)
> +RELEASE := $(shell awk '/Release:/ { split($$2, r, "%"); print r[1] }' anaconda.spec)
>  CVSROOT ?= ${CVSROOT:-$(shell cat CVS/Root 2>/dev/null)}
>  
>  SUBDIRS = isys loader po booty \
> diff --git a/anaconda.spec b/anaconda.spec
> index 21e3401..e884560 100644
> --- a/anaconda.spec
> +++ b/anaconda.spec
> @@ -3,7 +3,7 @@
>  Summary: Graphical system installer
>  Name:    anaconda
>  Version: 11.5.0.48
> -Release: 1
> +Release: 1%{?dist}
>  License: GPLv2+
>  Group:   Applications/System
>  URL:     http://fedoraproject.org/wiki/Anaconda


-- 
        Peter

What we need is either less corruption, or more chances to
participate in it.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux