Clean up formatting
This commit is contained in:
parent
5c8f207251
commit
5a866a5134
@ -1,6 +1,13 @@
|
||||
%global _docdir_fmt %{name}
|
||||
%global srcname jwt
|
||||
|
||||
%global _description \
|
||||
A Python implementation of JSON Web Token draft 01. This library provides a\
|
||||
means of representing signed content using JSON data structures, including\
|
||||
claims to be transferred between two parties encoded as digitally signed and\
|
||||
encrypted JSON objects.
|
||||
|
||||
|
||||
Name: python-jwt
|
||||
Version: 1.6.4
|
||||
Release: 1%{?dist}
|
||||
@ -11,61 +18,64 @@ Source0: %pypi_source PyJWT
|
||||
Patch0: disable-coverage-and-runner.patch
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description %{_description}
|
||||
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-cryptography >= 1.4.0
|
||||
BuildRequires: python2-pytest
|
||||
Requires: python2-cryptography >= 1.4.0
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
|
||||
%description -n python2-%{srcname} %{_description}
|
||||
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{srcname}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
|
||||
%global _description \
|
||||
A Python implementation of JSON Web Token draft 01. This library provides a\
|
||||
means of representing signed content using JSON data structures, including\
|
||||
claims to be transferred between two parties encoded as digitally signed and\
|
||||
encrypted JSON objects.
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: %{summary}
|
||||
Requires: python2-cryptography >= 1.4.0
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
%description -n python2-%{srcname} %{_description}
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{srcname}
|
||||
Summary: %{summary}
|
||||
Requires: python%{python3_pkgversion}-cryptography >= 1.4.0
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n PyJWT-%{version} -p 1
|
||||
# prevent pullng in `addopts` for pytest run later
|
||||
rm setup.cfg
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
|
||||
%check
|
||||
py.test-%{python2_version} --verbose
|
||||
py.test-%{python3_version} --verbose
|
||||
|
||||
|
||||
%files -n python2-jwt
|
||||
%doc README.rst AUTHORS
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/%{srcname}/
|
||||
%{python2_sitelib}/PyJWT-%{version}-py%{python2_version}.egg-info
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-jwt
|
||||
%doc README.rst AUTHORS
|
||||
%license LICENSE
|
||||
@ -73,6 +83,7 @@ py.test-%{python3_version} --verbose
|
||||
%{python3_sitelib}/PyJWT-%{version}-py%{python3_version}.egg-info
|
||||
%{_bindir}/pyjwt
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6.4-1
|
||||
- Update to 1.6.4
|
||||
|
Loading…
Reference in New Issue
Block a user