Create rpm requires from cpanfile
|Status:||In Progress||Start date:||06/09/2019|
|Target version:||Current Sprint|
The cpanfile provides already perl dependencies and we should make use of it as good as we can to avoid duplication in the spec file
- AC1: Less duplication in dependencies
- AC2: perl dependencies need to be specified manually in either cpanfile or .spec file, not both
- Look into https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tools/update_spec how a spec file is updated from cpanfile including a check in self-tests that tells commiters if an update is needed
- Try to keep dependencies split per component, e.g. "worker", "client", etc.
How about creating a YAML or JSON file for the requirements and generate
cpanfile and rpm from that?
Seems easier especially regarding dependencies per component. Not sure if that is actually possible with the
cpanfile-dump doesn't support module versions, at least
cpanfile-dump --help doesn't show anything regarding that.