diff --git a/python-tempest-lib.spec b/python-tempest-lib.spec new file mode 100644 index 0000000000000000000000000000000000000000..218f2871766c9741a74d4a669f90e81e20834381 --- /dev/null +++ b/python-tempest-lib.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tempest-lib +Version: 1.0.0 +Release: 1 +Summary: OpenStack Functional Testing Library +License: Apache License, Version 2.0 +URL: http://www.openstack.org/ +Source0: https://files.pythonhosted.org/packages/27/65/6526be48afed32d6479bf005d9cff82c2fb5071a01e50eff82b1b5ba5565/tempest-lib-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-pbr +Requires: python3-Babel +Requires: python3-fixtures +Requires: python3-iso8601 +Requires: python3-jsonschema +Requires: python3-httplib2 +Requires: python3-paramiko +Requires: python3-six +Requires: +Requires: python3-os-testr + +%description +tempest-lib is a library of common functionality that was originally in tempest (or similar in scope to tempest) + +%package -n python3-tempest-lib +Summary: OpenStack Functional Testing Library +Provides: python-tempest-lib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-tempest-lib + + +%package help +Summary: Development documents and examples for tempest-lib +Provides: python3-tempest-lib-doc +%description help +Development documents and examples for tempest-lib. + +%prep +%autosetup -n tempest-lib-1.0.0 + +%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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-tempest-lib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Oct 15 2021 yinzehao - 1.0.0-1 +- Package Spec generated diff --git a/tempest-lib-1.0.0.tar.gz b/tempest-lib-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dd63f453b9f67f2e507f761963936d5bd0f9704e Binary files /dev/null and b/tempest-lib-1.0.0.tar.gz differ