[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Getting a dynamic Release number for a spec file.
- From: richard offer <roffer gmail com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Getting a dynamic Release number for a spec file.
- Date: Sun, 12 Feb 2006 11:42:46 -0800
Here's what I do.
I distinguish between "developer" builds and official builds using the
build number.
If someone uses the normal build procedures, a .build-number will
already be created for them (either containing an official build
number or a developer build number). Build numbers are controlled by
the build process, not by RPM.
If they are building outside of the normal procedures (ie just taken
the sources to another machione(, then the release number will be
based on the timestamp.
%define build_number %([ -e /build/.build-number ] && cat
/build/.build-number || echo `date +"%y%m%d.%H.%M"`)
Release: %{build_number}
richard.
--
-----------------------------------------------------------------------
richard offer @ gmail "Specialization is for insects"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]