Clean up formatting

This commit is contained in:
Carl George 2018-11-04 15:10:20 -06:00
parent 5c8f207251
commit 5a866a5134

View File

@ -1,6 +1,13 @@
%global _docdir_fmt %{name} %global _docdir_fmt %{name}
%global srcname jwt %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 Name: python-jwt
Version: 1.6.4 Version: 1.6.4
Release: 1%{?dist} Release: 1%{?dist}
@ -11,61 +18,64 @@ Source0: %pypi_source PyJWT
Patch0: disable-coverage-and-runner.patch Patch0: disable-coverage-and-runner.patch
BuildArch: noarch BuildArch: noarch
%description %{_description}
%package -n python2-%{srcname}
Summary: %{summary}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
BuildRequires: python2-cryptography >= 1.4.0 BuildRequires: python2-cryptography >= 1.4.0
BuildRequires: python2-pytest 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}-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0 BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0
BuildRequires: python%{python3_pkgversion}-pytest 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 Requires: python%{python3_pkgversion}-cryptography >= 1.4.0
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python%{python3_pkgversion}-%{srcname} %{_description} %description -n python%{python3_pkgversion}-%{srcname} %{_description}
%prep %prep
%autosetup -n PyJWT-%{version} -p 1 %autosetup -n PyJWT-%{version} -p 1
# prevent pullng in `addopts` for pytest run later # prevent pullng in `addopts` for pytest run later
rm setup.cfg rm setup.cfg
%build %build
%py2_build %py2_build
%py3_build %py3_build
%install %install
%py2_install %py2_install
%py3_install %py3_install
%check %check
py.test-%{python2_version} --verbose py.test-%{python2_version} --verbose
py.test-%{python3_version} --verbose py.test-%{python3_version} --verbose
%files -n python2-jwt %files -n python2-jwt
%doc README.rst AUTHORS %doc README.rst AUTHORS
%license LICENSE %license LICENSE
%{python2_sitelib}/%{srcname}/ %{python2_sitelib}/%{srcname}/
%{python2_sitelib}/PyJWT-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/PyJWT-%{version}-py%{python2_version}.egg-info
%files -n python%{python3_pkgversion}-jwt %files -n python%{python3_pkgversion}-jwt
%doc README.rst AUTHORS %doc README.rst AUTHORS
%license LICENSE %license LICENSE
@ -73,6 +83,7 @@ py.test-%{python3_version} --verbose
%{python3_sitelib}/PyJWT-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/PyJWT-%{version}-py%{python3_version}.egg-info
%{_bindir}/pyjwt %{_bindir}/pyjwt
%changelog %changelog
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6.4-1 * Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6.4-1
- Update to 1.6.4 - Update to 1.6.4