Compare commits

2 Commits

2 changed files with 16 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 5 06:02:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 26 07:22:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com> Tue May 26 07:22:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ddg3 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,17 @@
# #
%define skip_python2 1 %define baseversion 0.6.6
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ddg3 Name: python-ddg3
Version: 0.6.6git~20170824T092521~0ef6b2f Version: %{baseversion}git~20170824T092521~0ef6b2f
Release: 0 Release: 0
Summary: Library for querying the Duck Duck Go API Summary: Library for querying the Duck Duck Go API
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jpetrucciani/python-duckduckgo URL: https://github.com/jpetrucciani/python-duckduckgo
Source: ddg3-%{version}.tar.xz Source: ddg3-%{version}.tar.xz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-requests Requires: python-requests
@@ -42,10 +42,10 @@ A Python3 library for querying the Duck Duck Go API.
%setup -q -n ddg3-%{version} %setup -q -n ddg3-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ddg3 %python_clone -a %{buildroot}%{_bindir}/ddg3
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -58,6 +58,8 @@ A Python3 library for querying the Duck Duck Go API.
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/ddg3 %python_alternative %{_bindir}/ddg3
%{python_sitelib}/* %{python_sitelib}/ddg3.py
%pycache_only %{python_sitelib}/__pycache__/ddg3*.pyc
%{python_sitelib}/ddg3-%{baseversion}.dist-info
%changelog %changelog