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 967422c..65b03ff 100644 --- a/ursa-major.spec +++ b/ursa-major.spec @@ -1,11 +1,11 @@ -%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 +Version: 0.4.2 Release: 1%{?dist} Summary: A utility for working with module's koji tags in koji's tag inheritance. @@ -59,31 +59,30 @@ 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 Requires: krb5-workstation Requires: koji -Requires: m2crypto %if 0%{?with_python3} Requires: python3-gobject-base Requires: python3-cairo Requires: python3-koji +Requires: python3-m2crypto Requires: python3-six Requires: python3-requests Requires: python3-jinja2 Requires: python3-setuptools %else Requires: python2-koji +Requires: m2crypto %if 0%{?rhel} && 0%{?rhel} <= 7 Requires: python-gobject-base Requires: pycairo @@ -104,7 +103,11 @@ Requires: python2-setuptools %endif # Need brewkoji.conf +%if 0%{?rhel} && 0%{?rhel} <= 7 Requires: brewkoji +%else +Recommends: brewkoji +%endif %description @@ -117,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 @@ -164,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 @@ -192,6 +199,15 @@ 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) + +* Mon May 11 2020 Yu Ming Zhu - 0.4.1-2 +- Requires python3-m2crypto for python3 +- Recommends brew[-stage] instead of Requires + * Tue Feb 11 2020 Qixiang Wan - 0.4.1-1 - Remove updating koji inheritance ability from add-module and remove-module