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