diff --git a/mitba-1.1.1.tar.gz b/mitba-1.1.1.tar.gz new file mode 100644 index 0000000..5d284ed Binary files /dev/null and b/mitba-1.1.1.tar.gz differ diff --git a/python-mitba.spec b/python-mitba.spec new file mode 100644 index 0000000..d48ce78 --- /dev/null +++ b/python-mitba.spec @@ -0,0 +1,98 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mitba +Version: 1.1.1 +Release: 1 +Summary: Python library for caching results from functions and methods +License: BSD +URL: https://github.com/Infinidat/mitba +Source0: https://files.pythonhosted.org/packages/03/5c/af3c74b8f4746a0dd95af195a1901a6f22a539359b32b3151af119ce419e/mitba-1.1.1.tar.gz +BuildArch: noarch +%description +Python library for caching results from functions and methods + +%package -n python3-mitba +Summary: Python library for caching results from functions and methods +Provides: python-mitba +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-flux +BuildRequires: python3-logbook +BuildRequires: python3-sphinx-theme-alabaster +BuildRequires: python3-docutils +BuildRequires: python3-sphinx +# Tests running requires +BuildRequires: python3-pylint +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest +# General requires +Requires: python3-flux +Requires: python3-logbook +Requires: python3-sphinx-theme-alabaster +Requires: python3-docutils +Requires: python3-releases +Requires: python3-sphinx +# Tests running requires +Requires: python3-pylint +Requires: python3-pytest-cov +Requires: python3-pytest +%description -n python3-mitba +Python library for caching results from functions and methods + +%package help +Summary: Python library for caching results from functions and methods +Provides: python3-mitba-doc +%description help +Python library for caching results from functions and methods + +%prep +%autosetup -n mitba-%{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 . + +%check +%{__python3} setup.py test + +%files -n python3-mitba -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Aug 06 2021 OpenStack_SIG - 1.1.1-1 +- Package Spec generate