diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe27311 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nmstate-0.0.2.tar.gz diff --git a/nmstate.spec b/nmstate.spec new file mode 100644 index 0000000..757b975 --- /dev/null +++ b/nmstate.spec @@ -0,0 +1,61 @@ +%?python_enable_dependency_generator + +%define srcname nmstate +%define libname libnmstate + +Name: nmstate +Version: 0.0.2 +Release: 3%{?dist} +Summary: Declarative network manager API +License: GPLv2+ +URL: https://github.com/%{srcname}/%{srcname} +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +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 +Requires: python3-gobject-base +# Once upstream fixed https://github.com/nmstate/nmstate/issues/184 +# Remove above requirement and let python_enable_dependency_generator +# macro generate it. +Suggests: NetworkManager + +%description -n python3-%{libname} +This package contains the Python 3 library for nmstate. + +%prep +%setup -q + +%build +%py3_build + +%install +%py3_install + +%files +%doc README.md +%{python3_sitelib}/nmstatectl +%{_bindir}/nmstatectl + +%files -n python3-%{libname} +%license LICENSE +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{srcname}-*.egg-info/ + +%changelog +* Mon Dec 03 2018 Gris Ge - 0.0.2-2 +- Trival RPM SPEC fix. + +* Wed Nov 28 2018 Gris Ge - 0.0.2-1 +- Initial release. diff --git a/sources b/sources new file mode 100644 index 0000000..9b6ab47 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nmstate-0.0.2.tar.gz) = d9a9bb38783c0e70d12a9a9a02866f7fd8fc288ec5ef436ea4de3e65e7ff5b93b4625e3229618166e009404ed733a4111d578dc0b57a4d494ddb0a92fa447c4e