2018-12-19 14:12:31 +00:00
|
|
|
%?python_enable_dependency_generator
|
|
|
|
%define srcname nmstate
|
|
|
|
%define libname libnmstate
|
|
|
|
|
|
|
|
Name: nmstate
|
2021-01-18 23:02:56 +00:00
|
|
|
Version: 1.0.1
|
2021-01-26 21:35:08 +00:00
|
|
|
Release: 2%{?dist}
|
2018-12-19 14:12:31 +00:00
|
|
|
Summary: Declarative network manager API
|
2019-07-26 12:39:28 +00:00
|
|
|
License: LGPLv2+
|
2018-12-19 14:12:31 +00:00
|
|
|
URL: https://github.com/%{srcname}/%{srcname}
|
2019-07-26 12:39:28 +00:00
|
|
|
Source0: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
Source1: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
|
2020-05-08 07:37:42 +00:00
|
|
|
Source2: nmstate.gpg
|
2018-12-19 14:12:31 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2019-01-02 11:47:18 +00:00
|
|
|
BuildRequires: gnupg2
|
2019-01-21 15:35:38 +00:00
|
|
|
Requires: python3-setuptools
|
2018-12-19 14:12:31 +00:00
|
|
|
Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2019-12-02 10:09:59 +00:00
|
|
|
Nmstate is a library with an accompanying command line tool that manages host
|
2018-12-19 14:12:31 +00:00
|
|
|
networking settings in a declarative manner and aimed to satisfy enterprise
|
|
|
|
needs to manage host networking through a northbound declarative API and multi
|
|
|
|
provider support on the southbound.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{libname}
|
|
|
|
Summary: nmstate Python 3 API library
|
2020-07-25 12:00:36 +00:00
|
|
|
Requires: NetworkManager-libnm >= 1:1.26.0
|
2019-01-29 17:19:39 +00:00
|
|
|
# Use Recommends for NetworkManager because only access to NM DBus is required,
|
|
|
|
# but NM could be running on a different host
|
|
|
|
Recommends: NetworkManager
|
2019-12-02 10:09:59 +00:00
|
|
|
# Avoid automatically generated profiles
|
|
|
|
Recommends: NetworkManager-config-server
|
2020-10-12 16:19:53 +00:00
|
|
|
Recommends: (nmstate-plugin-ovsdb if openvswitch)
|
2020-02-04 21:23:10 +00:00
|
|
|
# Use Suggests for NetworkManager-ovs and NetworkManager-team since it is only
|
|
|
|
# required for OVS and team support
|
2019-01-29 17:19:39 +00:00
|
|
|
Suggests: NetworkManager-ovs
|
2020-02-04 21:23:10 +00:00
|
|
|
Suggests: NetworkManager-team
|
2020-09-20 12:22:15 +00:00
|
|
|
# FIXME: Once upstream included nispor into requirement.txt, remove below line
|
|
|
|
Requires: python3dist(nispor)
|
2019-01-29 17:19:39 +00:00
|
|
|
|
2020-06-15 22:25:52 +00:00
|
|
|
%package -n nmstate-plugin-ovsdb
|
|
|
|
Summary: nmstate plugin for OVS database manipulation
|
|
|
|
Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-10-12 16:19:53 +00:00
|
|
|
%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
|
|
|
|
|
2018-12-19 14:12:31 +00:00
|
|
|
|
|
|
|
%description -n python3-%{libname}
|
2019-12-02 10:09:59 +00:00
|
|
|
This package contains the Python 3 library for Nmstate.
|
2018-12-19 14:12:31 +00:00
|
|
|
|
2020-06-15 22:25:52 +00:00
|
|
|
%description -n nmstate-plugin-ovsdb
|
|
|
|
This package contains the nmstate plugin for OVS database manipulation.
|
|
|
|
|
2018-12-19 14:12:31 +00:00
|
|
|
%prep
|
2020-05-08 07:06:05 +00:00
|
|
|
gpg2 --import --import-options import-export,import-minimal %{SOURCE2} > ./gpgkey-mantainers.gpg
|
|
|
|
gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
|
2018-12-19 14:12:31 +00:00
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
2019-01-29 17:19:39 +00:00
|
|
|
%doc examples/
|
2019-12-02 10:09:59 +00:00
|
|
|
%{_mandir}/man8/nmstatectl.8*
|
2018-12-19 14:12:31 +00:00
|
|
|
%{python3_sitelib}/nmstatectl
|
|
|
|
%{_bindir}/nmstatectl
|
|
|
|
|
|
|
|
%files -n python3-%{libname}
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/%{libname}
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
2020-06-15 22:25:52 +00:00
|
|
|
%exclude %{python3_sitelib}/%{libname}/plugins/nmstate_plugin_*
|
|
|
|
%exclude %{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_*
|
|
|
|
|
|
|
|
%files -n nmstate-plugin-ovsdb
|
|
|
|
%{python3_sitelib}/%{libname}/plugins/nmstate_plugin_ovsdb*
|
|
|
|
%{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb*
|
2018-12-19 14:12:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-01-26 21:35:08 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-18 23:02:56 +00:00
|
|
|
* Tue Jan 19 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-1
|
|
|
|
- Upgrade to 1.0.1
|
|
|
|
|
2020-12-08 22:33:22 +00:00
|
|
|
* Tue Dec 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.0-1
|
|
|
|
- Upgrade to 1.0.0
|
|
|
|
|
2020-10-22 21:03:49 +00:00
|
|
|
* Thu Oct 22 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.4.1-1
|
|
|
|
- Upgrade to 0.4.1
|
|
|
|
|
2020-10-12 16:19:53 +00:00
|
|
|
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
|
|
|
|
- Fix the ELN build by put ovs stuff as soft requirement.
|
|
|
|
|
2020-09-20 12:22:15 +00:00
|
|
|
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
|
|
|
|
- Upgrade to 0.4.0
|
|
|
|
|
2020-08-31 08:39:18 +00:00
|
|
|
* Mon Aug 31 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.5-1
|
|
|
|
- Update to 0.3.5
|
|
|
|
|
2020-07-28 09:13:15 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-25 12:00:36 +00:00
|
|
|
* Sat Jul 25 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.4-1
|
|
|
|
- Update to 0.3.4
|
|
|
|
- Sync. with upstream specfile
|
|
|
|
|
2020-07-02 16:36:59 +00:00
|
|
|
* Thu Jul 02 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.3-1
|
|
|
|
- Update to 0.3.3
|
|
|
|
|
2020-06-15 22:25:52 +00:00
|
|
|
* Tue Jun 16 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.2-1
|
|
|
|
- Update to 0.3.2
|
|
|
|
- Sync with upstream specfile
|
|
|
|
|
2020-06-09 08:10:03 +00:00
|
|
|
* Tue Jun 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.1-1
|
|
|
|
- Update to 0.3.1
|
|
|
|
|
2020-05-26 00:54:16 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-5
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-08 07:37:42 +00:00
|
|
|
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-4
|
|
|
|
- Fix source path
|
|
|
|
|
2020-05-08 07:06:05 +00:00
|
|
|
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-3
|
|
|
|
- Fix signature verification
|
|
|
|
|
2020-05-08 06:47:01 +00:00
|
|
|
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-2
|
|
|
|
- Update signature verification
|
|
|
|
|
2020-05-08 06:33:03 +00:00
|
|
|
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-1
|
|
|
|
- Update to 0.3.0
|
|
|
|
- Sync with upstream specfile
|
|
|
|
|
2020-04-21 10:18:05 +00:00
|
|
|
* Tue Apr 21 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.10-1
|
|
|
|
- Update to 0.2.10
|
|
|
|
|
2020-03-26 15:13:37 +00:00
|
|
|
* Thu Mar 26 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.9-1
|
|
|
|
- Update to 0.2.9
|
|
|
|
|
2020-03-13 09:03:02 +00:00
|
|
|
* Fri Mar 13 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.8-1
|
|
|
|
- Update to 0.2.8
|
|
|
|
|
2020-03-04 14:24:26 +00:00
|
|
|
* Wed Mar 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.7-1
|
|
|
|
- Update to 0.2.7
|
|
|
|
|
2020-02-24 20:26:31 +00:00
|
|
|
* Mon Feb 24 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.6-1
|
|
|
|
- Update to 0.2.6
|
|
|
|
|
2020-02-19 18:16:44 +00:00
|
|
|
* Wed Feb 19 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.5-1
|
|
|
|
- Update to 0.2.5
|
|
|
|
- Sync with upstream specfile
|
|
|
|
|
2020-02-12 16:48:41 +00:00
|
|
|
* Wed Feb 12 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.4-1
|
|
|
|
- Update to 0.2.4
|
|
|
|
|
2020-02-05 16:30:46 +00:00
|
|
|
* Wed Feb 05 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.3-1
|
|
|
|
- Update to 0.2.3
|
|
|
|
|
2020-02-04 21:23:10 +00:00
|
|
|
* Tue Feb 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.2-1
|
|
|
|
- Update to 0.2.2
|
|
|
|
- Sync with upstream specfile
|
|
|
|
|
2020-01-29 15:04:40 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-13 23:07:30 +00:00
|
|
|
* Tue Jan 14 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.1-2
|
|
|
|
- Fix changelog
|
|
|
|
|
|
|
|
* Tue Jan 14 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.1-1
|
2020-01-13 23:00:26 +00:00
|
|
|
- Update to 0.2.1
|
|
|
|
|
2019-12-03 15:49:37 +00:00
|
|
|
* Tue Dec 03 2019 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.0-2
|
|
|
|
- Fix changelog
|
|
|
|
|
|
|
|
* Tue Dec 03 2019 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.0-1
|
2019-12-03 14:53:05 +00:00
|
|
|
- Update to 0.2.0
|
|
|
|
|
2019-12-02 10:09:59 +00:00
|
|
|
* Mon Dec 02 2019 Till Maas <opensource@till.name> - 0.1.1-1
|
|
|
|
- Update to 0.1.1
|
|
|
|
- Sync with upstream specfile
|
|
|
|
|
2019-10-03 11:57:21 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-3
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-19 08:20:52 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-2
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 12:39:28 +00:00
|
|
|
* Fri Jul 26 2019 Gris Ge <fge@redhat.com> - 0.0.8-1
|
|
|
|
- Upgrade to 0.0.8.
|
|
|
|
|
2019-07-25 18:45:03 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-14 05:21:05 +00:00
|
|
|
* Fri Jun 14 2019 Gris Ge <fge@redhat.com> - 0.0.7-2
|
|
|
|
- Workaround broken dbus-python packaging:
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1654774
|
|
|
|
|
2019-06-14 05:07:43 +00:00
|
|
|
* Fri Jun 14 2019 Gris Ge <fge@redhat.com> - 0.0.7-1
|
|
|
|
- Upgrade to 0.0.7
|
|
|
|
|
2019-05-05 02:59:50 +00:00
|
|
|
* Sun May 05 2019 Gris Ge <fge@redhat.com> - 0.0.6-1
|
|
|
|
- Upgrade to 0.0.6
|
|
|
|
|
2019-04-12 12:45:08 +00:00
|
|
|
* Fri Apr 12 2019 Gris Ge <fge@redhat.com - 0.0.5-2
|
|
|
|
- Add missing runtime requirement: python3-dbus
|
|
|
|
|
2019-03-12 14:07:08 +00:00
|
|
|
* Tue Mar 12 2019 Gris Ge <fge@redhat.com> - 0.0.5-1
|
|
|
|
- Upgrade to 0.0.5
|
|
|
|
|
2019-02-01 12:25:48 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-29 17:19:39 +00:00
|
|
|
* Tue Jan 29 2019 Till Maas <opensource@till.name> - 0.0.4-2
|
|
|
|
- Sync with upstream spec
|
|
|
|
- Use Recommends for NetworkManager
|
|
|
|
- Add Suggests for NetworkManager-ovs
|
|
|
|
- package examples as doc
|
|
|
|
|
2019-01-24 12:43:27 +00:00
|
|
|
* Thu Jan 24 2019 Gris Ge <fge@redhat.com> - 0.0.4-1
|
|
|
|
- Upgrade to 0.0.4.
|
|
|
|
|
2019-01-21 15:35:38 +00:00
|
|
|
* Mon Jan 21 2019 Gris Ge <fge@redhat.com> - 0.0.3-3
|
|
|
|
- Add missing runtime dependency for nmstatectl.
|
|
|
|
|
2019-01-02 11:47:18 +00:00
|
|
|
* Wed Jan 02 2019 Gris Ge <fge@redhat.com> - 0.0.3-2
|
|
|
|
- Add source file PGP verification.
|
|
|
|
|
2018-12-20 14:25:30 +00:00
|
|
|
* Thu Dec 20 2018 Gris Ge <fge@redhat.com> - 0.0.3-1
|
|
|
|
- Upgrade to 0.0.3.
|
|
|
|
|
2018-12-19 14:12:31 +00:00
|
|
|
* Mon Dec 03 2018 Gris Ge <fge@redhat.com> - 0.0.2-2
|
|
|
|
- Trival RPM SPEC fix.
|
|
|
|
|
|
|
|
* Wed Nov 28 2018 Gris Ge <fge@redhat.com> - 0.0.2-1
|
|
|
|
- Initial release.
|