From 47a481e96e644d15dce3cd84e3304fe1ac47a7ec7efcb9f5b3e3baa71d1b303a Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 11 Jan 2022 10:01:25 +0000 Subject: [PATCH] - Limit package to python >= 3.7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-time-machine?expand=0&rev=14 --- python-time-machine.changes | 5 +++++ python-time-machine.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-time-machine.changes b/python-time-machine.changes index 59e5e4f..faebaa3 100644 --- a/python-time-machine.changes +++ b/python-time-machine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 11 10:01:09 UTC 2022 - Sebastian Wagner + +- Limit package to python >= 3.7 + ------------------------------------------------------------------- Mon Jan 10 17:18:47 UTC 2022 - Sebastian Wagner diff --git a/python-time-machine.spec b/python-time-machine.spec index 3c34880..90f0b11 100644 --- a/python-time-machine.spec +++ b/python-time-machine.spec @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-time-machine Group: Development/Languages/Python Version: 2.6.0 @@ -27,7 +26,7 @@ License: MIT URL: https://github.com/adamchainz/time-machine # pypi packages don't contain the tests anymore since 2.2.0, see changelog Source: https://github.com/adamchainz/time-machine/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION @@ -36,6 +35,8 @@ BuildRequires: %{python_module dateutil} BuildRequires: %{python_module pytzdata} # /SECTION BuildRequires: fdupes +BuildRequires: python-rpm-generators +%{?python_enable_dependency_generator} %python_subpackages %description