From 9189e10643ac67d9eafb69fb05e2971fcf7faa0f1aa320130bcbf008c0d7292c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 12 Jun 2025 05:12:07 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-user_agent?expand=0&rev=18 --- python-user_agent.changes | 5 +++++ python-user_agent.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-user_agent.changes b/python-user_agent.changes index b325743..9285177 100644 --- a/python-user_agent.changes +++ b/python-user_agent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:38 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Jun 6 13:51:11 UTC 2023 - pgajdos@suse.com diff --git a/python-user_agent.spec b/python-user_agent.spec index 4ff0a8c..f0e8eaa 100644 --- a/python-user_agent.spec +++ b/python-user_agent.spec @@ -1,7 +1,7 @@ # # spec file for package python-user_agent # -# Copyright (c) 2023 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 @@ -21,16 +21,17 @@ Version: 0.1.10 Release: 0 Summary: User-Agent generator for Python License: MIT -Group: Development/Languages/Python URL: https://github.com/lorien/user_agent Source: https://files.pythonhosted.org/packages/source/u/user_agent/user_agent-%{version}.tar.gz # https://github.com/lorien/user_agent/commit/7a664a50cb1633a355a56594e255583a821176ba Patch0: python-user_agent-no-six.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} @@ -44,10 +45,10 @@ This module generates random, valid web user agents. %autosetup -p1 -n user_agent-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/ua %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -65,6 +66,6 @@ This module generates random, valid web user agents. %license LICENSE %python_alternative %{_bindir}/ua %{python_sitelib}/user_agent -%{python_sitelib}/user_agent-*.egg-info +%{python_sitelib}/user_agent-%{version}.dist-info %changelog