From a964431b2ceac68047c33acdf1fd90656abd5671 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Aug 31 2017 08:48:42 +0000 Subject: Package must be noarch Skip tests on EPEL <= 8 --- diff --git a/python-polib.spec b/python-polib.spec index 494ed19..e7aba12 100644 --- a/python-polib.spec +++ b/python-polib.spec @@ -27,13 +27,15 @@ POFile, MOFile, POEntry and MOEntry for creating new files/entries. Name: python-%{srcname} Version: 1.0.7 -Release: 8%{?dist} +Release: 9%{?dist} Summary: %{sum} License: MIT URL: http://bitbucket.org/izi/polib/ Source0: http://bitbucket.org/izi/polib/get/%{version}.tar.gz +BuildArch: noarch + %description %{desc} @@ -53,7 +55,7 @@ Summary: %{sum} BuildRequires: python%{py3ver}-devel %if 0%{?fedora} || 0%{?rhel} >= 8 %{?python_provide:%python_provide python%{py3ver}-%{srcname}} -%endif # 0#{?fedora} || 0#{?rhel} >= 7 +%endif # 0#{?fedora} || 0#{?rhel} >= 8 %description -n python%{py3ver}-%{srcname} %{desc} @@ -78,11 +80,13 @@ BuildRequires: python%{py3ver}-devel %endif # with python3 +%if 0%{?fedora} || 0%{?rhel} >= 8 %check %{__python2} setup.py test %if %{with python3} %{__python3} setup.py test %endif # with python3 +%endif # 0#{?fedora} || 0#{?rhel} >= 8 %files -n python2-%{srcname} @@ -100,6 +104,10 @@ BuildRequires: python%{py3ver}-devel %changelog +* Thu Aug 31 2017 Björn Esser - 1.0.7-9 +- Package must be noarch +- Skip tests on EPEL <= 8 + * Thu Aug 31 2017 Björn Esser - 1.0.7-8 - Improvements for Fedora and EPEL