Fix the ELN build by put ovs stuff as soft requirement.
Signed-off-by: Gris Ge <cnfourt@gmail.com>
This commit is contained in:
parent
eb2b33282f
commit
4a5bb4e177
16
nmstate.spec
16
nmstate.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: nmstate
|
Name: nmstate
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Declarative network manager API
|
Summary: Declarative network manager API
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/%{srcname}/%{srcname}
|
URL: https://github.com/%{srcname}/%{srcname}
|
||||||
@ -33,6 +33,7 @@ Requires: NetworkManager-libnm >= 1:1.26.0
|
|||||||
Recommends: NetworkManager
|
Recommends: NetworkManager
|
||||||
# Avoid automatically generated profiles
|
# Avoid automatically generated profiles
|
||||||
Recommends: NetworkManager-config-server
|
Recommends: NetworkManager-config-server
|
||||||
|
Recommends: (nmstate-plugin-ovsdb if openvswitch)
|
||||||
# Use Suggests for NetworkManager-ovs and NetworkManager-team since it is only
|
# Use Suggests for NetworkManager-ovs and NetworkManager-team since it is only
|
||||||
# required for OVS and team support
|
# required for OVS and team support
|
||||||
Suggests: NetworkManager-ovs
|
Suggests: NetworkManager-ovs
|
||||||
@ -43,7 +44,15 @@ Requires: python3dist(nispor)
|
|||||||
%package -n nmstate-plugin-ovsdb
|
%package -n nmstate-plugin-ovsdb
|
||||||
Summary: nmstate plugin for OVS database manipulation
|
Summary: nmstate plugin for OVS database manipulation
|
||||||
Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
Requires: python3dist(ovs)
|
%if 0%{?rhel}
|
||||||
|
# The python-openvswitch rpm package is not in the same repo with nmstate,
|
||||||
|
# require only if openvswitch is installed.
|
||||||
|
Requires: (python3dist(ovs) if openvswitch)
|
||||||
|
Recommends: python3dist(ovs)
|
||||||
|
%else
|
||||||
|
Requires: python3dist(ovs)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description -n python3-%{libname}
|
%description -n python3-%{libname}
|
||||||
This package contains the Python 3 library for Nmstate.
|
This package contains the Python 3 library for Nmstate.
|
||||||
@ -81,6 +90,9 @@ gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
|
|||||||
%{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb*
|
%{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
|
||||||
|
- Fix the ELN build by put ovs stuff as soft requirement.
|
||||||
|
|
||||||
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
|
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
|
||||||
- Upgrade to 0.4.0
|
- Upgrade to 0.4.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user