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

Re: [CONFIGURATION] missing openSUSE_Leap_15.6 for OBS


Am 03.12.24 um 06:35 schrieb munix9:

The configuration for openSUSE_Leap_15.6 is still missing, although everything necessary is already available.

There are probably two ways to implement this at the moment:

1. to implement it laboriously and elaborately in 'gambas-package- config', or
2. use the flexibility of rpm-spec and get there faster.

I am in favor of variant 2.

What is necessary for this:
The template 'gambas3-openSUSE_Tumbleweed.spec' is already prepared for this, so what 'gambas-package-config' needs to do would be a
cp gambas3-openSUSE_Tumbleweed.spec gambas3-openSUSE_Leap_15.6.spec

I would rename the file 'gambas3.rpmlintrc' or 'gambas3- openSUSE_Tumbleweed.rpmlintrc' to 'gambas3-openSUSE.rpmlintrc' and change it accordingly in the spec.

This results in the directory .obs/
gambas3-openSUSE_Leap_15.6.spec
gambas3-openSUSE_Tumbleweed.spec
gambas3-openSUSE.rpmlintrc




I just realized that although it is possible to flexibly configure areas with rpm-spec depending on conditions (e.g. gb_mongodb, gb_qt5_webkit), 'gambas-package-config' does not take this into account in the '%files ...' sections.

This is bad and rather inflexible - in my opinion, too much logic is unnecessarily shifted to 'gambas-package-config'.

There has to be a way to add corresponding '%files ...' sections within the rpm-spec, similar to the packages, for example

%if %{with gb_mongodb}
@{files gb.mongodb
}@
%endif

Or is this already possible?

In any case, the build for openSUSE currently fails.



Follow-Ups:
Re: [CONFIGURATION] missing openSUSE_Leap_15.6 for OBSBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
[CONFIGURATION] missing openSUSE_Leap_15.6 for OBSmunix9 <munix9@xxxxxxxxxxxxxx>