diff --git a/python-octaviaclient-2.3.0.tar.gz b/python-octaviaclient-2.3.0.tar.gz new file mode 100644 index 0000000..01e97aa Binary files /dev/null and b/python-octaviaclient-2.3.0.tar.gz differ diff --git a/python-octaviaclient.spec b/python-octaviaclient.spec new file mode 100644 index 0000000..29ff107 --- /dev/null +++ b/python-octaviaclient.spec @@ -0,0 +1,107 @@ +%global _empty_manifest_terminate_build 0 +Name: python-octaviaclient +Version: 2.3.0 +Release: 1 +Summary: Octavia client for OpenStack Load Balancing +License: Apache-2.0 +URL: https://docs.openstack.org/python-octaviaclient/latest/ +Source0: https://files.pythonhosted.org/packages/93/54/6d734af443f2f9d670009387b3a3d8f4fb9d2f9f20e2eb23030b40016806/python-octaviaclient-2.3.0.tar.gz +BuildArch: noarch +%description +Team and repository tags .. Change things from this point onpython-octaviaclient +Octavia client for OpenStack Load BalancingThis is an OpenStack Client (OSC) +plugin for Octavia, an OpenStack Load Balancing project.For more information +about Octavia see: more information about the OpenStack Client see: software: +Apache license Documentation: . + +%package -n python3-octaviaclient +Summary: Octavia client for OpenStack Load Balancing +Provides: python-octaviaclient +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-cliff +BuildRequires: python3-keystoneauth1 +BuildRequires: python3-osc-lib +BuildRequires: python3-oslo-serialization +BuildRequires: python3-oslo-utils +BuildRequires: python3-neutronclient +BuildRequires: python3-openstackclient +BuildRequires: python3-requests +# General requires +Requires: python3-cliff +Requires: python3-keystoneauth1 +Requires: python3-osc-lib +Requires: python3-oslo-serialization +Requires: python3-oslo-utils +Requires: python3-pbr +Requires: python3-neutronclient +Requires: python3-openstackclient +Requires: python3-requests +%description -n python3-octaviaclient +Team and repository tags .. Change things from this point onpython-octaviaclient +Octavia client for OpenStack Load BalancingThis is an OpenStack Client (OSC) +plugin for Octavia, an OpenStack Load Balancing project.For more information +about Octavia see: more information about the OpenStack Client see: software: +Apache license Documentation: . + +%package help +Summary: Octavia client for OpenStack Load Balancing +Provides: python3-octaviaclient-doc +%description help +Team and repository tags .. Change things from this point onpython-octaviaclient +Octavia client for OpenStack Load BalancingThis is an OpenStack Client (OSC) +plugin for Octavia, an OpenStack Load Balancing project.For more information +about Octavia see: more information about the OpenStack Client see: software: +Apache license Documentation: . + +%prep +%autosetup -n python-octaviaclient-2.3.0 -S git + +%build +%py3_build + +%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 . + + +%files -n python3-octaviaclient -f filelist.lst + +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Jul 14 2021 OpenStack_SIG - 2.3.0-1 +- Package Spec generate \ No newline at end of file