Dynamic provides and requires dependency
Miroslav Suchý
msuchy at redhat.com
Sat Dec 23 07:13:54 UTC 2023
Dne 23. 12. 23 v 5:22 Orion Poplawski napsal(a):
> On 12/22/23 18:19, Sam Varshavchik wrote:
>> Is there for a way that a package's %build or %install script can generate additional Provides: and Requires:
>> dependencies?
>>
>> Doing some digging, I found the (relatively) recently developed dynamic buildrequires, and %generate_buildrequires.
>>
>> What I'm looking to do is something analogous, but have %build or a %install generate additional dependencies to
>> supplement Requires:, Provides:, and the automatically-generated dependencies.
>>
>> I suppose I can override %__find_requires and %__find_provides, and have that run my own script first, then the
>> default ones.
>
> You want this:
>
> https://rpm-software-management.github.io/rpm/manual/dependency_generators.html
And maybe this:
https://rpm-software-management.github.io/rpm/manual/dynamic_specs.html
--
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys
More information about the Rpm-list
mailing list