diff --git a/requests-toolbelt/centos/requests-toolbelt.spec b/requests-toolbelt/centos/requests-toolbelt.spec index d6cbb7bab..122ae20cf 100644 --- a/requests-toolbelt/centos/requests-toolbelt.spec +++ b/requests-toolbelt/centos/requests-toolbelt.spec @@ -10,26 +10,26 @@ Source0: %{name}-%{version}.tar.gz %define debug_package %{nil} -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel -Requires: python-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +Requires: python3-devel Requires: /bin/bash %description A utility belt for advanced users of python-requests -%define pythonroot /usr/lib64/python2.7/site-packages +%define pythonroot /usr/lib64/python3.6/site-packages/ %prep %setup %build -%{__python} setup.py build -%py2_build_wheel +%{__python3} setup.py build +%{__python3} setup.py bdist_wheel %install -%{__python} setup.py install --root=$RPM_BUILD_ROOT \ +%{__python3} setup.py install --root=$RPM_BUILD_ROOT \ --install-lib=%{pythonroot} \ --prefix=/usr \ --install-data=/usr/share \