python-os-ken/python-os-ken.spec

105 lines
3.3 KiB
RPMSpec
Raw Normal View History

2021-01-13 10:32:27 +08:00
%global _empty_manifest_terminate_build 0
Name: python-os-ken
2021-07-12 08:55:09 +00:00
Version: 1.4.0
Release: 1
Summary: A component-based software defined networking framework for OpenStack.
2021-01-13 10:32:27 +08:00
License: Apache-2.0
2021-07-12 08:55:09 +00:00
URL: http://www.openstack.org/
Source0: https://files.pythonhosted.org/packages/13/dc/454851bb7858ed1835f4257eac531909f9630284ad1d515dc07751c030b9/os-ken-1.4.0.tar.gz
2021-01-13 10:32:27 +08:00
BuildArch: noarch
%description
Os-ken is a fork of Ryu. It provides software components with well
defined API that make it easy for developers to create new network
management and control applications.
%package -n python3-os-ken
2021-07-12 08:55:09 +00:00
Summary: A component-based software defined networking framework for OpenStack.
Provides: python-os-ken
# Base build requires
2021-01-13 10:32:27 +08:00
BuildRequires: python3-devel
2021-07-12 08:55:09 +00:00
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-routes
BuildRequires: python3-webob
2021-01-13 10:32:27 +08:00
BuildRequires: python3-eventlet
BuildRequires: python3-msgpack
2021-07-12 08:55:09 +00:00
BuildRequires: python3-netaddr
2021-01-13 10:32:27 +08:00
BuildRequires: python3-oslo-config
2021-07-12 08:55:09 +00:00
BuildRequires: python3-openvswitch
BuildRequires: python3-six
2021-01-13 10:32:27 +08:00
BuildRequires: python3-tinyrpc
2021-07-12 08:55:09 +00:00
# General requires
Requires: python3-routes
Requires: python3-webob
Requires: python3-eventlet
Requires: python3-msgpack
Requires: python3-netaddr
Requires: python3-oslo-config
Requires: python3-openvswitch
Requires: python3-pbr
Requires: python3-six
Requires: python3-tinyrpc
2021-01-13 10:32:27 +08:00
%description -n python3-os-ken
Os-ken is a fork of Ryu. It provides software components with well
defined API that make it easy for developers to create new network
management and control applications.
2021-07-12 08:55:09 +00:00
%package help
Summary: A component-based software defined networking framework for OpenStack.
Provides: python3-os-ken-doc
%description help
Os-ken is a fork of Ryu. It provides software components with well
defined API that make it easy for developers to create new network
management and control applications.
2021-01-13 10:32:27 +08:00
%prep
2021-07-12 08:55:09 +00:00
%autosetup -n os-ken-1.4.0
2021-01-13 10:32:27 +08:00
%build
2021-07-12 08:55:09 +00:00
%py3_build
2021-01-13 10:32:27 +08:00
%install
2021-07-12 08:55:09 +00:00
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-os-ken -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2021-01-13 10:32:27 +08:00
%changelog
2021-07-12 08:55:09 +00:00
* Mon Jul 12 2021 OpenStack_SIG <openstack@openeuler.org> - 1.4.0-1
- Upgrade version
2021-01-13 10:32:27 +08:00
* Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated
2021-07-12 08:55:09 +00:00