File python-networking-odl.spec of Package python-networking-odl
#
# spec file for package python-networking-odl
#
# 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-networking-odl
Version: 4.0.0
Release: 0
Summary: Neutron driver for OpenDaylight
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/networking-odl
Source: https://pypi.python.org/packages/86/c5/10879e46155495b4ccaa3bad103b6f17f409adcbb86b2291dc0ef120b6f1/networking-odl-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-Babel
BuildRequires: python-devel
BuildRequires: python-neutron-lib
BuildRequires: python-pbr
BuildRequires: python-setuptools
BuildRequires: python-stevedore
Requires: python-Babel
Requires: python-neutron-lib
Requires: python-pbr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This is the external, decomposed plugin library for the OpenDaylight ML2
MechanismDriver. This is the backend code which handles communication with
OpenDaylight.
%prep
%setup -q -n networking-odl-%{version}
%build
rm requirements.txt test-requirements.txt
%{__python2} setup.py build
%install
python setup.py install --root=%{buildroot}
install -p -D -m 644 etc/neutron/plugins/ml2/ml2_conf_odl.ini %{buildroot}%{_sysconfdir}/neutron/plugins/ml2/ml2_conf_odl.ini
# Get rid of /usr/etc
rm -rf %{buildroot}/usr%{_sysconfdir}/
%fdupes %{buildroot}%{python_sitelib}/
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README.rst
%{python_sitelib}/networking_odl
%{python_sitelib}/networking_odl-%{version}-py%{python_version}.egg-info
%dir %{_sysconfdir}/neutron
%dir %{_sysconfdir}/neutron/plugins
%dir %{_sysconfdir}/neutron/plugins/ml2
%config %{_sysconfdir}/neutron/plugins/ml2/ml2_conf_odl.ini
%{_bindir}/neutron-odl-ovs-hostconfig
%changelog