11
0

2 Commits

2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 02:42:44 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:38:44 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:38:44 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-webencodings # spec file for package python-webencodings
# #
# Copyright (c) 2023 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,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-webencodings Name: python-webencodings
Version: 0.5.1 Version: 0.5.1
@@ -26,7 +25,9 @@ License: BSD-3-Clause
URL: https://github.com/SimonSapin/python-webencodings URL: https://github.com/SimonSapin/python-webencodings
Source: https://files.pythonhosted.org/packages/source/w/webencodings/webencodings-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/w/webencodings/webencodings-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/gsnedders/python-webencodings/v%{version}/LICENSE Source1: https://raw.githubusercontent.com/gsnedders/python-webencodings/v%{version}/LICENSE
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
BuildArch: noarch BuildArch: noarch
@@ -52,16 +53,16 @@ implementation for encoders and decoders is Pythons.
cp %{SOURCE1} ./ cp %{SOURCE1} ./
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/webencodings/ %{python_sitelib}/webencodings/
%{python_sitelib}/webencodings-%{version}-py*.egg-info %{python_sitelib}/webencodings-%{version}.dist-info
%changelog %changelog