14
0

- 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
This commit is contained in:
2025-07-10 03:01:01 +00:00
committed by Git OBS Bridge
parent 6ab15fd2d6
commit 3192546c77
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 10 03:00:26 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Wed Nov 13 15:23:22 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -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