delete python2
This commit is contained in:
parent
11c8241110
commit
9e91157b17
@ -7,20 +7,12 @@ URL: https://github.com/latchset/jwcrypto
|
|||||||
Source0: https://github.com/latchset/jwcrypto/releases/download/v%{version}/jwcrypto-%{version}.tar.gz
|
Source0: https://github.com/latchset/jwcrypto/releases/download/v%{version}/jwcrypto-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools python2-cryptography >= 1.5 python2-pytest
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.5 python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.5 python%{python3_pkgversion}-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Implements JWK, JWS, JWE specifications with python-cryptography
|
Implements JWK, JWS, JWE specifications with python-cryptography
|
||||||
|
|
||||||
%package -n python2-jwcrypto
|
|
||||||
Summary: Implements JWK,JWS,JWE specifications with python-cryptography
|
|
||||||
Requires: python2-cryptography >= 1.5
|
|
||||||
%{?python_provide:%python_provide python2-jwcrypto}
|
|
||||||
%description -n python2-jwcrypto
|
|
||||||
Implements JWK, JWS, JWE specifications using python-cryptography
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-jwcrypto
|
%package -n python%{python3_pkgversion}-jwcrypto
|
||||||
Summary: Implements JWK, JWS, JWE specifications with python-cryptography
|
Summary: Implements JWK, JWS, JWE specifications with python-cryptography
|
||||||
Requires: python%{python3_pkgversion}-cryptography >= 1.5
|
Requires: python%{python3_pkgversion}-cryptography >= 1.5
|
||||||
@ -32,24 +24,14 @@ Implements JWK, JWS, JWE specifications using python-cryptography
|
|||||||
%autosetup -n jwcrypto-%{version} -p1
|
%autosetup -n jwcrypto-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} -bb -m pytest jwcrypto/test*.py
|
|
||||||
%{__python3} -bb -m pytest jwcrypto/test*.py
|
%{__python3} -bb -m pytest jwcrypto/test*.py
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%files -n python2-jwcrypto
|
|
||||||
%doc README.md LICENSE
|
|
||||||
%exclude %{_docdir}/jwcrypto
|
|
||||||
%exclude %{python2_sitelib}/jwcrypto/tests{,-cookbook}.py*
|
|
||||||
%{python2_sitelib}/jwcrypto
|
|
||||||
%{python2_sitelib}/jwcrypto-%{version}-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-jwcrypto
|
%files -n python%{python3_pkgversion}-jwcrypto
|
||||||
%doc README.md LICENSE
|
%doc README.md LICENSE
|
||||||
%exclude %{_docdir}/jwcrypto
|
%exclude %{_docdir}/jwcrypto
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user