From 5a866a51340846518905bb7fe782c31463b3ca4f Mon Sep 17 00:00:00 2001 From: Carl George Date: Sun, 4 Nov 2018 15:10:20 -0600 Subject: [PATCH] Clean up formatting --- python-jwt.spec | 51 ++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/python-jwt.spec b/python-jwt.spec index 7033313..de681bf 100644 --- a/python-jwt.spec +++ b/python-jwt.spec @@ -1,71 +1,81 @@ %global _docdir_fmt %{name} %global srcname jwt -Name: python-jwt -Version: 1.6.4 -Release: 1%{?dist} -Summary: JSON Web Token implementation in Python -License: MIT -URL: https://github.com/jpadilla/pyjwt -Source0: %pypi_source PyJWT -Patch0: disable-coverage-and-runner.patch -BuildArch: noarch - -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-cryptography >= 1.4.0 -BuildRequires: python2-pytest - -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. + +Name: python-jwt +Version: 1.6.4 +Release: 1%{?dist} +Summary: JSON Web Token implementation in Python +License: MIT +URL: https://github.com/jpadilla/pyjwt +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 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 - 1.6.4-1 - Update to 1.6.4