From f0009e76d013f6790a29e0e0f9a104e3f062e3df8b533a91b2c0294c26d8f6f2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 22 Jan 2025 00:59:43 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. - Explicitly BuildRequire sphinx_rtd_theme. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abimap?expand=0&rev=14 --- python-abimap.changes | 7 +++++++ python-abimap.spec | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/python-abimap.changes b/python-abimap.changes index c959ab6..7e87670 100644 --- a/python-abimap.changes +++ b/python-abimap.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 22 00:59:09 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. +- Explicitly BuildRequire sphinx_rtd_theme. + ------------------------------------------------------------------- Thu Dec 9 12:46:25 UTC 2021 - pgajdos@suse.com diff --git a/python-abimap.spec b/python-abimap.spec index cb7cb6e..c50cae7 100644 --- a/python-abimap.spec +++ b/python-abimap.spec @@ -1,7 +1,7 @@ # # spec file for package python-abimap # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-abimap Version: 0.3.2 Release: 0 Summary: A helper for library maintainers to use symbol versioning License: MIT -Group: Development/Languages/Python URL: https://github.com/ansasaki/abimap Source: https://files.pythonhosted.org/packages/source/a/abimap/abimap-%{version}.tar.gz BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sphinx_rtd_theme} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} @@ -49,7 +49,6 @@ exported symbols and update the symbol version linker script accordingly. %package doc Summary: Symbol versioning helper (Documentation) -Group: Documentation/HTML %description doc Documentation for the symbol versioning helper %{name} @@ -60,13 +59,13 @@ Documentation for the symbol versioning helper %{name} sed -i 's:pytest-runner::' setup.py %build -%python_build +%pyproject_wheel PYTHONPATH=${PWD}/src:${PWD}/tests sphinx-build docs html PYTHONPATH=${PWD}/src:${PWD}/tests sphinx-build -E -b man docs man %install -%python_install +%pyproject_install rm -rf html/.{doctrees,buildinfo} @@ -93,7 +92,8 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/ %license LICENSE %python_alternative %{_bindir}/abimap %python_alternative %{_mandir}/man1/abimap.1%{?ext_man} -%{python_sitelib}/* +%{python_sitelib}/abimap +%{python_sitelib}/abimap-%{version}.dist-info %files %{python_files doc} %doc html