15
0

Accepting request 1153081 from devel:languages:python

- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1153081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-duckduckgo2?expand=0&rev=4
This commit is contained in:
2024-02-29 20:49:48 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 29 04:16:58 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Tue May 26 07:22:46 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-duckduckgo2
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2024 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 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-duckduckgo2
Version: 0.242
Release: 0
Summary: Library for querying the DuckDuckGo API
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/crazedpsyc/python-duckduckgo/
Source: https://files.pythonhosted.org/packages/source/d/duckduckgo2/duckduckgo2-%{version}.tar.gz
Patch0: add-python3-support.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
@@ -38,14 +38,13 @@ BuildArch: noarch
A Python library for querying the DuckDuckGo API.
%prep
%setup -q -n duckduckgo2-%{version}
%patch0 -p1
%autosetup -p1 -n duckduckgo2-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ddg
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -59,6 +58,8 @@ A Python library for querying the DuckDuckGo API.
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/ddg
%{python_sitelib}/*
%{python_sitelib}/duckduckgo.py
%pycache_only %{python_sitelib}/__pycache__/duckduckgo.*.py*
%{python_sitelib}/duckduckgo2-%{version}.dist-info
%changelog