!1 Add source and spec files

From: @joec88
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2020-12-14 16:18:55 +08:00 committed by Gitee
commit 8a734d89a0
2 changed files with 75 additions and 0 deletions

BIN
futurist-2.3.0.tar.gz Normal file

Binary file not shown.

75
python-futurist.spec Normal file
View File

@ -0,0 +1,75 @@
%global _empty_manifest_terminate_build 0
Name: python-futurist
Version: 2.3.0
Release: 1
Summary: Useful additions to futures, from the future.
License: Apache Software License
URL: https://docs.openstack.org/futurist/latest/
Source0: https://files.pythonhosted.org/packages/31/10/b10d828d056c66f89df8d6f408580108731b09ecfe3c00b92c5421003a9b/futurist-2.3.0.tar.gz
BuildArch: noarch
Requires: python3-pbr
Requires: python3-six
%description
Useful additions to futures, from the future.
%package -n python3-futurist
Summary: Useful additions to futures, from the future.
Provides: python-futurist
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-futurist
Useful additions to futures, from the future.
%package help
Summary: Development documents and examples for futurist
Provides: python3-futurist-doc
%description help
Useful additions to futures, from the future. (docs)
%prep
%autosetup -n futurist-2.3.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 .
%files -n python3-futurist -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Sat Nov 21 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated