1
0

Compare commits

2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 13 02:42:58 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Fri Apr 21 12:38:37 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wcag-contrast-ratio
#
# 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
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-wcag-contrast-ratio
Version: 0.9
@@ -26,8 +25,10 @@ License: MIT
URL: https://github.com/gsnedders/wcag-contrast-ratio
Source: https://files.pythonhosted.org/packages/source/w/wcag-contrast-ratio/wcag-contrast-ratio-%{version}.tar.gz
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -40,10 +41,10 @@ A library for computing contrast ratios, as required by WCAG 2.0
%setup -q -n wcag-contrast-ratio-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,6 +52,7 @@ A library for computing contrast ratios, as required by WCAG 2.0
%files %{python_files}
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/wcag_contrast_ratio
%{python_sitelib}/wcag_contrast_ratio-%{version}.dist-info
%changelog