14
0
forked from pool/python-PyJWT
2023-05-19 16:56:32 +00:00
committed by Git OBS Bridge
parent 6f32cd016e
commit 3b1aacf2c2

View File

@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1 %global skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-PyJWT Name: python-PyJWT
@@ -28,12 +27,14 @@ Group: Development/Languages/Python
URL: https://github.com/progrium/pyjwt URL: https://github.com/progrium/pyjwt
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 3.3.1} BuildRequires: %{python_module cryptography >= 3.3.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing-extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-cryptography >= 3.3.1 Requires: python-cryptography >= 3.3.1
Requires: python-setuptools Requires: python-typing-extensions
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
@@ -46,12 +47,13 @@ A Python implementation of JSON Web Token draft 01.
%setup -q -n PyJWT-%{version} %setup -q -n PyJWT-%{version}
%build %build
%python_build %pyproject_wheel
#remove shebang from all non executable files #remove shebang from all non executable files
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env python@d}' {} \; find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env python@d}' {} \;
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check