From 3192546c77ec3efc262af987609aaf08c4fcbcfcb1b4900e495a9b6b53678ba2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 10 Jul 2025 03:01:01 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hstspreload?expand=0&rev=31 --- python-hstspreload.changes | 6 ++++++ python-hstspreload.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-hstspreload.changes b/python-hstspreload.changes index 1d503ec..31f611e 100644 --- a/python-hstspreload.changes +++ b/python-hstspreload.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 10 03:00:26 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Nov 13 15:23:22 UTC 2024 - Dirk Müller diff --git a/python-hstspreload.spec b/python-hstspreload.spec index 49399a7..1cf604d 100644 --- a/python-hstspreload.spec +++ b/python-hstspreload.spec @@ -1,7 +1,7 @@ # # spec file for package python-hstspreload # -# Copyright (c) 2024 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 @@ -16,18 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-hstspreload Version: 2024.11.1 Release: 0 Summary: Python Chromium HSTS Preload list License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/sethmlarson/hstspreload Source: https://files.pythonhosted.org/packages/source/h/hstspreload/hstspreload-%{version}.tar.gz Source1: https://raw.githubusercontent.com/python-http/hstspreload/master/test_hstspreload.py +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +41,10 @@ Chromium HSTS Preload list as a Python package. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} #%%check depends on httpx, which depends on hstspreload @@ -54,6 +54,7 @@ cp %{SOURCE1} . %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/hstspreload +%{python_sitelib}/hstspreload-%{version}.dist-info %changelog