Hello community, here is the log from the commit of package lit for openSUSE:Factory checked in at 2018-09-25 15:42:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lit (Old) and /work/SRC/openSUSE:Factory/.lit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lit" Tue Sep 25 15:42:16 2018 rev:5 rq:637428 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/lit/lit.changes 2018-06-13 15:38:59.553438797 +0200 +++ /work/SRC/openSUSE:Factory/.lit.new/lit.changes 2018-09-25 15:42:22.969293134 +0200 @@ -1,0 +2,6 @@ +Mon Sep 24 11:42:55 UTC 2018 - Martin Pluskal <[email protected]> + +- Use singlespec correctly +- Provide lit by python3 package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lit.spec ++++++ --- /var/tmp/diff_new_pack.8SJK18/_old 2018-09-25 15:42:23.329292749 +0200 +++ /var/tmp/diff_new_pack.8SJK18/_new 2018-09-25 15:42:23.333292744 +0200 @@ -1,7 +1,7 @@ # # spec file for package lit # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -12,11 +12,11 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python Name: lit Version: 0.6.0 Release: 0 @@ -25,11 +25,15 @@ Group: Development/Tools/Other URL: http://llvm.org/cmds/lit.html Source0: https://files.pythonhosted.org/packages/source/l/lit/lit-%{version}.tar.gz +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module base} -BuildRequires: %{python_module setuptools} +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +%ifpython3 +Provides: lit = %{version} +%endif %python_subpackages %description @@ -46,13 +50,18 @@ %install %python_install -%python_clone %{buildroot}%{_bindir}/lit +%python_clone -a %{buildroot}%{_bindir}/lit %python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%post +%python_install_alternative lit + +%postun +%python_uninstall_alternative lit + %files %{python_files} %doc README.txt -%{_bindir}/lit-%{python_bin_suffix} -%python3_only %{_bindir}/lit +%python_alternative %{_bindir}/lit %{python_sitelib}/* %changelog
