How to disable AutoReqProv on shebangs for a specific script file ?

Miro Hrončok mhroncok at redhat.com
Sun Jun 19 16:16:44 UTC 2022


On 19. 06. 22 18:06, Jason Vas Dias wrote:
> Good day -
> 
>    I am trying to develop a .spec file for an RPM that ships
>    a template script that references a non-existent
>    dependency in its she-bang line:
> 
>    '#!<some file that does not exist (yet)>'
> 
>    How to disable autoreqprov from including that
>    non-existent file in %requires ?

https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/

%global __requires_exclude_from ^...$

Use a regular expression with the template's path.

Or alternatively:

%global __requires_exclude  ^...$

Use a regular expression of <some file that does not exist (yet)>.
-- 
Miro Hrončok
-- 
Phone: +420777974800
IRC: mhroncok



More information about the Rpm-list mailing list