diff --git a/futurist-1.7.0.tar.gz b/futurist-1.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f95988d259413c18ebf1fc99f8f4da43cb08f0bd Binary files /dev/null and b/futurist-1.7.0.tar.gz differ diff --git a/futurist-2.3.0.tar.gz b/futurist-2.3.0.tar.gz deleted file mode 100644 index 1fe3cb9a201aa29083aaabb3681d15ef422602eb..0000000000000000000000000000000000000000 Binary files a/futurist-2.3.0.tar.gz and /dev/null differ diff --git a/python-futurist.spec b/python-futurist.spec index 8226c5e33882ab1a1f2fb72bfa06cc186fef5d9c..fb96003d5aa028660606b0ac11da21fedf14e9a7 100644 --- a/python-futurist.spec +++ b/python-futurist.spec @@ -1,75 +1,120 @@ -%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 +%global with_python3 0 -%description -Useful additions to futures, from the future. +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} + +%global pypi_name futurist + +%global common_desc \ +Code from the future, delivered to you in the now. + +Name: python-%{pypi_name} +Version: 1.7.0 +Release: 1 +Summary: Useful additions to futures, from the future + +License: Apache-2.0 +URL: http://docs.openstack.org/developer/futurist +Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz +BuildArch: noarch + +%package -n python2-%{pypi_name} +Summary: Useful additions to futures, from the future +%{?python_provide:%python_provide python2-%{pypi_name}} + +BuildRequires: python2-devel +BuildRequires: python2-pbr +BuildRequires: git +BuildRequires: python2-sphinx +BuildRequires: python2-openstackdocstheme +BuildRequires: python2-prettytable +BuildRequires: python2-setuptools +BuildRequires: python2-six +BuildRequires: python2-futures +BuildRequires: python2-monotonic +BuildRequires: python2-contextlib2 + +Requires: python2-six >= 1.10.0 +Requires: python2-prettytable +Requires: python2-monotonic +Requires: python2-futures >= 3.0 +Requires: python2-contextlib2 >= 0.4.0 + +%description -n python2-%{pypi_name} +%{common_desc} + +%if 0%{?with_python3} +%package -n python3-%{pypi_name} +Summary: Useful additions to futures, from the future +%{?python_provide:%python_provide python3-%{pypi_name}} -%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. +BuildRequires: python3-devel +BuildRequires: python3-pbr +BuildRequires: python3-monotonic +BuildRequires: python3-prettytable +BuildRequires: python3-setuptools +BuildRequires: python3-six +Requires: python3-six >= 1.10.0 +Requires: python3-monotonic +Requires: python3-contextlib2 >= 0.4.0 +Requires: python3-prettytable -%package help -Summary: Development documents and examples for futurist -Provides: python3-futurist-doc -%description help -Useful additions to futures, from the future. (docs) +%description -n python3-%{pypi_name} +%{common_desc} +%endif +%package -n python-%{pypi_name}-doc +Summary: Useful additions to futures, from the future - documentation + +%description -n python-%{pypi_name}-doc +%{common_desc} + +%description +======== +Futurist +======== + +%{common_desc} %prep -%autosetup -n futurist-2.3.0 +%autosetup -n %{pypi_name}-%{upstream_version} -S git %build +%if 0%{?with_python3} %py3_build +%endif +%py2_build + +# generate html docs +sphinx-build-2 -W -b html doc/source doc/build/html +# remove the sphinx-build leftovers +rm -rf doc/build/html/.{doctrees,buildinfo} + %install +%if 0%{?with_python3} %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}/* +%endif +%py2_install + +%files -n python2-%{pypi_name} +%doc README.rst +%license LICENSE +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-*-py?.?.egg-info + +%if 0%{?with_python3} +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-*-py?.?.egg-info +%endif + +%files -n python-%{pypi_name}-doc +%doc doc/build/html +%license LICENSE %changelog -* Sat Nov 21 2020 Python_Bot +* Sat May 08 2021 Python_Bot - Package Spec generated