diff --git a/.gitignore b/.gitignore index 1a8c674..46b556d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /ursa-major-0.2.2.tar.gz /ursa-major-0.3.1.tar.gz /ursa-major-0.4.1.tar.gz +/ursa-major-0.4.2.tar.gz diff --git a/sources b/sources index 1a010c5..68b4ca9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ursa-major-0.4.1.tar.gz) = 7fbe6cc580ab6f256ab8d7866da677a8cebbe819b7d33f3bb83b041de5a143d2899460d27c650e77cc6704296ea9150e0ffa5c59af8136781b20544e85cdd652 +SHA512 (ursa-major-0.4.2.tar.gz) = 4758d0368af6b48063116fcbe59c6f22ab9ed0abf573e91bc8e4b2d0b1aee9b230986d659dc2559d3338e3633414e599b6f8bf8d1b1c6e74fb5d953870a5fb2a diff --git a/ursa-major.spec b/ursa-major.spec index ec7c32c..b9172e1 100644 --- a/ursa-major.spec +++ b/ursa-major.spec @@ -1,12 +1,12 @@ -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 7 # we have some koji hubs doesn't support Python3 with kerberos auth # at this moment, so we build with Python2 for all platforms now %global with_python3 1 %endif Name: ursa-major -Version: 0.4.1 -Release: 4%{?dist} +Version: 0.4.2 +Release: 1%{?dist} Summary: A utility for working with module's koji tags in koji's tag inheritance. Group: Development/Tools @@ -59,14 +59,12 @@ BuildRequires: python2-mock %endif %endif -%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} > 7) -BuildRequires: libmodulemd1 -Requires: libmodulemd1 +%if 0%{?fedora} || 0%{?rhel} > 7 +BuildRequires: libmodulemd > 1 +Requires: libmodulemd > 1 %else -# disable unittest in check phase and build requires of libmodulemd v1 -# because libmodulemd has been upgraded to v2 in eng-rhel -# BuildRequires: libmodulemd -Requires: libmodulemd < 2 +BuildRequires: libmodulemd2 +Requires: libmodulemd2 %endif Requires: gobject-introspection @@ -105,7 +103,11 @@ Requires: python2-setuptools %endif # Need brewkoji.conf +%if 0%{?rhel} && 0%{?rhel} <= 7 +Requires: brewkoji +%else Recommends: brewkoji +%endif %description @@ -118,7 +120,11 @@ Summary: A utility for working with module's koji tags in koji's tag inhe Requires: %{name} = %{version}-%{release} # Need brewkoji-stage.conf +%if 0%{?rhel} && 0%{?rhel} <= 7 +Requires: brewkoji-stage +%else Recommends: brewkoji-stage +%endif %description -n ursa-major-stage The ursa-major-stage package contains script and configurations for Ursa-Major @@ -165,11 +171,11 @@ done %check # disable unittest due to missing libmodulemd v1 in buildroot -# %if 0%{?with_python3} -# py.test-3 -# %else -# py.test -# %endif +%if 0%{?with_python3} +py.test-3 +%else +py.test +%endif %files @@ -193,6 +199,11 @@ done %changelog +* Thu Mar 11 2021 Yu Ming Zhu - 0.4.2-1 +- Use old tuple syntax for mock.call.call_args of old mock release (Yuming Zhu) +- Fix unittests for missing koji profile (Yuming Zhu) +- Using libmodulemd v2 API (Yuming Zhu) + * Wed Jul 29 2020 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild