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

Re: [CONFIGURATION] missing openSUSE_Leap_15.6 for OBS


Le 03/12/2024 à 06:35, munix9 a écrit :

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


Actually it's better to generate different files for different versions, because the list of packages that must be generated for one version can only be elaborated by 'gambas-package-config' outside of the configuration files.

But if I add conditional commands (@{if}@ @{else}@ @{endif}@), the same template file can be used to generate all openSUSE spec files. So we get the flexibility back.

Regards,

--
Benoît Minisini.


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>