From 41ab16f8b5ce3f8c8894226f9e94f5f92412323e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 20 Nov 2023 16:10:37 +0100 Subject: [PATCH] Convert to pyproject-rpm-macros --- python-sphinx-theme-alabaster.spec | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 750fef5..7a4a252 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -8,6 +8,7 @@ URL: https://pypi.python.org/pypi/alabaster Source: %{pypi_source alabaster} BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx @@ -22,8 +23,6 @@ selected as the default theme.} %package -n python%{python3_pkgversion}-sphinx-theme-alabaster 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 %_description @@ -33,19 +32,21 @@ BuildRequires: python%{python3_pkgversion}-setuptools %autosetup -p1 -n alabaster-%{version} +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files alabaster -%files -n python%{python3_pkgversion}-sphinx-theme-alabaster -%license LICENSE +%files -n python%{python3_pkgversion}-sphinx-theme-alabaster -f %{pyproject_files} %doc README.rst -%{python3_sitelib}/alabaster-%{version}-py%{python3_version}.egg-info/ -%{python3_sitelib}/alabaster/ %changelog