ea84106
%global pypi_name hvac
ea84106
ea84106
Name:           python-%{pypi_name}
ab18316
Version:        0.10.7
9241967
Release:        3%{?dist}
ea84106
Summary:        HashiCorp Vault API client for Python
ea84106
ea84106
License:        ASL 2.0
ea84106
URL:            https://github.com/hvac/hvac
ea84106
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
ea84106
BuildArch:      noarch
ea84106
ea84106
%description
ea84106
This package provides a Python API client for HashiCorp Vault.
ea84106
ea84106
%package -n     python%{python3_pkgversion}-%{pypi_name}
ea84106
Summary:        HashiCorp Vault API client for Python 3
ea84106
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
ab18316
BuildRequires:  python3-devel
ab18316
BuildRequires:  python3dist(setuptools)
ea84106
# Extra dependency is not mandatory but quite useful
ea84106
## Making this EPEL8 compatible...
ea84106
Recommends:     python%{python3_version}dist(pyhcl) >= 0.3.10
ea84106
ea84106
%description -n python%{python3_pkgversion}-%{pypi_name}
ea84106
This package provides a Python API client for HashiCorp Vault.
ea84106
ea84106
This is for Python 3.
ea84106
ea84106
%prep
ea84106
%autosetup -n %{pypi_name}-%{version}
51406e2
%if 0%{?el8}
51406e2
# Lower dependency to requests 2.20+ for EL8
51406e2
sed -e "s/requests>=2.21.0/requests>=2.20.0/" -i setup.py
51406e2
%endif
51406e2
ea84106
%build
ea84106
%py3_build
ea84106
ea84106
%install
ea84106
%py3_install
ea84106
ea84106
%files -n python%{python3_pkgversion}-%{pypi_name}
ea84106
%doc README.md
ea84106
%license LICENSE.txt
ea84106
%{python3_sitelib}/%{pypi_name}/
ea84106
%{python3_sitelib}/%{pypi_name}-*.egg-info/
ea84106
ea84106
%changelog
9241967
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.7-3
9241967
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9241967
bd330f9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10.7-2
bd330f9
- Rebuilt for Python 3.10
bd330f9
ab18316
* Fri Feb 05 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.10.7-1
ab18316
- Update to 0.10.7
ab18316
160469b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-5
160469b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
160469b
2ed53e3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-4
2ed53e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2ed53e3
8767eeb
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.9.5-3
8767eeb
- Rebuilt for Python 3.9
8767eeb
2d36997
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
2d36997
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d36997
ea84106
* Thu Oct 24 18:27:43 EDT 2019 Neal Gompa <ngompa@datto.com> - 0.9.5-1
ea84106
- Initial packaging for Fedora (RH#1765350)