%global srcname edgegrid-python Summary: {OPEN} client authentication protocol for python-requests Name: python-edgegrid Version: 1.1.1 Release: 1%{?dist} Source0: %{pypi_source} License: ASL 2.0 Group: Development/Libraries BuildArch: noarch Url: https://github.com/akamai-open/AkamaiOPEN-edgegrid-python %{?python_enable_dependency_generator} %description This library implements an Authentication handler for requests that provides the Akamai {OPEN} Edgegrid Authentication scheme. %package -n python3-edgegrid Summary: %{summary} BuildRequires: python3-devel %description -n python3-edgegrid This library implements an Authentication handler for requests that provides the Akamai {OPEN} Edgegrid Authentication scheme. %prep %autosetup -n %{srcname}-%{version} # Sources currently have some useless shebangs, and rpmlint # doesn't like that. # https://github.com/akamai/AkamaiOPEN-edgegrid-python/pull/35 # Let's patch them out for now. find akamai -name '*.py' -exec sed -r -e 's|^#!/usr/bin/env.*|#|' -i '{}' ';' %build %py3_build %install %py3_install %files -n python3-edgegrid %doc README.rst %license LICENSE # Upstream installs a test suite, but it doesn't actually work. # Probably was never intended to include this in the install. # https://github.com/akamai/AkamaiOPEN-edgegrid-python/issues/36 %exclude %{python3_sitelib}/akamai/edgegrid/test/ %{python3_sitelib}/edgegrid_python*.egg-info/ %{python3_sitelib}/edgegrid_python*.pth %{python3_sitelib}/akamai/edgegrid/* %changelog * Wed Dec 19 2018 Rohan McGovern - 1.1.1-1 - Initial RPM release