Blame SPECS/nmstate.spec

Packit Service 84aef2
%?python_enable_dependency_generator
Packit Service 84aef2
%define srcname nmstate
Packit Service 84aef2
%define libname libnmstate
Packit Service 84aef2
Packit Service 84aef2
Name:           nmstate
Packit Service 84aef2
Version:        0.3.4
Packit Service 667582
Release:        15%{?dist}
Packit Service 84aef2
Summary:        Declarative network manager API
Packit Service 84aef2
License:        LGPLv2+
Packit Service 84aef2
URL:            https://github.com/%{srcname}/%{srcname}
Packit Service 84aef2
Source0:        %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
Packit Service 84aef2
Source1:        %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
Packit Service 84aef2
Source2:        https://www.nmstate.io/nmstate.gpg
Packit Service 84aef2
Patch1:         BZ_1858762-hide_ovs_patch_port_mtu.patch
Packit Service 84aef2
Patch2:         BZ_1861263-handle-external-managed-interface.patch
Packit Service 84aef2
Patch3:         BZ_1861668_ignore_unknown_iface.patch
Packit Service 84aef2
Patch4:         BZ_1862025-remove_existing_profiles.patch
Packit Service 84aef2
Patch5:         BZ_1858758-fix_ovs_bond.patch
Packit Service 84aef2
Patch6:         BZ_1859844-fix_converting_memory_only.patch
Packit Service 84aef2
Patch7:         BZ_1866269-preserve_nm_uuid_in_ovsdb.patch
Packit Service 84aef2
Patch8:         BZ_1869345_ovsdb_remove_all_ports.patch
Packit Service 84aef2
Patch9:         BZ_1887349-Allow-duplicate-iface-name-in-ovs.patch
Packit Service 667582
Patch10:        BZ_1890497-nm-bond-Ignore-ad_actor_system-00-00-00-00-00-00.patch
Packit Service 667582
Patch11:        BZ_1890497-nm.ipv6-call-clear_routing_rules-when-creating-the-s.patch
Packit Service 667582
Patch12:        BZ_1901571_do_not_check_ovs_daemon_when_showing.patch
Packit Service 84aef2
BuildArch:      noarch
Packit Service 84aef2
BuildRequires:  python3-devel
Packit Service 84aef2
BuildRequires:  python3-setuptools
Packit Service 84aef2
BuildRequires:  gnupg2
Packit Service 84aef2
Requires:       python3-setuptools
Packit Service 84aef2
Requires:       python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
Packit Service 84aef2
Packit Service 84aef2
%description
Packit Service 84aef2
Nmstate is a library with an accompanying command line tool that manages host
Packit Service 84aef2
networking settings in a declarative manner and aimed to satisfy enterprise
Packit Service 84aef2
needs to manage host networking through a northbound declarative API and multi
Packit Service 84aef2
provider support on the southbound.
Packit Service 84aef2
Packit Service 84aef2
Packit Service 84aef2
%package -n python3-%{libname}
Packit Service 84aef2
Summary:        nmstate Python 3 API library
Packit Service 84aef2
Requires:       NetworkManager-libnm >= 1:1.26.0
Packit Service 84aef2
# Use Recommends for NetworkManager because only access to NM DBus is required,
Packit Service 84aef2
# but NM could be running on a different host
Packit Service 84aef2
Recommends:     NetworkManager
Packit Service 84aef2
# Avoid automatically generated profiles
Packit Service 84aef2
Recommends:     NetworkManager-config-server
Packit Service 84aef2
# Use Suggests for NetworkManager-ovs and NetworkManager-team since it is only
Packit Service 84aef2
# required for OVS and team support
Packit Service 84aef2
Suggests:       NetworkManager-ovs
Packit Service 84aef2
Suggests:       NetworkManager-team
Packit Service 84aef2
Packit Service 84aef2
%package -n nmstate-plugin-ovsdb
Packit Service 84aef2
Summary:        nmstate plugin for OVS database manipulation
Packit Service 84aef2
Requires:       python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
Packit Service 84aef2
# The python-openvswitch rpm pacakge is not in the same repo with nmstate,
Packit Service 84aef2
# hence state it as Recommends, no requires.
Packit Service 84aef2
Recommends:     python3dist(ovs)
Packit Service 84aef2
Packit Service 84aef2
%description -n python3-%{libname}
Packit Service 84aef2
This package contains the Python 3 library for nmstate.
Packit Service 84aef2
Packit Service 84aef2
%description -n nmstate-plugin-ovsdb
Packit Service 84aef2
This package contains the nmstate plugin for OVS database manipulation.
Packit Service 84aef2
Packit Service 84aef2
%prep
Packit Service 84aef2
gpg2 --import --import-options import-export,import-minimal %{SOURCE2} > ./gpgkey-mantainers.gpg
Packit Service 84aef2
gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
Packit Service 84aef2
%autosetup -p1
Packit Service 84aef2
Packit Service 84aef2
%build
Packit Service 84aef2
%py3_build
Packit Service 84aef2
Packit Service 84aef2
%install
Packit Service 84aef2
%py3_install
Packit Service 84aef2
Packit Service 84aef2
%files
Packit Service 84aef2
%doc README.md
Packit Service 84aef2
%doc examples/
Packit Service 84aef2
%{_mandir}/man8/nmstatectl.8*
Packit Service 84aef2
%{python3_sitelib}/nmstatectl
Packit Service 84aef2
%{_bindir}/nmstatectl
Packit Service 84aef2
Packit Service 84aef2
%files -n python3-%{libname}
Packit Service 84aef2
%license LICENSE
Packit Service 84aef2
%{python3_sitelib}/%{libname}
Packit Service 84aef2
%{python3_sitelib}/%{srcname}-*.egg-info/
Packit Service 84aef2
%exclude %{python3_sitelib}/%{libname}/plugins/nmstate_plugin_*
Packit Service 84aef2
%exclude %{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_*
Packit Service 84aef2
Packit Service 84aef2
%files -n nmstate-plugin-ovsdb
Packit Service 84aef2
%{python3_sitelib}/%{libname}/plugins/nmstate_plugin_ovsdb*
Packit Service 84aef2
%{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb*
Packit Service 84aef2
Packit Service 84aef2
%changelog
Packit Service 667582
* Thu Nov 26 2020 Gris Ge <fge@redhat.com> - 0.3.4-15
Packit Service 667582
- Fix `libnmstate.show()` in container with OVS bridge. RHBZ#1901571
Packit Service 667582
Packit Service 667582
* Wed Nov 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.4-14
Packit Service 667582
- Ignore bond zero ad_actor_system. RHBZ#1890497
Packit Service 667582
- Fix clear IPv6 routing rules.
Packit Service 667582
Packit Service 84aef2
* Wed Oct 14 2020 Gris Ge <fge@redhat.com> - 0.3.4-13
Packit Service 84aef2
- Allowing duplicate interface name of ovs. RHBZ#1887349
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 18 2020 Gris Ge <fge@redhat.com> - 0.3.4-12
Packit Service 84aef2
- New patch: OVSDB: Allowing remove all OVS ports. RHBZ#1869345
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 18 2020 Gris Ge <fge@redhat.com> - 0.3.4-11
Packit Service 84aef2
- OVSDB: Allowing remove all OVS ports. RHBZ#1869345
Packit Service 84aef2
Packit Service 84aef2
* Thu Aug 06 2020 Gris Ge <fge@redhat.com> - 0.3.4-10
Packit Service 84aef2
- OVSDB: Preserv old external_ids. RHBZ#1866269
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 04 2020 Gris Ge <fge@redhat.com> - 0.3.4-9
Packit Service 84aef2
- Fix converting memory only profile to persistent. RHBZ#1859844
Packit Service 84aef2
Packit Service 84aef2
* Mon Aug 03 2020 Gris Ge <fge@redhat.com> - 0.3.4-8
Packit Service 84aef2
- Fix failure when adding ovs bond to existing bridge. RHBZ#1858758
Packit Service 84aef2
Packit Service 84aef2
* Thu Jul 30 2020 Gris Ge <fge@redhat.com> - 0.3.4-7
Packit Service 84aef2
- Remove existing inactivate NM profiles. RHBZ#1862025
Packit Service 84aef2
Packit Service 84aef2
* Wed Jul 29 2020 Gris Ge <fge@redhat.com> - 0.3.4-6
Packit Service 84aef2
- New build to retrigger the CI gating.
Packit Service 84aef2
Packit Service 84aef2
* Wed Jul 29 2020 Gris Ge <fge@redhat.com> - 0.3.4-5
Packit Service 84aef2
- Use new patch. RHBZ#1861668
Packit Service 84aef2
Packit Service 84aef2
* Wed Jul 29 2020 Gris Ge <fge@redhat.com> - 0.3.4-4
Packit Service 84aef2
- Ignore unknown interface. RHBZ#1861668
Packit Service 84aef2
Packit Service 84aef2
* Tue Jul 28 2020 Gris Ge <fge@redhat.com> - 0.3.4-3
Packit Service 84aef2
- Add support NetworkManaged exteranl managed interface. RHBZ#1861263
Packit Service 84aef2
Packit Service 84aef2
* Tue Jul 28 2020 Gris Ge <fge@redhat.com> - 0.3.4-2
Packit Service 84aef2
- Hide MTU for OVS patch port. RHBZ#1858762
Packit Service 84aef2
Packit Service 84aef2
* Sat Jul 25 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.4-1
Packit Service 84aef2
- Upgrade to 0.3.4
Packit Service 84aef2
Packit Service 84aef2
* Fri Jul 24 2020 Gris Ge <fge@redhat.com> - 0.3.3-3
Packit Service 84aef2
- Allowing child been marked absent. RHBZ#1859148
Packit Service 84aef2
Packit Service 84aef2
* Mon Jul 06 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.3-2
Packit Service 84aef2
- Fix bug 1850698
Packit Service 84aef2
Packit Service 84aef2
* Thu Jul 02 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.3-1
Packit Service 84aef2
- Upgrade to 0.3.3
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 29 2020 Gris Ge <fge@redhat.com> - 0.3.2-6
Packit Service 84aef2
- Improve performance by remove unneeded calls. RHBZ#1820009
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 29 2020 Gris Ge <fge@redhat.com> - 0.3.2-5
Packit Service 84aef2
- Sort the pretty state with priority. RHBZ#1806474
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 29 2020 Gris Ge <fge@redhat.com> - 0.3.2-4
Packit Service 84aef2
- Canonicalize IP address. RHBZ#1816612
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 29 2020 Gris Ge <fge@redhat.com> - 0.3.2-3
Packit Service 84aef2
- Improve VLAN MTU error message. RHBZ#1788763
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 29 2020 Gris Ge <fge@redhat.com> - 0.3.2-2
Packit Service 84aef2
- Fix bug 1850698
Packit Service 84aef2
Packit Service 84aef2
* Mon Jun 15 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.2-1
Packit Service 84aef2
- Upgrade to 0.3.2
Packit Service 84aef2
- Sync. up with upstream spec file
Packit Service 84aef2
Packit Service 84aef2
* Thu Jun 11 2020 Gris Ge <fge@redhat.com> - 0.3.1-1
Packit Service 84aef2
- Upgrade to 0.3.1
Packit Service 84aef2
Packit Service 84aef2
* Wed May 13 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-1
Packit Service 84aef2
- Upgrade to 0.3.0
Packit Service 84aef2
- Sync. up with upstream spec file.
Packit Service 84aef2
- Update signature verification.
Packit Service 84aef2
Packit Service 84aef2
* Tue Mar 31 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.9-1
Packit Service 84aef2
- Upgrade to 0.2.9
Packit Service 84aef2
Packit Service 84aef2
* Wed Mar 25 2020 Gris Ge <fge@redhat.com> - 0.2.6-6
Packit Service 84aef2
- Support 3+ DNS name server(IPv4 only or IPv6 only). RHBZ #1816043
Packit Service 84aef2
Packit Service 84aef2
* Fri Mar 20 2020 Gris Ge <fge@redhat.com> - 0.2.6-5
Packit Service 84aef2
- Support static DNS with DHCP. RHBZ #1815112
Packit Service 84aef2
Packit Service 84aef2
* Thu Mar 12 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.6-4.8
Packit Service 84aef2
- Fix bond mac and options regression. RHBZ #1809330
Packit Service 84aef2
Packit Service 84aef2
* Mon Mar 09 2020 Gris Ge <fge@redhat.com> - 0.2.6-3.8
Packit Service 84aef2
- Fix change bond mode. RHBZ #1809330
Packit Service 84aef2
Packit Service 84aef2
* Mon Mar 02 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.6-2.7
Packit Service 84aef2
- Fix cmd stuck when trying to create ovs-bond. RHBZ #1806249.
Packit Service 84aef2
Packit Service 84aef2
* Tue Feb 25 2020 Gris Ge <fge@redhat.com> - 0.2.6-1
Packit Service 84aef2
- Upgrade to 0.2.6
Packit Service 84aef2
Packit Service 84aef2
* Thu Feb 20 2020 Gris Ge <fge@redhat.com> - 0.2.5-1
Packit Service 84aef2
- Upgrade to 0.2.5
Packit Service 84aef2
Packit Service 84aef2
* Thu Feb 13 2020 Gris Ge <fge@redhat.com> - 0.2.4-2
Packit Service 84aef2
- Fix failure when editing existing OVS interface. RHBZ #1786935
Packit Service 84aef2
Packit Service 84aef2
* Thu Feb 13 2020 Gris Ge <fge@redhat.com> - 0.2.4-1
Packit Service 84aef2
- Upgrade to 0.2.4
Packit Service 84aef2
Packit Service 84aef2
* Wed Feb 05 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.3-1
Packit Service 84aef2
- Upgrade to 0.2.3
Packit Service 84aef2
Packit Service 84aef2
* Tue Feb 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.2-3
Packit Service 84aef2
- Fix the incorrect source
Packit Service 84aef2
Packit Service 84aef2
* Tue Feb 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.2-2
Packit Service 84aef2
- Upgrade to 0.2.2
Packit Service 84aef2
Packit Service 84aef2
* Wed Jan 22 2020 Gris Ge <fge@redhat.com> - 0.2.0-3.1
Packit Service 84aef2
- Fix the memeory leak of NM.Client. RHBZ #1784707
Packit Service 84aef2
Packit Service 84aef2
* Mon Dec 02 2019 Gris Ge <fge@redhat.com> - 0.2.0-2
Packit Service 84aef2
- Fix the incorrect source tarbal.
Packit Service 84aef2
Packit Service 84aef2
* Mon Dec 02 2019 Gris Ge <fge@redhat.com> - 0.2.0-1
Packit Service 84aef2
- Upgrade to nmstate 0.2.0
Packit Service 84aef2
Packit Service 84aef2
* Mon Dec 02 2019 Gris Ge <fge@redhat.com> - 0.1.1-4
Packit Service 84aef2
- Fix the problem found by CI gating.
Packit Service 84aef2
Packit Service 84aef2
* Mon Dec 02 2019 Gris Ge <fge@redhat.com> - 0.1.1-3
Packit Service 84aef2
- Bump dist number as RHEL 8.1.1 took 0.1.1-2.
Packit Service 84aef2
Packit Service 84aef2
* Mon Dec 02 2019 Gris Ge <fge@redhat.com> - 0.1.1-2
Packit Service 84aef2
- Upgrade to nmstate 0.1.1.
Packit Service 84aef2
Packit Service 84aef2
* Tue Sep 10 2019 Gris Ge <fge@redhat.com> - 0.0.8-15
Packit Service 84aef2
- Detach slaves without deleting them: RHBZ #1749632
Packit Service 84aef2
Packit Service 84aef2
* Fri Sep 06 2019 Gris Ge <fge@redhat.com> - 0.0.8-14
Packit Service 84aef2
- Preserve (dynamic) IPv6 address base on MAC address: RHBZ #1748825
Packit Service 84aef2
Packit Service 84aef2
* Fri Sep 06 2019 Gris Ge <fge@redhat.com> - 0.0.8-13
Packit Service 84aef2
- Prioritize master interfaces activaction: RHBZ #1749314
Packit Service 84aef2
Packit Service 84aef2
* Mon Sep 02 2019 Gris Ge <fge@redhat.com> - 0.0.8-12
Packit Service 84aef2
- Fix slave activatoin race: RHBZ #1741440
Packit Service 84aef2
Packit Service 84aef2
* Mon Sep 02 2019 Gris Ge 
Packit Service 84aef2
- Add NetworkManager-config-server dependency: Fix RHBZ #1740085
Packit Service 84aef2
Packit Service 84aef2
* Thu Aug 15 2019 Gris Ge <fge@redhat.com> - 0.0.8-10
Packit Service 84aef2
- Fix RHBZ #1740125
Packit Service 84aef2
Packit Service 84aef2
* Wed Aug 14 2019 Gris Ge <fge@redhat.com> - 0.0.8-9
Packit Service 84aef2
- Fix RHBZ #1741049
Packit Service 84aef2
Packit Service 84aef2
* Wed Aug 14 2019 Gris Ge <fge@redhat.com> - 0.0.8-8
Packit Service 84aef2
- Fix RHBZ #1740584
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 13 2019 Gris Ge <fge@redhat.com> - 0.0.8-7
Packit Service 84aef2
- Fix RHBZ #1740554
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 13 2019 Gris Ge <fge@redhat.com> - 0.0.8-6
Packit Service 84aef2
- Bump release tag as CNV took the -5.
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 13 2019 Gris Ge <fge@redhat.com> - 0.0.8-5
Packit Service 84aef2
- Bump release tag as CNV took the -4.
Packit Service 84aef2
Packit Service 84aef2
* Tue Aug 13 2019 Gris Ge <fge@redhat.com> - 0.0.8-4
Packit Service 84aef2
- Disable reapply on ipv6 to fix bug 1738101.
Packit Service 84aef2
Packit Service 84aef2
* Fri Jul 26 2019 Gris Ge <fge@redhat.com> - 0.0.8-3
Packit Service 84aef2
- Fix the license to meet Fedora/RHEL guideline.
Packit Service 84aef2
Packit Service 84aef2
* Fri Jul 26 2019 Gris Ge <fge@redhat.com> - 0.0.8-2
Packit Service 84aef2
- Relicense to LGPL2.1+.
Packit Service 84aef2
Packit Service 84aef2
* Fri Jul 26 2019 Gris Ge <fge@redhat.com> - 0.0.8-1
Packit Service 84aef2
- Upgrade to 0.0.8.
Packit Service 84aef2
Packit Service 84aef2
* Fri Jun 14 2019 Gris Ge <fge@redhat.com> - 0.0.7-1
Packit Service 84aef2
- Upgrade to 0.0.7.
Packit Service 84aef2
Packit Service 84aef2
* Mon Apr 22 2019 Gris Ge <fge@redhat.com> - 0.0.5-3
Packit Service 84aef2
- Add missing runtime dependency.
Packit Service 84aef2
Packit Service 84aef2
* Thu Mar 21 2019 Gris Ge <fge@redhat.com> - 0.0.5-2
Packit Service 84aef2
- Rebuild to enable CI testing.
Packit Service 84aef2
Packit Service 84aef2
* Mon Mar 18 2019 Gris Ge <fge@redhat.com> - 0.0.5-1
Packit Service 84aef2
- Initial release