Blame SPECS/python-edgegrid.spec

72d466
%global srcname edgegrid-python
72d466
72d466
Summary: {OPEN} client authentication protocol for python-requests
72d466
Name: python-edgegrid
rdobuilder be91f3
Version: 1.2.0
rdobuilder be91f3
Release: 1%{?dist}
72d466
Source0: %{pypi_source}
72d466
License: ASL 2.0
72d466
BuildArch: noarch
72d466
URL: https://github.com/akamai-open/AkamaiOPEN-edgegrid-python
72d466
72d466
%{?python_enable_dependency_generator}
72d466
72d466
%description
72d466
This library implements an Authentication handler for requests
72d466
that provides the Akamai {OPEN} Edgegrid Authentication scheme.
72d466
72d466
%package -n python3-edgegrid
72d466
Summary:	%{summary}
72d466
BuildRequires:	python3-devel
72d466
BuildRequires:	python3-setuptools
rdobuilder be91f3
rdobuilder be91f3
# Dependencies for tests
rdobuilder be91f3
BuildRequires:	python3dist(requests)
rdobuilder be91f3
72d466
%{?python_provide:%python_provide python3-edgegrid}
72d466
72d466
%description -n python3-edgegrid
72d466
This library implements an Authentication handler for requests
72d466
that provides the Akamai {OPEN} Edgegrid Authentication scheme.
72d466
72d466
%prep
72d466
%autosetup -n %{srcname}-%{version}
72d466
72d466
# Sources currently have some useless shebangs, and rpmlint
72d466
# doesn't like that.
72d466
# https://github.com/akamai/AkamaiOPEN-edgegrid-python/pull/35
72d466
# Let's patch them out for now.
72d466
find akamai -name '*.py' -exec sed -r -e 's|^#!/usr/bin/env.*|#|' -i '{}' ';'
72d466
72d466
72d466
%build
72d466
%py3_build
72d466
rdobuilder be91f3
%check
rdobuilder be91f3
# upstream uses custom test runner in this module
rdobuilder be91f3
%{__python3} -m akamai.edgegrid.test.test_edgegrid
rdobuilder be91f3
72d466
%install
72d466
%py3_install
72d466
72d466
%files -n python3-edgegrid
72d466
%doc README.rst
72d466
%license LICENSE
72d466
72d466
%{python3_sitelib}/edgegrid_python*.egg-info/
72d466
%{python3_sitelib}/edgegrid_python*.pth
72d466
%dir %{python3_sitelib}/akamai
72d466
%{python3_sitelib}/akamai/edgegrid
72d466
72d466
72d466
%changelog
rdobuilder be91f3
* Tue Aug 17 2021 Rohan McGovern <rmcgover@redhat.com> - 1.2.0-1
rdobuilder be91f3
- New upstream release
rdobuilder be91f3
- Enable tests in %check
rdobuilder be91f3
rdobuilder be91f3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-12
rdobuilder be91f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder be91f3
rdobuilder be91f3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.1-11
rdobuilder be91f3
- Rebuilt for Python 3.10
rdobuilder be91f3
72d466
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
72d466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
72d466
72d466
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
72d466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
72d466
72d466
* Fri Jun 26 2020 Rohan McGovern <rmcgover@redhat.com> - 1.1.1-8
72d466
- Explicitly BuildRequires python3-setuptools
72d466
72d466
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-7
72d466
- Rebuilt for Python 3.9
72d466
72d466
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
72d466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
72d466
72d466
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
72d466
- Rebuilt for Python 3.8.0rc1 (#1748018)
72d466
72d466
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-4
72d466
- Rebuilt for Python 3.8
72d466
72d466
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
72d466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
72d466
72d466
* Sun Feb 17 2019 Rohan McGovern <rmcgover@redhat.com> - 1.1.1-2
72d466
- Ensure all directories owned
72d466
- Remove Group tag per guidelines
72d466
- Add python_provide per guidelines
72d466
72d466
* Wed Dec 19 2018 Rohan McGovern <rmcgover@redhat.com> - 1.1.1-1
72d466
- Initial RPM release