Upgrade to 1.4.0

This commit is contained in:
wangxiyuan 2021-07-12 08:55:09 +00:00
parent 69c92020e5
commit 67d9e801ce
3 changed files with 72 additions and 79 deletions

Binary file not shown.

BIN
os-ken-1.4.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,111 +1,104 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
%global with_doc 1
Name: python-os-ken Name: python-os-ken
Version: 1.2.0 Version: 1.4.0
Release: 2%{?dist} Release: 1
Summary: Component-based Software-defined Networking Framework Summary: A component-based software defined networking framework for OpenStack.
License: Apache-2.0 License: Apache-2.0
URL: http://github.com/openstack/os-ken URL: http://www.openstack.org/
Source0: http://tarballs.openstack.org/os-ken/os-ken-1.2.0.tar.gz Source0: https://files.pythonhosted.org/packages/13/dc/454851bb7858ed1835f4257eac531909f9630284ad1d515dc07751c030b9/os-ken-1.4.0.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: git
%description %description
Os-ken is a fork of Ryu. It provides software components with well 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 defined API that make it easy for developers to create new network
management and control applications. management and control applications.
%package -n python3-os-ken %package -n python3-os-ken
Summary: Component-based Software-defined Networking Framework Summary: A component-based software defined networking framework for OpenStack.
%{?python_provide:%python_provide python3-os-ken} Provides: python-os-ken
# Base build requires
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-eventlet
BuildRequires: python3-greenlet
BuildRequires: python3-msgpack
BuildRequires: python3-openvswitch
BuildRequires: python3-oslo-config
BuildRequires: python3-paramiko
BuildRequires: python3-routes
BuildRequires: python3-tinyrpc
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-routes
BuildRequires: python3-webob BuildRequires: python3-webob
BuildRequires: python3-dns BuildRequires: python3-eventlet
BuildRequires: python3-nose BuildRequires: python3-msgpack
BuildRequires: python3-mock BuildRequires: python3-netaddr
BuildRequires: python3-monotonic BuildRequires: python3-oslo-config
BuildRequires: python3-openvswitch
BuildRequires: python3-six
BuildRequires: python3-tinyrpc BuildRequires: python3-tinyrpc
BuildRequires: python3-lxml # General requires
BuildRequires: python3-repoze-lru Requires: python3-routes
Requires: python3-webob
Requires: python3-eventlet Requires: python3-eventlet
Requires: python3-pbr >= 2.0 Requires: python3-msgpack
Requires: python3-msgpack Requires: python3-netaddr
Requires: python3-netaddr Requires: python3-oslo-config
Requires: python3-openvswitch Requires: python3-openvswitch
Requires: python3-oslo-config Requires: python3-pbr
Requires: python3-paramiko Requires: python3-six
Requires: python3-routes Requires: python3-tinyrpc
Requires: python3-six
Requires: python3-tinyrpc
Requires: python3-webob
Requires: python3-lxml
%description -n python3-os-ken %description -n python3-os-ken
Os-ken is a fork of Ryu. It provides software components with well 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 defined API that make it easy for developers to create new network
management and control applications. management and control applications.
%if 0%{?with_doc} %package help
%package doc Summary: A component-based software defined networking framework for OpenStack.
Summary: Os-ken documentation Provides: python3-os-ken-doc
BuildRequires: python3-sphinx %description help
BuildRequires: python3-openstackdocstheme 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
%description doc management and control applications.
Documentation for os-ken
%endif
%prep %prep
%autosetup -n os-ken-1.2.0 -S git %autosetup -n os-ken-1.4.0
rm -f os_ken/tests/unit/test_requirements.py
%build %build
%{py3_build} %py3_build
%if 0%{?with_doc}
sphinx-build-3 -W -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%install %install
export PBR_VERSION=1.2.0 %py3_install
%{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 .
install -d -m 755 %{buildroot}%{_sysconfdir}/os_ken %files -n python3-os-ken -f filelist.lst
install -p -m 644 etc/os_ken/os_ken.conf %{buildroot}%{_sysconfdir}/os_ken/os_ken.conf %dir %{python3_sitelib}/*
%check %files help -f doclist.lst
PYTHON=%{__python3} ./run_tests.sh -N -P %{_docdir}/*
%files -n python3-os-ken
%license LICENSE
%{python3_sitelib}/os_ken
%{python3_sitelib}/os_ken-1.2.0-*.egg-info
%{_bindir}/osken
%{_bindir}/osken-manager
%dir %{_sysconfdir}/os_ken
%config(noreplace) %attr(0644, root, neutron) %{_sysconfdir}/os_ken/os_ken.conf
%if 0%{?with_doc}
%files doc
%license LICENSE
%doc README.rst
%doc doc/build/html
%endif
%changelog %changelog
* Mon Jul 12 2021 OpenStack_SIG <openstack@openeuler.org> - 1.4.0-1
- Upgrade version
* Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org> * Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated