python-jwt/python-jwt.spec

75 lines
1.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:09 -04:00
%global srcname jwt
%bcond_with tests
Name: python-jwt
2021-02-02 23:00:48 +08:00
Version: 2.0.0
Release: 1
2019-09-30 11:15:09 -04:00
Summary: JSON Web Token implementation in Python
License: MIT
URL: https://github.com/jpadilla/pyjwt
2021-02-02 23:00:48 +08:00
Source0: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
2019-09-30 11:15:09 -04:00
BuildArch: noarch
%if %{with tests}
BuildRequires: python3-pytest python3-pytest-cov python3-pytest-runner
%endif
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-cryptography
%global _description \
PyJWT is a Python library which allows you to encode and decode JSON Web Tokens (JWT). \
JWT is an open, industry-standard (RFC 7519) for representing claims securely between two parties.
%description %{_description}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
Requires: python%{python3_pkgversion}-cryptography
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
%package_help
%prep
%autosetup -n PyJWT-%{version}
%build
%py3_build
%install
%py3_install
%check
%if %{with tests}
%{__python3} setup.py test
%endif
%files -n python%{python3_pkgversion}-jwt
2021-02-02 23:00:48 +08:00
%license LICENSE
2019-09-30 11:15:09 -04:00
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/*.egg-info
2021-02-02 23:00:48 +08:00
#%{_bindir}/pyjwt
2019-09-30 11:15:09 -04:00
%files help
2019-11-06 19:49:18 +08:00
%doc README.rst
2019-09-30 11:15:09 -04:00
%changelog
2021-02-02 23:00:48 +08:00
* Tue Feb 02 2021 shixuantong <shixuantong@huawei.com> - 2.0.0-1
- Type:enhancement
- ID:NA
2020-10-30 14:34:35 +08:00
- SUG:NA
2021-02-02 23:00:48 +08:00
- DESC:upgrade version to 2.0.0
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 1.7.1-3t
- Type:bufixt
- CVE:NAt
- SUG:NAt
2020-10-30 14:34:35 +08:00
- DESC:remove python2
2019-11-06 19:49:18 +08:00
* Fri Oct 11 2019 yefei <yefei25@huawei.com> - 1.7.1-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move author from doc to license
* Sun Sep 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.1-1
2019-09-30 11:15:09 -04:00
- Package init