# Created by pyp2rpm-3.2.2 %global pypi_name awsauth Name: python-%{pypi_name} Version: 0.3.2 Release: 1%{?dist} Summary: AWS STS/MFA auth helper script License: MIT URL: https://github.com/ConnectedHomes/dp-awsauth Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %description %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-boto3 Requires: python-botocore %description -n python2-%{pypi_name} %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %install %py2_install cp %{buildroot}/%{_bindir}/awsauth.py %{buildroot}/%{_bindir}/awsauth.py-%{python2_version} ln -s %{_bindir}/awsauth.py-%{python2_version} %{buildroot}/%{_bindir}/awsauth.py-2 %files -n python2-%{pypi_name} %doc %{_bindir}/awsauth.py %{_bindir}/awsauth.py-2 %{_bindir}/awsauth.py-%{python2_version} %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Sun Jul 23 2017 Copr dist git - 0.3.2-1 - Initial package.