File openstack-neutron.spec of Package openstack-neutron.openSUSE_13.1_Update

#
# spec file for package openstack-neutron
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


%define component neutron
%define groupname openstack-%{component}
%define username openstack-%{component}

Name:           openstack-neutron
Version:        2013.2
Release:        0
Summary:        OpenStack Network
License:        Apache-2.0
Group:          System/Management
Url:            https://launchpad.net/neutron
Source:         neutron-2013.2.tar.gz
Source1:        openstack-%{component}.init
Source2:        %{name}.logrotate
Source3:        neutron-sudoers
Source4:        openstack-%{component}-plugin.init
Source5:        sysconfig.neutron
Patch0:         0001-Fix-update_device_up-method-of-linuxbridge-plugin.patch
BuildRequires:  crudini
BuildRequires:  fdupes
BuildRequires:  openstack-suse-macros
BuildRequires:  openstack-suse-sudo
BuildRequires:  python-devel
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
# Documentation build requirements:
BuildRequires:  python-Sphinx
Requires:       logrotate
Requires:       openstack-suse-sudo
Requires:       python >= 2.6.8
Requires:       python-neutron = %{version}
Requires:       python-oslo.config >= 1.2.0
Provides:       openstack-quantum = 2013.2.0
Obsoletes:      openstack-quantum < 2013.2.0
Requires(pre):  pwdutils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%py_requires
%else
BuildArch:      noarch
%endif
PreReq:         %fillup_prereq

%description
Neutron is a virtual network service for Openstack.

Just like OpenStack Nova provides an API to dynamically request and
configure virtual servers, Neutron provides an API to dynamically
request and configure virtual networks. These networks connect
"interfaces" from other OpenStack services (e.g., vNICs from Nova VMs).
The Neutron API supports extensions to provide advanced network
capabilities (e.g., QoS, ACLs, network monitoring, etc)

%package -n python-neutron
Summary:        OpenStack Network - Python module
Group:          Development/Languages/Python
Requires:       python >= 2.6.8
Requires:       python-Jinja2
Requires:       python-Paste
Requires:       python-PasteDeploy >= 1.5.0
Requires:       python-Routes >= 1.12.3
Requires:       python-SQLAlchemy >= 0.7.8
Requires:       python-WebOb >= 1.2.3
Requires:       python-alembic >= 0.4.1
Requires:       python-amqplib >= 0.6.1
Requires:       python-anyjson >= 0.3.3
Requires:       python-eventlet >= 0.13.0
Requires:       python-greenlet >= 0.3.2
Requires:       python-httplib2
Requires:       python-iso8601 >= 0.1.4
Requires:       python-jsonrpclib
Requires:       python-keystoneclient >= 0.3.2
Requires:       python-kombu >= 2.4.8
Requires:       python-netaddr
Requires:       python-neutronclient >= 2.3.0
Requires:       python-novaclient >= 2.15.0
Requires:       python-oslo.config >= 1.2.0
Requires:       python-pbr >= 0.5.21
Requires:       python-pyudev
Requires:       python-requests >= 1.1
Requires:       python-six
Requires:       python-stevedore >= 0.10
Provides:       python-quantum = 2013.2.0
Obsoletes:      python-quantum < 2013.2.0

%description -n python-neutron
This package contains the core Python module of OpenStack Neutron.

%package server
Summary:        OpenStack Network - Python module
Group:          Development/Languages/Python
PreReq:         %name = %version
Requires:       python-Babel >= 0.9.6
Provides:       openstack-quantum-server = 2013.2.0
Obsoletes:      openstack-quantum-server < 2013.2.0

%description server
This package provides the Neutron server

%package dhcp-agent
Summary:        OpenStack Network - DHCP Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Requires:       dnsmasq
%if 0%{?suse_version} >= 1310
Requires:       dnsmasq-utils
%endif
Provides:       openstack-quantum-dhcp-agent = 2013.2.0
Obsoletes:      openstack-quantum-dhcp-agent < 2013.2.0

%description dhcp-agent
This package provides the DHCP Agent.

%package hyperv-agent
Summary:        OpenStack Network - Hyper-V Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-quantum-hyperv-agent = 2013.2.0
Obsoletes:      openstack-quantum-hyperv-agent < 2013.2.0

%description hyperv-agent
This package provides the Hyper-V Agent.

%package l3-agent
Summary:        OpenStack Network Service (Neutron) - L3 Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-quantum-l3-agent = 2013.2.0
Obsoletes:      openstack-quantum-l3-agent < 2013.2.0

%description l3-agent
This package provides the L3 Agent.

