diff --git a/python-PyJWT.changes b/python-PyJWT.changes index 7b71666..68eca3e 100644 --- a/python-PyJWT.changes +++ b/python-PyJWT.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 7 11:13:38 UTC 2019 - Tomáš Chvátal + +- Fix fdupes and test calls + ------------------------------------------------------------------- Mon Feb 4 20:05:58 UTC 2019 - Hans-Peter Jansen diff --git a/python-PyJWT.spec b/python-PyJWT.spec index 9551b82..c3876b8 100644 --- a/python-PyJWT.spec +++ b/python-PyJWT.spec @@ -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