Blame python-hvac.spec

ea84106
# Created by pyp2rpm-3.3.2
ea84106
%global pypi_name hvac
ea84106
ea84106
# Enable Python dependency generation
ea84106
%{?python_enable_dependency_generator}
ea84106
ea84106
Name:           python-%{pypi_name}
ea84106
Version:        0.9.5
ea84106
Release:        1%{?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
BuildRequires:  python3-devel
ea84106
BuildRequires:  python3dist(setuptools)
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}}
ea84106
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}
ea84106
# Remove bundled egg-info
ea84106
rm -rf %{pypi_name}.egg-info
ea84106
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
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)