google / rpmpack

rpmpack (tar2rpm) - package rpms in pure golang or cli
Apache License 2.0
116 stars 32 forks source link

support boolean dependencies #76

Closed djgilcrease closed 1 year ago

djgilcrease commented 2 years ago

I am trying to add support for boolean dependencies https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html

I see the dependency tags all defined @https://github.com/rpm-software-management/rpm/blob/ab01b5eacf9ec6a07a5d9e1991ef476a12d264fd/include/rpm/rpmds.h

And the rich parser defined https://github.com/rpm-software-management/rpm/blob/9f62aba3bd26eea51d411f0d17ee4dadbf2fd873/lib/rpmds.c#L1480

based on https://github.com/rpm-software-management/rpm/blob/9f62aba3bd26eea51d411f0d17ee4dadbf2fd873/lib/rpmds.c#L1126

I think I need to set add a dependency of rpmlib(DynamicBuildRequires)", "4.15.0-1" and set RPMSENSE_RPMLIB to all rpms that should support it, but not 100% sure how to go about that yet.