From 75b32ccfdb14262f52ea79464f28a70d1460c6cf6ad97efd003682646f0fe369 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 4 Oct 2024 01:09:56 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. - Update URL. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rfc3987?expand=0&rev=13 --- python-rfc3987.changes | 7 +++++++ python-rfc3987.spec | 16 +++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/python-rfc3987.changes b/python-rfc3987.changes index 42a5b89..677cce0 100644 --- a/python-rfc3987.changes +++ b/python-rfc3987.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Oct 4 01:09:15 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. +- Update URL. + ------------------------------------------------------------------- Fri Apr 21 12:33:19 UTC 2023 - Dirk Müller diff --git a/python-rfc3987.spec b/python-rfc3987.spec index 3f2ff6e..3542997 100644 --- a/python-rfc3987.spec +++ b/python-rfc3987.spec @@ -1,7 +1,7 @@ # # spec file for package python-rfc3987 # -# Copyright (c) 2023 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,18 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-rfc3987 Version: 1.3.8 Release: 0 Summary: Module for parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987) License: GPL-3.0-or-later -Group: Development/Languages/Python -URL: https://github.com/dgerber/rfc3987 +URL: https://codeberg.org/atufi/rfc3987 Source: https://files.pythonhosted.org/packages/source/r/rfc3987/rfc3987-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +45,10 @@ utilities for composition and relative resolution of references. sed -i '1{/^#!/d}' rfc3987.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +57,8 @@ sed -i '1{/^#!/d}' rfc3987.py %files %{python_files} %license COPYING.txt %doc README.txt -%{python_sitelib}/* +%{python_sitelib}/rfc3987.py +%pycache_only %{python_sitelib}/__pycache__/rfc3987.*.pyc +%{python_sitelib}/rfc3987-%{version}.dist-info %changelog