%define name future %define version 0.18.3 %define unmangled_name future %define unmangled_version 0.18.3 %define release 1 Summary: Clean single-source support for Python 3 and 2 Name: %{name} Version: %{version} Release: %{release} Source0: %{unmangled_name}-%{unmangled_version}.tar.gz License: MIT Group: Development/Libraries BuildRoot: %{_tmppath}/%{unmangled_name}-release-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Ed Schofield Url: https://python-future.org BuildRequires: python3-setuptools, python3-devel %description future is the missing compatibility layer between Python 2 and Python 3. It allows you to use a single, clean Python 3.x-compatible codebase to support both Python 2 and Python 3 with minimal overhead. %package -n python3-%{name} Summary: Clean single-source support for Python 3 and 2 %description -n python3-%{name} future is the missing compatibility layer between Python 2 and Python 3. It allows you to use a single, clean Python 3.x-compatible codebase to support both Python 2 and Python 3 with minimal overhead. %prep %autosetup -n %{unmangled_name}-%{unmangled_version} %build %py3_build %install python3 setup.py install -O1 --root=%{buildroot} rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt rm -rf %{buildroot}/usr/share/doc/%{name}/ %clean rm -rf %{buildroot} %files -n python3-%{name} %license LICENSE.txt %{python3_sitelib}/* %exclude %{_bindir}/* %changelog * Sat Jan 14 2023 log2timeline development team 0.18.3-1 - Auto-generated