forked from pool/python-PyJWT
- Fix fdupes and test calls
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=43
This commit is contained in:
committed by
Git OBS Bridge
parent
8a13e4125d
commit
e15e45ce8b
@@ -16,8 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-PyJWT
|
||||
Version: 1.7.1
|
||||
@@ -54,21 +52,17 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyjwt
|
||||
|
||||
#hardlink duplicated files
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%post
|
||||
%python_install_alternative pyjwt
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pyjwt
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{$python_version} -o addopts="" -k "not test_verify_false_deprecated" }
|
||||
%endif
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -o addopts="" -k "not test_verify_false_deprecated"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user