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:
Thiago Macieira
2018-08-20 12:47:28 -07:00
committed by William Douglas
parent c5d2b5b753
commit f319b6ad44
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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 "
+2
View File
@@ -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