Skip to content

Commit

Permalink
Fixes for supporting EPEL 7 builds
Browse files Browse the repository at this point in the history
Fix the python-six dependency to work with the epel7 naming.

Drop the `Obsoletes: python-modulemd`
The old package is no longer present on Fedora or RHEL 8+ and it
causes issues if libmodulemd tries to remove it on EPEL 7.

Signed-off-by: Stephen Gallagher <[email protected]>
  • Loading branch information
sgallagher committed Mar 11, 2020
1 parent a1e92f8 commit 780750e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions libmodulemd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ Summary: Python 2 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python-gobject-base
Requires: python-six
Obsoletes: python2-modulemd < 1.3.4

%description -n python2-%{name}
Python 2 bindings for %{name}
Expand All @@ -71,8 +70,13 @@ Python 2 bindings for %{name}
Summary: Python 3 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python%{python3_pkgversion}-gobject-base

%if (0%{?rhel} && 0%{?rhel} <= 7)
# The py3_dist macro on EPEL 7 doesn't work right at the moment
Requires: python3.6dist(six)
%else
Requires: %{py3_dist six}
Obsoletes: python%{python3_pkgversion}-modulemd < 1.3.4
%endif

%description -n python%{python3_pkgversion}-%{name}
Python %{python3_pkgversion} bindings for %{name}
Expand Down
1 change: 0 additions & 1 deletion libmodulemd2.spec

This file was deleted.

0 comments on commit 780750e

Please sign in to comment.