From 3d1a85b49bcef78ad6d43d276a2f959b30306303470c4f5f680696169ec1b1df Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 21 Apr 2023 13:28:45 +0000 Subject: [PATCH] Accepting request 1081691 from home:dirkmueller:acdc:as_python3_module SR for python stack proposal OBS-URL: https://build.opensuse.org/request/show/1081691 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcag-contrast-ratio?expand=0&rev=3 --- python-wcag-contrast-ratio.changes | 10 ++++++++++ python-wcag-contrast-ratio.spec | 9 +++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/python-wcag-contrast-ratio.changes b/python-wcag-contrast-ratio.changes index 83fed8c..51023a6 100644 --- a/python-wcag-contrast-ratio.changes +++ b/python-wcag-contrast-ratio.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 21 12:38:37 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:50 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + ------------------------------------------------------------------- Mon Jul 18 12:22:17 UTC 2022 - Matej Cepl diff --git a/python-wcag-contrast-ratio.spec b/python-wcag-contrast-ratio.spec index eb954d8..679f574 100644 --- a/python-wcag-contrast-ratio.spec +++ b/python-wcag-contrast-ratio.spec @@ -1,7 +1,7 @@ # # spec file for package python-wcag-contrast-ratio # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-wcag-contrast-ratio Version: 0.9 Release: 0 @@ -24,11 +25,11 @@ Summary: A library for computing contrast ratios, as required by WCAG 20 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-rpm-macros -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages