63 lines
1.8 KiB
RPMSpec
63 lines
1.8 KiB
RPMSpec
%global srcname jwcrypto
|
|
|
|
Name: python-%{srcname}
|
|
Version: 1.5.8
|
|
Release: %autorelease
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
|
|
|
License: LGPL-3.0-or-later
|
|
URL: https://github.com/latchset/%{srcname}
|
|
Source0: https://github.com/latchset/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: pyproject-rpm-macros
|
|
BuildRequires: python%{python3_pkgversion}-pip
|
|
BuildRequires: python%{python3_pkgversion}-hatchling
|
|
BuildRequires: python%{python3_pkgversion}-cryptography >= 39.0.0
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
BuildRequires: python%{python3_pkgversion}-typing-extensions
|
|
|
|
%description
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
|
Requires: python%{python3_pkgversion}-cryptography >= 39.0.0
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%check
|
|
%{__python3} -bb -m pytest %{srcname}/test*.py
|
|
|
|
|
|
%install
|
|
%pyproject_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*
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python3_sitelib}/%{srcname}
|
|
%{python3_sitelib}/%{srcname}-%{version}.dist-info
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|