2018-12-19 14:12:31 +00:00
|
|
|
%?python_enable_dependency_generator
|
|
|
|
%define srcname nmstate
|
|
|
|
%define libname libnmstate
|
|
|
|
|
|
|
|
Name: nmstate
|
2019-06-14 05:07:43 +00:00
|
|
|
Version: 0.0.7
|
2019-06-14 05:21:05 +00:00
|
|
|
Release: 2%{?dist}
|
2018-12-19 14:12:31 +00:00
|
|
|
Summary: Declarative network manager API
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/%{srcname}/%{srcname}
|
|
|
|
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
2019-01-02 11:47:18 +00:00
|
|
|
Source1: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz.asc
|
|
|
|
Source2: gpgkey-F7910D93CA83D77348595C0E899014C0463C12BB.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
|
|
|
|
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
|
2019-01-29 17:19:39 +00:00
|
|
|
# Once upstream fixed requirements.txt, remove the explicit dependency on
|
|
|
|
# python3-gobject-base and let let python_enable_dependency_generator macro
|
|
|
|
# generate it.
|
|
|
|
# Bug report: https://github.com/nmstate/nmstate/issues/184
|
2018-12-19 14:12:31 +00:00
|
|
|
Requires: python3-gobject-base
|
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
|
|
|
|
# Use Suggests for NetworkManager-ovs since it is only required for OVS support
|
|
|
|
Suggests: NetworkManager-ovs
|
2019-04-12 12:45:08 +00:00
|
|
|
Requires: python3-dbus
|
2019-01-29 17:19:39 +00:00
|
|
|
|
2018-12-19 14:12:31 +00:00
|
|
|
|
|
|
|
%description -n python3-%{libname}
|
|
|
|
This package contains the Python 3 library for nmstate.
|
|
|
|
|
|
|
|
%prep
|
2019-01-02 11:47:18 +00:00
|
|
|
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
2018-12-19 14:12:31 +00:00
|
|
|
%setup -q
|
2019-06-14 05:21:05 +00:00
|
|
|
sed -i -e '/^dbus-python$/d' requirements.txt
|
2018-12-19 14:12:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
2019-01-29 17:19:39 +00:00
|
|
|
%doc examples/
|
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/
|
|
|
|
|
|
|
|
%changelog
|
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.
|