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

Re: [gambas-package-config] Automatic generation of OBS configuration


Le 01/12/2024 à 06:52, munix9 a écrit :
4) Very important question: would it be possible, with OBS, not to 
just make the difference between debian 11 and debian 12, but have 
different configuration files for each distribution version? For 
example, one '*.spec' file for each Fedora version, one 
'debian.tar.gz' for each Debian version, one for each Ubuntu version. 
And, of course, make packages for all them (not -every- system version 
of course, but the last big ones).
Theoretically yes, it's just a question of effort.

For each repository that is configured in the project, a separate build description can be created - for Debian/Ubuntu then additionally the *.tar.gz - with Arch, however, this makes little sense, I think.
E.g.:
gambas3-15.6.spec
gambas3-16.0.spec
gambas3-openSUSE_Tumbleweed.spec
gambas3-Fedora_40.spec
gambas3-Fedora_41.spec
gambas3-Debian_12.dsc + debian-Debian_12.tar.gz
gambas3-xUbuntu_22.04.dsc + debian-xUbuntu_22.04.tar.gz
...

With openSUSE/Fedora or *.spec in general, it doesn't really make much sense either, as the *.spec format is very flexible in terms of configuration - but yes, you should be able to do it and, above all, test it.
I will follow that scheme, except for 'gambas3-X.Y.spec', which should 
be 'gambas3-openSUSE_Leep_X.Y', shouldn't it?
As these files are generated, what's the problem with one 'spec' file by 
version instead of the same 'spec' file for one distribution?
I find clearer to have one 'spec' file for each version and distribution.

I must just find how to generate the differences between the different versions. I think these differences are mainly which packages are disabled, and what the build dependencies are - for spec files, as it seems library dependencies of packages are automatically deduced from build dependencies.
What do you think?

--
Benoît Minisini.