From 41ce4e4e0a9689083ba50f3ed8f9ab34e84f0ea748b705ce60a8f3b0dea864dd Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Aug 2020 08:29:48 +0000 Subject: [PATCH] - Remove unnecessary BR on devel. - Don't build python2 on Tumbleweed. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=11 --- python-bibtexparser.changes | 6 ++++++ python-bibtexparser.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-bibtexparser.changes b/python-bibtexparser.changes index 354b97f..e220a69 100644 --- a/python-bibtexparser.changes +++ b/python-bibtexparser.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 17 08:29:09 UTC 2020 - Matej Cepl + +- Remove unnecessary BR on devel. +- Don't build python2 on Tumbleweed. + ------------------------------------------------------------------- Tue Jun 30 10:24:22 UTC 2020 - Matej Cepl diff --git a/python-bibtexparser.spec b/python-bibtexparser.spec index b4ed862..9aeb689 100644 --- a/python-bibtexparser.spec +++ b/python-bibtexparser.spec @@ -17,7 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%if 0%{?suse_version} > 1500 +%define skip_python2 1 +%endif Name: python-bibtexparser Version: 1.1.0 Release: 0 @@ -28,7 +30,6 @@ URL: https://github.com/sciunto-org/python-bibtexparser Source: https://github.com/sciunto-org/python-bibtexparser/archive/v%{version}.tar.gz#/python-bibtexparser-%{version}.tar.gz # https://github.com/sciunto-org/python-bibtexparser/pull/259 Patch0: python-bibtexparser-remove-unittest2.patch -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -40,7 +41,7 @@ BuildRequires: %{python_module future >= 0.16.0} BuildRequires: %{python_module pyparsing >= 2.0.3} BuildRequires: %{python_module pytest} # Required for assertLogs unavailable in 2.7 unittest -%if %{with python2} +%if "%{python_flavor}" == "python2" BuildRequires: python-unittest2 %endif # /SECTION