%?python_enable_dependency_generator %define srcname nmstate %define libname libnmstate Name: nmstate Version: 0.0.8 Release: 15%{?dist} Summary: Declarative network manager API License: LGPLv2+ URL: https://github.com/%{srcname}/%{srcname} Source0: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz Source1: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc Source2: gpgkey-F7910D93CA83D77348595C0E899014C0463C12BB.gpg Patch1: BZ_1738101-Exclude-ipv6-changes-from-reapply.patch Patch2: BZ_1740554_rollback_to_ipv6_disabled.patch Patch3: BZ_1740584-Ignore-not-active-failure-when-deactivate.patch Patch4: BZ_1741049_vlan_interface_should_activated_after_base.patch Patch5: BZ_1740125_Increase-main-loop-timeout.patch Patch6: BZ_1741440_Fix_Activation_Race_of_Slave.patch Patch7: BZ_1749314_Prioritize-master-interfaces-activaction.patch Patch8: BZ_1748825_Change-DHCPv4-client-ID-to-MAC-address.patch Patch9: BZ_1748825_Enforce-IPv6-RA-and-DHCPv6-address-base-on-MAC.patch Patch10: BZ_1749632_Detach-slaves-without-deleting-them.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: gnupg2 Requires: python3-setuptools Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: NetworkManager-config-server %description NMState is a library with an accompanying command line tool that manages host 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 Requires: NetworkManager-libnm # Use Recommends for NetworkManager because only access to NM DBus is required, # but NM could be running on a different host Recommends: NetworkManager # Use Suggests for NetworkManager-ovs since it is only required for OVS support Suggests: NetworkManager-ovs %description -n python3-%{libname} This package contains the Python 3 library for nmstate. %prep gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %autosetup -p1 %build %py3_build %install %py3_install %files %doc README.md %doc examples/ %{python3_sitelib}/nmstatectl %{_bindir}/nmstatectl %files -n python3-%{libname} %license LICENSE %{python3_sitelib}/%{libname} %{python3_sitelib}/%{srcname}-*.egg-info/ %changelog * Tue Sep 10 2019 Gris Ge - 0.0.8-15 - Detach slaves without deleting them: RHBZ #1749632 * Fri Sep 06 2019 Gris Ge - 0.0.8-14 - Preserve (dynamic) IPv6 address base on MAC address: RHBZ #1748825 * Fri Sep 06 2019 Gris Ge - 0.0.8-13 - Prioritize master interfaces activaction: RHBZ #1749314 * Mon Sep 02 2019 Gris Ge - 0.0.8-12 - Fix slave activatoin race: RHBZ #1741440 * Mon Sep 02 2019 Gris Ge - 0.0.8-10 - Fix RHBZ #1740125 * Wed Aug 14 2019 Gris Ge - 0.0.8-9 - Fix RHBZ #1741049 * Wed Aug 14 2019 Gris Ge - 0.0.8-8 - Fix RHBZ #1740584 * Tue Aug 13 2019 Gris Ge - 0.0.8-7 - Fix RHBZ #1740554 * Tue Aug 13 2019 Gris Ge - 0.0.8-6 - Bump release tag as CNV took the -5. * Tue Aug 13 2019 Gris Ge - 0.0.8-5 - Bump release tag as CNV took the -4. * Tue Aug 13 2019 Gris Ge - 0.0.8-4 - Disable reapply on ipv6 to fix bug 1738101. * Fri Jul 26 2019 Gris Ge - 0.0.8-3 - Fix the license to meet Fedora/RHEL guideline. * Fri Jul 26 2019 Gris Ge - 0.0.8-2 - Relicense to LGPL2.1+. * Fri Jul 26 2019 Gris Ge - 0.0.8-1 - Upgrade to 0.0.8. * Fri Jun 14 2019 Gris Ge - 0.0.7-1 - Upgrade to 0.0.7. * Mon Apr 22 2019 Gris Ge - 0.0.5-3 - Add missing runtime dependency. * Thu Mar 21 2019 Gris Ge - 0.0.5-2 - Rebuild to enable CI testing. * Mon Mar 18 2019 Gris Ge - 0.0.5-1 - Initial release