Re: Getting a dynamic Release number for a spec file.

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

 



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"

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux