From eefdf30840ed807cbb68240161b54f0d82f446a1 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 20 Oct 2023 01:42:57 +0000 Subject: [PATCH] Reuse %description text across subpackages --- python-resolvelib.spec | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/python-resolvelib.spec b/python-resolvelib.spec index 19665ac..a5e9351 100644 --- a/python-resolvelib.spec +++ b/python-resolvelib.spec @@ -14,35 +14,21 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) -%description +%global _description %{expand: ResolveLib at the highest level provides a Resolver class that includes dependency resolution logic. You give it some things, and a little information on how it should interact with them, and it will spit out a resolution result. Intended Usage :: import resolvelib Things I want to resolve. requirements [...] Implement logic so the resolver understands the -requirement format. class... +requirement format. class...} + +%description %_description + %package -n python3-%{pypi_name} Summary: %{summary} -#Requires: python3dist(black) -#Requires: python3dist(commentjson) -#Requires: python3dist(flake8) -#Requires: python3dist(html5lib) -#Requires: python3dist(packaging) -#Requires: python3dist(packaging) -#Requires: python3dist(pygraphviz) -#Requires: python3dist(pytest) -#Requires: python3dist(requests) -#Requires: python3dist(setl) -#Requires: python3dist(towncrier) -%description -n python3-%{pypi_name} -ResolveLib at the highest level provides a Resolver class that -includes dependency resolution logic. You give it some things, and a little -information on how it should interact with them, and it will spit out a -resolution result. Intended Usage :: import resolvelib Things I want to -resolve. requirements [...] Implement logic so the resolver understands the -requirement format. class... +%description -n python3-%{pypi_name} %{_description} %prep