From 0b471f6a1bb264857dcb68185f85cc21b925f91ca48c5cd2cdce7832e4049773 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:57:29 +0000 Subject: [PATCH] - Switch to pyproject macros. - Use fdupes. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wikipedia?expand=0&rev=11 --- python-wikipedia.changes | 7 +++++++ python-wikipedia.spec | 15 +++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-wikipedia.changes b/python-wikipedia.changes index a668e31..e3aa3a2 100644 --- a/python-wikipedia.changes +++ b/python-wikipedia.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 13 02:45:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Use fdupes. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri May 29 10:59:02 UTC 2020 - Marketa Calabkova diff --git a/python-wikipedia.spec b/python-wikipedia.spec index a699967..0df25a5 100644 --- a/python-wikipedia.spec +++ b/python-wikipedia.spec @@ -1,7 +1,7 @@ # # spec file for package python-wikipedia # -# Copyright (c) 2020 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,19 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wikipedia Version: 1.4.0 Release: 0 Summary: Wikipedia API for Python License: MIT -Group: Development/Languages/Python URL: https://github.com/goldsmith/Wikipedia Source: https://files.pythonhosted.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-beautifulsoup4 Requires: python-requests @@ -48,10 +49,11 @@ Wikipedia data, not getting it. %setup -q -n wikipedia-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check ln -s tests/request_mock_data.py . @@ -60,6 +62,7 @@ ln -s tests/request_mock_data.py . %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/wikipedia +%{python_sitelib}/wikipedia-%{version}.dist-info %changelog