diff --git a/python-vitrageclient-4.3.0.tar.gz b/python-vitrageclient-4.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e300758c0ff5654be52c94504947181cb6efbfd7 Binary files /dev/null and b/python-vitrageclient-4.3.0.tar.gz differ diff --git a/python-vitrageclient.spec b/python-vitrageclient.spec new file mode 100644 index 0000000000000000000000000000000000000000..23d85de3c6776dadcffc4692393f3efeb8517a8d --- /dev/null +++ b/python-vitrageclient.spec @@ -0,0 +1,130 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vitrageclient +Version: 4.3.0 +Release: 1 +Summary: Vitrage Client API Library +License: Apache-2.0 +URL: https://docs.openstack.org/python-vitrageclient/latest/ +Source0: https://files.pythonhosted.org/packages/01/1e/622a1efcad924763afaef9f22d1c04fe883be5222bb70912fb15efc60933/python-vitrageclient-4.3.0.tar.gz +BuildArch: noarch +%description + Team and repository tags .. Change things from this point on.. Licensed under +the Apache License, Version 2.0 (the "License"); you may not use this file +except in compliance with the License. You may obtain a copy of the License at +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. + +%package -n python3-vitrageclient +Summary: Vitrage Client API Library +Provides: python-vitrageclient +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General build requires +BuildRequires: python3-cliff +BuildRequires: python3-iso8601 +BuildRequires: python3-keystoneauth1 +BuildRequires: python3-networkx +BuildRequires: python3-osc-lib +BuildRequires: python3-oslo-utils +BuildRequires: python3-pydot +# General requires +Requires: python3-cliff +Requires: python3-iso8601 +Requires: python3-keystoneauth1 +Requires: python3-networkx +Requires: python3-osc-lib +Requires: python3-oslo-utils +Requires: python3-pbr +Requires: python3-pydot +Requires: %{name}-bash-completion = %{version}-%{release} +%description -n python3-vitrageclient + Team and repository tags .. Change things from this point on.. Licensed under +the Apache License, Version 2.0 (the "License"); you may not use this file +except in compliance with the License. You may obtain a copy of the License at +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. + +%package help +Summary: Vitrage Client API Library +Provides: python3-vitrageclient-doc +%description help + Team and repository tags .. Change things from this point on.. Licensed under +the Apache License, Version 2.0 (the "License"); you may not use this file +except in compliance with the License. You may obtain a copy of the License at +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. + +%package bash-completion +Summary: bash completion files for vitrage +BuildRequires: bash-completion + +%description bash-completion +This package contains bash completion files for vitrage. + +%prep +%autosetup -n python-vitrageclient-%{version} + +%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 . + + +# push autocompletion +bashcompdir=$(pkg-config --variable=completionsdir bash-completion) +mkdir -p %{buildroot}$bashcompdir +mv %{buildroot}%{_datadir}/vitrage.bash_completion %{buildroot}$bashcompdir/vitrage + +#%check +#%{__python3} setup.py test + +%files -n python3-vitrageclient -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + + +%files bash-completion +%license LICENSE +%{_datadir}/bash-completion/completions/vitrage + +%changelog +* Mon Apr 24 2023 songchao - 4.3.0-1 +- Init package python3-vitrageclient of version 4.3.0 + +