mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-01 02:44:52 +00:00
Add the ability to make the dev package depend on extras
Sometimes we move libraries with API to extras, so the dev package should cause it to be installed. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
committed by
William Douglas
parent
c5d2b5b753
commit
f319b6ad44
@@ -119,6 +119,7 @@ config_options = {
|
||||
"verify_required": "require package verification for build",
|
||||
"security_sensitive": "set flags for security-sensitive builds",
|
||||
"so_to_lib": "add .so files to the lib package instead of dev",
|
||||
"dev_requires_extras": "dev package requires the extras to be installed",
|
||||
"autoupdate": "this package is trusted enough to automatically update "
|
||||
"(used by other tools)",
|
||||
"compat": "this package is a library compatability package and only "
|
||||
|
||||
@@ -245,6 +245,8 @@ class Specfile(object):
|
||||
deps["lib"] = ["data", "license"]
|
||||
deps["lib32"] = ["data", "license"]
|
||||
deps["python"] = ["python3"]
|
||||
if config.config_opts['dev_requires_extras']:
|
||||
deps["dev"].append("extras")
|
||||
|
||||
# migration workaround; if we have a python3 or legacypython package
|
||||
# we add an artificial python package
|
||||
|
||||
Reference in New Issue
Block a user