From 2dfc8d46c9548b6fb6fe8dfa361362f286325fe1c03791991f6a9daa5aeca4d2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 20 Jan 2021 04:24:25 +0000 Subject: [PATCH] - BuildRequire dataclasses if python36-base installed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astral?expand=0&rev=22 --- python-astral.changes | 5 +++++ python-astral.spec | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/python-astral.changes b/python-astral.changes index c280369..64acc64 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 20 04:21:00 UTC 2021 - Steve Kowalik + +- BuildRequire dataclasses if python36-base installed + ------------------------------------------------------------------- Tue Nov 3 16:31:08 UTC 2020 - Guillaume GARDET diff --git a/python-astral.spec b/python-astral.spec index 3e78a98..ebdce82 100644 --- a/python-astral.spec +++ b/python-astral.spec @@ -1,7 +1,7 @@ # # spec file for package python-astral # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,10 +25,6 @@ Summary: Calculations for the position of the sun and moon License: Apache-2.0 URL: https://github.com/sffjunkie/astral Source: https://files.pythonhosted.org/packages/source/a/astral/astral-%{version}.tar.gz -%if 0%{?suse_version} <= 1500 -# Not required for Tumbleweed -BuildRequires: %{python_module dataclasses} -%endif BuildRequires: %{python_module freezegun} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} @@ -36,6 +32,7 @@ BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: (python36-dataclasses if python36-base) Requires: python-pytz Requires: python-requests Recommends: python-dataclasses