%package lbaas-agent
Summary:        OpenStack Network - Load Balancing Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-quantum-lbaas-agent = 2013.2.0
Obsoletes:      openstack-quantum-lbaas-agent < 2013.2.0

%description lbaas-agent
This package provides the Load Balancing as a Service Agent.


%package linuxbridge-agent
Summary:        OpenStack Network - Linux Bridge Agent
Group:          Development/Languages/Python
Provides:       openstack-neutron-agent = %version
PreReq:         %name = %version
Provides:       openstack-quantum-linuxbridge-agent = 2013.2.0
Obsoletes:      openstack-quantum-linuxbridge-agent < 2013.2.0

%description linuxbridge-agent
This package provides the Linux Bridge Agent.

%package metadata-agent
Summary:        OpenStack Network - Meta Data Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-quantum-metadata-agent = 2013.2.0
Obsoletes:      openstack-quantum-metadata-agent < 2013.2.0

%description metadata-agent
This package provides the Meta Data Agent.

%package metering-agent
Summary:        OpenStack Network - Metering Agent
Group:          Development/Languages/Python
PreReq:         %name = %version

%description metering-agent
This package provides the Metering Agent.

%package mlnx-agent
Summary:        OpenStack Network - Mellanox Plugin
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-quantum-mlnx-agent = 2013.2.0
Obsoletes:      openstack-quantum-mlnx-agent < 2013.2.0

%description mlnx-agent
This package provides the Mellanox Agent

%package nec-agent
Summary:        OpenStack Network - NEC Agent
Group:          Development/Languages/Python
PreReq:         %name = %version
Provides:       openstack-neutron-agent = %version
Provides:       openstack-quantum-nec-agent = 2013.2.0
Obsoletes:      openstack-quantum-nec-agent < 2013.2.0

%description nec-agent
This package provides the NEC Agent.

%package ryu-agent
Summary:        OpenStack Network - ryu Agent
Group:          Development/Languages/Python
Provides:       openstack-neutron-agent = %version
PreReq:         %name = %version
Provides:       openstack-quantum-ryu-agent = 2013.2.0
Obsoletes:      openstack-quantum-ryu-agent < 2013.2.0

%description ryu-agent
This package provides the ryu Agent.

%package openvswitch-agent
Summary:        OpenStack Network - Open vSwitch
Group:          Development/Languages/Python
Provides:       openstack-neutron-agent = %version
PreReq:         %name = %version
Requires:       openvswitch
Provides:       openstack-quantum-openvswitch-agent = 2013.2.0
Obsoletes:      openstack-quantum-openvswitch-agent < 2013.2.0

%description openvswitch-agent
This package provides the OpenVSwitch Agent.

%package vpn-agent
Summary:        OpenStack Network - VPN Agent
Group:          Development/Languages/Python
PreReq:         %name = %version

%description vpn-agent
This package provides the VPN Agent.

%package plugin-cisco
Summary:        OpenStack Network - Cisco Plugin (openvswitch based)
Group:          Development/Languages/Python
Provides:       openstack-neuton-plugin-cisco = %version
PreReq:         %name = %version
PreReq:         %name-server = %version
Requires:       openvswitch
Requires:       python >= 2.6.8
Requires:       python-configobj
Requires:       python-ncclient

%description plugin-cisco
This package provides cisco plugin for OpenStack Network server.

%package test
Summary:        OpenStack Network - Testsuite
Group:          Development/Languages/Python
Requires:       %{name} = %{version}
Requires:       python-WebTest >= 2.0
Requires:       python-cliff >= 1.4.3
Requires:       python-configobj
Requires:       python-coverage >= 3.6
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires:       python-discover
%endif
Requires:       python-fixtures >= 0.3.14
Requires:       python-flake8 >= 2.0
Requires:       python-hacking >= 0.5.6
Requires:       python-mock >= 1.0
Requires:       python-mox >= 0.5.3
Requires:       python-pep8 >= 1.4.5
Requires:       python-pyflakes >= 0.7.2
Requires:       python-python-subunit
Requires:       python-testrepository >= 0.0.17
Requires:       python-testtools >= 0.9.32
Provides:       openstack-quantum-test = 2013.2.0
Obsoletes:      openstack-quantum-test < 2013.2.0

%description test
The OpenStack Neutron testsuite. It is used to verify the functionality
of OpenStack Neutron.

%prep
%setup -q -n neutron-2013.2
%patch0 -p1
## comment me in
# %xopenstack_cleanup_prep

%build
python setup.py build
python setup.py build_sphinx -b man

%install
python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot} --install-data=/

