nmstate/nmstate.spec
Gris Ge bbc6dd6de7 Initial import (RHBZ#1654666)
Signed-off-by: Gris Ge <fge@redhat.com>
2018-12-19 22:12:31 +08:00

62 lines
1.6 KiB
RPMSpec

%?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 <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.