diff --git a/python-pylint.changes b/python-pylint.changes index f4205d2..f55a073 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 13:20:08 UTC 2019 - Tomáš Chvátal + +- Fix build on SLE12 + ------------------------------------------------------------------- Thu Dec 6 14:37:20 UTC 2018 - Tomáš Chvátal diff --git a/python-pylint.spec b/python-pylint.spec index e51171e..8c2b9a8 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylint # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-pylint Version: 2.2.2 @@ -45,7 +45,9 @@ Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # test is checking that "tkinter.tix" is deprecated +%if 0%{?suse_version} >= 1500 BuildRequires: python3-tk +%endif %python_subpackages %description @@ -86,6 +88,7 @@ done %python_uninstall_alternative pylint %check +export PYTHONDONTWRITEBYTECODE=1 %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" py.test-%{$python_bin_suffix} pylint/test/ %files %{python_files}