### directories
install -d -m 755 %{buildroot}%{_localstatedir}/run/%{component}
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{component}
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{component}

### configuration files
# all needed files are installed automatically
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

### init scripts
rm %{buildroot}%{_initddir}/%{component}-server
install -p -D -m 755 %{SOURCE1} %{buildroot}%{_initddir}/openstack-%{component}
mkdir -p %{buildroot}%{_sbindir}
ln -s ../..%{_initddir}/openstack-%{component} %{buildroot}%{_sbindir}/rcopenstack-%{component}

agents=(\
     l3-agent \
     lbaas-agent \
     dhcp-agent \
     hyperv-agent \
     openvswitch-agent \
     linuxbridge-agent \
     metadata-agent \
     metering-agent \
     mlnx-agent \
     vpn-agent \
)
agentPaths=(
     /etc/%{component}/l3_agent.ini \
     /etc/%{component}/lbaas_agent.ini \
     /etc/%{component}/dhcp_agent.ini  \
     /etc/%{component}/plugins/hyperv/hyperv_neutron_plugin.ini \
     /etc/%{component}/plugins/openvswitch/ovs_neutron_plugin.ini \
     /etc/%{component}/plugins/linuxbridge/linuxbridge_conf.ini \
     /etc/%{component}/metadata_agent.ini \
     /etc/%{component}/metering_agent.ini \
     /etc/%{component}/plugins/mlnx-agent.ini \
     /etc/%{component}/vpn_agent.ini \
)

for i in ${!agents[@]} ; do
  install -D -m 755 %{SOURCE4} %{buildroot}%{_initddir}/openstack-%{component}-${agents[$i]}
  sed -i -e "s,__NAME__,${agents[$i]},g" %{buildroot}%{_initddir}/openstack-%{component}-${agents[$i]}
  if [ ! -z ${agentPaths[$i]} ] ; then
    sed -i -e "s,__PLUGIN_CONFFILE__,${agentPaths[$i]},g" %{buildroot}%{_initddir}/openstack-%{component}-${agents[$i]}
  else
    sed -i -e "s,__PLUGIN_CONFFILE__,,g" %{buildroot}%{_initddir}/openstack-%{component}-${agents[$i]}
  fi
  ln -s ../..%{_initddir}/openstack-%{component}-${agents[$i]} %{buildroot}%{_sbindir}/rcopenstack-%{component}-${agents[$i]}
done

### sudoers configuration for nova-rootwrap:
install -D -m 440 %{SOURCE3} %{buildroot}%{_sysconfdir}/sudoers.d/openstack-neutron

### documentation
install -d %{buildroot}%{_mandir}/man1
install -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1

## SUSE configuration defaults
crudini --set %{buildroot}/etc/neutron/neutron.conf DEFAULT verbose True
crudini --set %{buildroot}/etc/neutron/neutron.conf DEFAULT core_plugin neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2
crudini --set %{buildroot}/etc/neutron/neutron.conf agent root_helper "sudo neutron-rootwrap /etc/neutron/rootwrap.conf"
crudini --set %{buildroot}/etc/neutron/neutron.conf DEFAULT log_dir /var/log/neutron
crudini --set %{buildroot}/etc/neutron/dhcp_agent.ini DEFAULT interface_driver neutron.agent.linux.interface.BridgeInterfaceDriver
crudini --set %{buildroot}/etc/neutron/l3_agent.ini DEFAULT external_network_bridge "br-ex"
crudini --set %{buildroot}/etc/neutron/l3_agent.ini DEFAULT interface_driver neutron.agent.linux.interface.BridgeInterfaceDriver

### test subpackage
%openstack_test_package_install
%fdupes %{buildroot}%{_localstatedir}/lib/%{name}-test

