Hello community, here is the log from the commit of package python-svneverever for openSUSE:Leap:15.2 checked in at 2020-02-19 18:49:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-svneverever (Old) and /work/SRC/openSUSE:Leap:15.2/.python-svneverever.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-svneverever" Wed Feb 19 18:49:18 2020 rev:11 rq:777196 version:1.4.2 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-svneverever/python-svneverever.changes 2020-01-15 15:53:41.683606548 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-svneverever.new.26092/python-svneverever.changes 2020-02-19 18:49:19.463070368 +0100 @@ -1,0 +2,7 @@ +Thu Jan 9 11:59:37 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.4.2: + * port to python3 +- Update package to build with python 3 in mind + +------------------------------------------------------------------- Old: ---- svneverever-1.2.2.tar.gz New: ---- v1.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-svneverever.spec ++++++ --- /var/tmp/diff_new_pack.T0Ql2P/_old 2020-02-19 18:49:19.775070700 +0100 +++ /var/tmp/diff_new_pack.T0Ql2P/_new 2020-02-19 18:49:19.779070704 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-svneverever # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,30 +12,32 @@ # 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/ # %define mod_name svneverever +%define skip_python2 1 +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-svneverever -Version: 1.2.2 +Version: 1.4.2 Release: 0 Summary: Tool collecting path entries across SVN history -License: GPL-3.0 -Group: Development/Tools/Version Control -Url: http://git.goodpoint.de/?p=svneverever.git -Source: http://hartwork.org/public/%{mod_name}-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +License: GPL-3.0-only +URL: https://github.com/hartwork/svneverever +Source: https://github.com/hartwork/svneverever/archive/v%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six Requires: subversion -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{!?python_sitelib: %global python_sitelib %(python -c "from %{distutils}.config import get_python_lib; print get_python_lib()")} -%if %{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch -%endif -%endif +Obsoletes: %{oldpython}-svneverever +%python_subpackages %description Tool collecting path entries across SVN history. It runs through all SVN history @@ -46,15 +48,22 @@ %setup -q -n %{mod_name}-%{version} %build -python setup.py build +%python_build %install -python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot} - -%files -%defattr(-,root,root) -%doc README.txt -%{_bindir}/%{mod_name} +%python_install +%python_clone %{buildroot}%{_bindir}/%{mod_name} -a +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative %{mod_name} + +%postun +%python_uninstall_alternative %{mod_name} + +%files %{python_files} +%doc README.asciidoc +%python_alternative %{_bindir}/%{mod_name} %{python_sitelib}/%{mod_name}-%{version}-*.egg-info %{python_sitelib}/%{mod_name}/