From 460940e6b7d4bcc739a03efd5df641ff3498c68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 20 Nov 2023 16:01:31 +0100 Subject: [PATCH] Reuse Summary and %description --- python-sphinx-theme-alabaster.spec | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 13767fa..750fef5 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -9,28 +9,24 @@ Source: %{pypi_source alabaster} BuildArch: noarch -%description +%global _description %{expand: Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx documentation system. It began as a third-party theme, and is still maintained separately, but as of Sphinx 1.3, Alabaster is an install-time dependency of Sphinx and is -selected as the default theme. +selected as the default theme.} + +%description %_description %package -n python%{python3_pkgversion}-sphinx-theme-alabaster -Summary: Configurable sidebar-enabled Sphinx theme +Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %py_provides python%{python3_pkgversion}-alabaster -%description -n python%{python3_pkgversion}-sphinx-theme-alabaster -Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx -documentation system. - -It began as a third-party theme, and is still maintained separately, -but as of Sphinx 1.3, Alabaster is an install-time dependency of Sphinx and is -selected as the default theme. +%description -n python%{python3_pkgversion}-sphinx-theme-alabaster %_description %prep