#TODO/FIXME: there's an upstream discussion on how to install these,
# it's related to setuptools_git / MANIFEST.in issues.
for i in neutron/tests/unit/nicira/etc/* \
         neutron/tests/etc/rootwrap.d/neutron.test.filters \
         neutron/tests/etc/api-paste.ini.test \
         neutron/tests/etc/neutron.conf.test ; do
    install -m 0644 -D $i %{buildroot}%{python_sitelib}/$i
done

### sysconfig

install -d -m 755 %{buildroot}/var/adm/fillup-templates
install -m 644 %{S:5} %{buildroot}/var/adm/fillup-templates

### misc
%fdupes %{buildroot}%{python_sitelib}/%{component}
%fdupes %{buildroot}%{_bindir}

### authentication cache dir
mkdir -p %{buildroot}%{_localstatedir}/cache/%{component}

%pre
getent group %{groupname} > /dev/null || groupadd -r %{groupname}
getent passwd %{username} > /dev/null || useradd -r -g %{groupname} -d %{_localstatedir}/lib/neutron -s /sbin/nologin -c "Openstack Neutron Daemons" %{username}
exit 0

%post server
%{fillup_and_insserv -f openstack-%{component}}

%preun server
%stop_on_removal openstack-%{component}

%postun server
%restart_on_update openstack-%{component}
%insserv_cleanup

%post
%{fillup_only -n neutron}

%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config %{_sysconfdir}/sudoers.d/openstack-neutron
%dir %{_sysconfdir}/%{component}
%config(noreplace) %{_sysconfdir}/%{component}/api-paste.ini
%config %{_sysconfdir}/%{component}/policy.json
%config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/neutron.conf
%config %{_sysconfdir}/%{component}/rootwrap.conf
%dir %{_sysconfdir}/%{component}/rootwrap.d/
%ghost %dir %attr(0755, %{username}, root) %{_localstatedir}/run/%{component}
%dir %attr(0755, %{username}, root) %{_localstatedir}/lib/%{component}
%dir %attr(0755, %{username}, %{groupname}) %{_localstatedir}/cache/%{component}
%dir %attr(0755, %{username}, %{groupname}) %{_localstatedir}/log/%{component}
%dir %{_sysconfdir}/%{component}/plugins
%dir %{_sysconfdir}/%{component}/plugins/bigswitch/
%dir %{_sysconfdir}/%{component}/plugins/brocade/
%dir %{_sysconfdir}/%{component}/plugins/hyperv/
%dir %{_sysconfdir}/%{component}/plugins/metaplugin/
%dir %{_sysconfdir}/%{component}/plugins/midonet
%dir %{_sysconfdir}/%{component}/plugins/ml2
%dir %{_sysconfdir}/%{component}/plugins/nec/
%dir %{_sysconfdir}/%{component}/plugins/nicira/
%dir %{_sysconfdir}/%{component}/plugins/plumgrid/
%dir %{_sysconfdir}/%{component}/plugins/ryu/
%config(noreplace) %{_sysconfdir}/%{component}/plugins/bigswitch/restproxy.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/hyperv/hyperv_neutron_plugin.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/linuxbridge/linuxbridge_conf.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/metaplugin/metaplugin.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/midonet/midonet.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/ml2/ml2_conf.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/ml2/ml2_conf_arista.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/ml2/ml2_conf_cisco.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/nec/nec.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/nicira/nvp.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/brocade/brocade.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/plumgrid/plumgrid.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/openvswitch/ovs_neutron_plugin.ini
%config(noreplace) %{_sysconfdir}/%{component}/plugins/ryu/ryu.ini
%config %{_sysconfdir}/%{component}/rootwrap.d/iptables-firewall.filters
%{_bindir}/%{component}-debug
%{_bindir}/quantum-debug
%{_bindir}/%{component}-check-nvp-config
%{_bindir}/quantum-check-nvp-config
%{_bindir}/%{component}-netns-cleanup
%{_bindir}/quantum-netns-cleanup
%{_bindir}/%{component}-ns-metadata-proxy
%{_bindir}/quantum-ns-metadata-proxy
%{_bindir}/%{component}-rootwrap
%{_bindir}/quantum-rootwrap
%{_bindir}/%{component}-rootwrap-xen-dom0
%{_bindir}/quantum-rootwrap-xen-dom0
%{_bindir}/%{component}-usage-audit
%{_bindir}/quantum-usage-audit
%{_mandir}/man1/%{component}-server.1%{?ext_man}
/var/adm/fillup-templates/sysconfig.neutron

%files dhcp-agent
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-dhcp-agent
%{_bindir}/quantum-dhcp-agent
%{_initddir}/openstack-%{component}-dhcp-agent
%{_sbindir}/rcopenstack-%{component}-dhcp-agent
%config(noreplace) %{_sysconfdir}/%{component}/dhcp_agent.ini
%config %{_sysconfdir}/%{component}/rootwrap.d/dhcp.filters

%files hyperv-agent
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-hyperv-agent
%{_bindir}/quantum-hyperv-agent
%{_initddir}/openstack-%{component}-hyperv-agent
%{_sbindir}/rcopenstack-%{component}-hyperv-agent
%dir %{_sysconfdir}/%{component}/plugins/hyperv/

%files l3-agent
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-l3-agent
%{_bindir}/quantum-l3-agent
%config %{_sysconfdir}/%{component}/rootwrap.d/l3.filters
%config(noreplace) %{_sysconfdir}/%{component}/l3_agent.ini
%{_initddir}/openstack-%{component}-l3-agent
%{_sbindir}/rcopenstack-%{component}-l3-agent

%files lbaas-agent
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-lbaas-agent
%{_bindir}/quantum-lbaas-agent
%config(noreplace) %{_sysconfdir}/%{component}/lbaas_agent.ini
%config %{_sysconfdir}/%{component}/rootwrap.d/lbaas-haproxy.filters
%{_initddir}/openstack-%{component}-lbaas-agent
%{_sbindir}/rcopenstack-%{component}-lbaas-agent

%files metadata-agent
%defattr(-,root,root,-)
%doc LICENSE
%config(noreplace) %{_sysconfdir}/%{component}/metadata_agent.ini
%{_bindir}/%{component}-metadata-agent
%{_bindir}/quantum-metadata-agent
%{_initddir}/openstack-%{component}-metadata-agent
%{_sbindir}/rcopenstack-%{component}-metadata-agent

%files metering-agent
%defattr(-,root,root,-)
%doc LICENSE
%config(noreplace) %{_sysconfdir}/%{component}/metering_agent.ini
%{_bindir}/%{component}-metering-agent
%{_initddir}/openstack-%{component}-metering-agent
%{_sbindir}/rcopenstack-%{component}-metering-agent

%files mlnx-agent
%defattr(-,root,root,-)
%doc LICENSE
%dir %{_sysconfdir}/%{component}/plugins/mlnx
%config(noreplace) %{_sysconfdir}/%{component}/plugins/mlnx/mlnx_conf.ini
%{_bindir}/%{component}-mlnx-agent
%{_bindir}/quantum-mlnx-agent
%{_initddir}/openstack-%{component}-mlnx-agent
%{_sbindir}/rcopenstack-%{component}-mlnx-agent

%files nec-agent
%defattr(-,root,root,-)
%doc LICENSE
%config %{_sysconfdir}/%{component}/rootwrap.d/nec-plugin.filters
%{_bindir}/%{component}-nec-agent
%{_bindir}/quantum-nec-agent

%files ryu-agent
%defattr(-,root,root,-)
%doc LICENSE
%config %{_sysconfdir}/%{component}/rootwrap.d/ryu-plugin.filters
%{_bindir}/%{component}-ryu-agent
%{_bindir}/quantum-ryu-agent

%files linuxbridge-agent
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-linuxbridge-agent
%{_bindir}/quantum-linuxbridge-agent
%config %{_sysconfdir}/%{component}/rootwrap.d/linuxbridge-plugin.filters
%dir %{_sysconfdir}/%{component}/plugins/linuxbridge/
%{_initddir}/openstack-%{component}-linuxbridge-agent
%{_sbindir}/rcopenstack-%{component}-linuxbridge-agent

%files openvswitch-agent
%defattr(-,root,root,-)
%doc LICENSE
%dir %{_sysconfdir}/%{component}/plugins/openvswitch/
%{_bindir}/%{component}-openvswitch-agent
%{_bindir}/quantum-openvswitch-agent
%{_bindir}/%{component}-ovs-cleanup
%{_bindir}/quantum-ovs-cleanup
%config %{_sysconfdir}/%{component}/rootwrap.d/openvswitch-plugin.filters
%{_initddir}/openstack-%{component}-openvswitch-agent
%{_sbindir}/rcopenstack-%{component}-openvswitch-agent

%files vpn-agent
%defattr(-,root,root,-)
%doc LICENSE
%config(noreplace) %{_sysconfdir}/%{component}/vpn_agent.ini
%{_bindir}/%{component}-vpn-agent
%{_initddir}/openstack-%{component}-vpn-agent
%{_sbindir}/rcopenstack-%{component}-vpn-agent

%files server
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{component}-server
%{_bindir}/quantum-server
%{_bindir}/%{component}-db-manage
%{_bindir}/quantum-db-manage
%{_initddir}/openstack-%{component}
%{_sbindir}/rcopenstack-%{component}

%files -n python-neutron
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitelib}/%{component}/
%{python_sitelib}/quantum
%{python_sitelib}/%{component}-*.egg-info
# Part of test subpackage
%exclude %{python_sitelib}/%{component}/tests/

%files plugin-cisco
%defattr(-,root,root)
%dir %{_sysconfdir}/%{component}/plugins/cisco/
%config(noreplace) %{_sysconfdir}/%{component}/plugins/cisco/cisco_plugins.ini

%files test
%defattr(-,root,root)
%{python_sitelib}/%{component}/tests/
%{_localstatedir}/lib/%{name}-test/

%changelog
openSUSE Build Service is sponsored by