File openstack-neutron-fwaas.spec of Package openstack-neutron-fwaas
#
# spec file for package openstack-neutron-fwaas
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: openstack-neutron-fwaas
Version: 15.0.1~dev4
Release: 0
Summary: OpenStack Neutron Firewall Service
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/neutron
Source0: neutron-fwaas-stable-train.tar.gz
BuildRequires: openstack-macros
BuildRequires: openstack-neutron
BuildRequires: python3-pbr
Requires: python3-neutron-fwaas = %{version}-%{release}
BuildArch: noarch
%description
Neutron is a virtual network service for Openstack.
This is a Firewall service plugin for Openstack Neutron (Networking) service.
%package -n python3-neutron-fwaas
Summary: OpenStack Neutron Firewall Service - Python module
Group: Development/Languages/Python
Requires: openstack-neutron
Requires: python3-SQLAlchemy
Requires: python3-alembic
Requires: python3-eventlet
Requires: python3-netaddr
Requires: python3-neutron-lib
Requires: python3-os-ken
Requires: python3-oslo.config
Requires: python3-oslo.db
Requires: python3-oslo.log
Requires: python3-oslo.messaging
Requires: python3-oslo.privsep
Requires: python3-oslo.service
Requires: python3-oslo.utils
Requires: python3-pbr
Requires: python3-pyroute2
Requires: python3-pyzmq
Requires: python3-six
%description -n python3-neutron-fwaas
Neutron is a virtual network service for Openstack.
This is a Firewall service plugin for Openstack Neutron (Networking) service.
This package contains the Neutron Firewall Python library.
%package doc
Summary: OpenStack Neutron Firewall Service - Documentation
Group: Documentation/HTML
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-sphinxcontrib-apidoc
%description doc
Neutron is a virtual network service for Openstack.
This is a Firewall service plugin for Openstack Neutron (Networking) service.
This package contains the documentation.
%prep
%autosetup -p1 -n neutron-fwaas-15.0.1.dev4
%py_req_cleanup
%build
%py3_build
# generate html docs
PYTHONPATH=$PWD PBR_VERSION=15.0.1.dev4 %sphinx_build --keep-going -b html doc/source doc/build/html
# remove the Sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%py3_install
### configuration files
for x in `ls etc/oslo-config-generator/*`; do
PYTHONPATH=. oslo-config-generator --config-file $x
done
install -p -D -m 644 etc/neutron_fwaas.conf.sample %{buildroot}%{_sysconfdir}/neutron/neutron_fwaas.conf
# move wrongly installed files from /usr/etc to /etc
install -d -m 755 %{buildroot}%{_datarootdir}/neutron/rootwrap
mv %{buildroot}/%{_prefix}/%{_sysconfdir}/neutron/rootwrap.d/* %{buildroot}%{_datarootdir}/neutron/rootwrap
%files
%license LICENSE
%doc README.rst
%config(noreplace) %{_sysconfdir}/neutron/neutron_fwaas.conf
%dir %{_datarootdir}/neutron/rootwrap
%{_datarootdir}/neutron/rootwrap/fwaas-privsep.filters
%{_bindir}/neutron-fwaas-migrate-v1-to-v2
%files -n python3-neutron-fwaas
%license LICENSE
%{python3_sitelib}/neutron_fwaas
%{python3_sitelib}/neutron_fwaas-*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%changelog