Open hroncok opened 2 years ago
Taking a look at Packaging Guidelines and some arched spec files this is needed in template.spec
:
BuildArch: noarch
(that'd be the default)Also, it could be possible to define ExcludeArch:
and ExclusiveArch:
in the config.
It's already possible to define custom BuildRequires:
in addition to the generated ones.
Will it be enough to make it working?
I suppose the conf2spec tool needs a way to say we don't want noarch (I would not bother with ExcludeArch: and ExclusiveArch:) and a way to say we need gcc (the option already exists).
For automated rebuilds to work, the pyp2conf tool would need to detect this and add the proper config options.
Detecting the existence of extension modules naively by parsing all available wheel names: https://github.com/befeleme/pyp2spec/pull/40 A draft of PEP that would make it possible to detect that in an explicit way: https://peps.python.org/pep-0725/
The tool currently only supports noarch pacakges, the noarch thing is hardcoded in the template. It would be nice if it also supported packages with extension modules - those are archful and usually need at least gcc to build.