Mailinglist Archive: opensuse-buildservice (95 mails)

< Previous Next >
Re: [opensuse-buildservice] %dist rpm macro for Fedora 31 resolves to .fc30
On Wed, Jan 15, 2020 at 02:30:45AM -0500, Neal Gompa wrote:
On Tue, Jan 14, 2020 at 5:54 PM Fritz Elfert <fritz@xxxxxxxxxxxxxxx> wrote:

Subject says it all. Should resolve to .fc31


It's the result of a quirk with how OBS is set up for creating Fedora
buildroots. It uses the generic-release package instead of the
fedora-release package. Unfortunately, during the Fedora 31 release
development, bumping generic-release from 30 to 31 was missed. It was
fixed post-GA, but that doesn't help in the default case.

If you want the DistTag (%dist macro) to be the correct value without
pulling in updates, you can do the following:

%if 0%{?fedora} == 31
Substitute: generic-release fedora-release
%endif

We can also fix the macro in the project config of Fedora:31.

(I also don't know why the config uses generic-release instead of
fedora-release.)

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >