2017-08-01 18:10:47 +00:00
|
|
|
%global srcname jwcrypto
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
Name: python-%{srcname}
|
2024-06-12 14:25:09 +00:00
|
|
|
Version: 1.5.6
|
2022-09-13 17:37:22 +00:00
|
|
|
Release: %autorelease
|
2017-08-01 18:10:47 +00:00
|
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2023-04-04 05:43:33 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2017-08-01 18:10:47 +00:00
|
|
|
URL: https://github.com/latchset/%{srcname}
|
|
|
|
Source0: https://github.com/latchset/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2017-08-01 18:10:47 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2021-06-10 16:38:22 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-cryptography >= 2.3
|
2017-08-01 18:10:47 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
2024-06-12 14:25:09 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-typing-extensions
|
2023-07-24 22:35:13 +00:00
|
|
|
%if %{undefined rhel}
|
2021-06-10 17:09:33 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-deprecated
|
2023-07-24 22:35:13 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
%description
|
2017-08-01 18:10:47 +00:00
|
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
2021-06-10 16:38:22 +00:00
|
|
|
Requires: python%{python3_pkgversion}-cryptography >= 2.3
|
2023-07-24 22:35:13 +00:00
|
|
|
%if %{undefined rhel}
|
2021-06-10 17:09:33 +00:00
|
|
|
Requires: python%{python3_pkgversion}-deprecated
|
2023-07-24 22:35:13 +00:00
|
|
|
%endif
|
2017-08-01 18:10:47 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
|
2015-07-09 07:49:14 +00:00
|
|
|
%prep
|
2017-08-01 18:10:47 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2023-07-24 22:35:13 +00:00
|
|
|
%if %{defined rhel}
|
|
|
|
# avoid python-deprecated dependency
|
|
|
|
sed -i -e '/deprecated/d' setup.py %{srcname}.egg-info/requires.txt
|
|
|
|
sed -i -e '/^from deprecated/d' -e '/@deprecated/d' %{srcname}/*.py
|
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-08-01 18:10:47 +00:00
|
|
|
%py3_build
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2017-08-02 08:06:32 +00:00
|
|
|
%{__python3} -bb -m pytest %{srcname}/test*.py
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-08-01 18:10:47 +00:00
|
|
|
%py3_install
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_docdir}/%{srcname}
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/tests{,-cookbook}.py*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests{,-cookbook}.*.py*
|
2019-08-29 08:48:06 +00:00
|
|
|
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2015-07-09 07:49:14 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2017-08-01 18:10:47 +00:00
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-09-13 17:37:22 +00:00
|
|
|
%autochangelog
|