CPack/RPM: Add option to set %global __requires_exclude_from

This commit is contained in:
Lisa Welsch
2021-07-08 15:12:36 +02:00
committed by Brad King
parent a42b753c41
commit bb5fc38209
3 changed files with 29 additions and 0 deletions
+11
View File
@@ -1035,3 +1035,14 @@ Source RPM packaging has its own set of variables:
example::
set(CPACK_RPM_BUILDREQUIRES "python >= 2.5.0, cmake >= 2.8")
.. VARIABLE:: CPACK_RPM_REQUIRES_EXCLUDE_FROM
* Mandatory : NO
* Default : -
May be used to keep the dependency generator from scanning specific files
or directories for dependencies. Note that you can use a regular
expression that matches all of the directories or files, for example::
set(CPACK_RPM_REQUIRES_EXCLUDE_FROM "bin/libqsqloci.*\\.so.*")
@@ -0,0 +1,6 @@
cpack-rpm-requires-exclude-from
-------------------------------
* The :cpack_gen:`CPack RPM Generator` gained the
:variable:`CPACK_RPM_REQUIRES_EXCLUDE_FROM` option avoid scanning
specific paths for dependencies.