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
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 7 11:13:38 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix fdupes and test calls
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 4 20:05:58 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
Mon Feb 4 20:05:58 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@@ -16,8 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without test
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-PyJWT
|
Name: python-PyJWT
|
||||||
Version: 1.7.1
|
Version: 1.7.1
|
||||||
@@ -54,21 +52,17 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyjwt
|
%python_clone -a %{buildroot}%{_bindir}/pyjwt
|
||||||
|
|
||||||
#hardlink duplicated files
|
|
||||||
%fdupes %{buildroot}
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pyjwt
|
%python_install_alternative pyjwt
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative pyjwt
|
%python_uninstall_alternative pyjwt
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{$python_version} -o addopts="" -k "not test_verify_false_deprecated" }
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -o addopts="" -k "not test_verify_false_deprecated"
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user