File python-ryu.spec of Package python-ryu

#
# spec file for package python-ryu
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-ryu
Version:        4.15
Release:        0
Summary:        Component-based Software-defined Networking Framework
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://osrg.github.io/ryu/
Source:         https://pypi.io/packages/source/r/ryu/ryu-%{version}.tar.gz
Patch0:         only-import-pip-when-needed.patch
BuildRequires:  python-devel
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
Requires:       python-WebOb >= 1.2
Requires:       python-eventlet >= 0.18.2
Requires:       python-msgpack-python >= 0.3.0
Requires:       python-netaddr
Requires:       python-oslo.config >= 1.15.0
Requires:       python-ovs >= 2.6.0
Requires:       python-routes
Requires:       python-six >= 1.4.0
Requires:       python-tinyrpc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Ryu is a component-based software defined networking framework.
Ryu provides software components with well defined API that make it
easy for developers to create new network management and control
applications. Ryu supports various protocols for managing network
devices, such as OpenFlow, Netconf, OF-config, etc. About OpenFlow,
Ryu supports fully 1.0, 1.2, 1.3, 1.4, 1.5 and Nicira Extensions.

%prep
%setup -q -n ryu-%{version}
%patch0 -p1

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}
mv %{buildroot}/usr/%{_sysconfdir}/ryu %{buildroot}%{_sysconfdir}/ryu

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README.rst
%{python_sitelib}/*
%{_bindir}/ryu
%{_bindir}/ryu-manager
%dir %{_sysconfdir}/ryu
%config(noreplace) %{_sysconfdir}/ryu/ryu.conf

%changelog
openSUSE Build Service is sponsored by