From a44de281c66c21d9a93de2279d1d3155092ca82c3c04ff74f3f2009d0ea204db Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 5 Jun 2025 06:04:48 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ddg3?expand=0&rev=7 --- python-ddg3.changes | 6 ++++++ python-ddg3.spec | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/python-ddg3.changes b/python-ddg3.changes index 9def3b9..96782de 100644 --- a/python-ddg3.changes +++ b/python-ddg3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 5 06:02:10 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue May 26 07:22:31 UTC 2020 - Petr Gajdos diff --git a/python-ddg3.spec b/python-ddg3.spec index a54cd8e..c58f7b4 100644 --- a/python-ddg3.spec +++ b/python-ddg3.spec @@ -1,7 +1,7 @@ # # spec file for package python-ddg3 # -# 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,17 +16,17 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define baseversion 0.6.6 Name: python-ddg3 -Version: 0.6.6git~20170824T092521~0ef6b2f +Version: %{baseversion}git~20170824T092521~0ef6b2f Release: 0 Summary: Library for querying the Duck Duck Go API License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/jpetrucciani/python-duckduckgo Source: ddg3-%{version}.tar.xz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-requests @@ -42,10 +42,10 @@ A Python3 library for querying the Duck Duck Go API. %setup -q -n ddg3-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/ddg3 %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -58,6 +58,8 @@ A Python3 library for querying the Duck Duck Go API. %files %{python_files} %license LICENSE %python_alternative %{_bindir}/ddg3 -%{python_sitelib}/* +%{python_sitelib}/ddg3.py +%pycache_only %{python_sitelib}/__pycache__/ddg3*.pyc +%{python_sitelib}/ddg3-%{baseversion}.dist-info %changelog