Hello community,
here is the log from the commit of package python-towncrier for
openSUSE:Factory checked in at 2020-05-19 14:48:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-towncrier (Old)
and /work/SRC/openSUSE:Factory/.python-towncrier.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-towncrier"
Tue May 19 14:48:41 2020 rev:2 rq:806966 version:19.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-towncrier/python-towncrier.changes
2020-01-02 14:43:58.880974391 +0100
+++
/work/SRC/openSUSE:Factory/.python-towncrier.new.2738/python-towncrier.changes
2020-05-19 14:48:43.272101612 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-towncrier.spec ++++++
--- /var/tmp/diff_new_pack.MNqAEm/_old 2020-05-19 14:48:44.708104796 +0200
+++ /var/tmp/diff_new_pack.MNqAEm/_new 2020-05-19 14:48:44.712104806 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-towncrier
#
-# Copyright (c) 2019 SUSE LINUX 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,38 +12,40 @@
# 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-%{**}}
Name: python-towncrier
Version: 19.2.0
Release: 0
-License: MIT
Summary: Building newsfiles for your project
-Url: https://github.com/hawkowl/towncrier
+License: MIT
Group: Development/Languages/Python
+URL: https://github.com/hawkowl/towncrier
Source:
https://files.pythonhosted.org/packages/source/t/towncrier/towncrier-%{version}.tar.gz
-BuildRequires: python-rpm-macros
-BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module incremental}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+Requires: git-core
+Requires: python-Jinja2
+Requires: python-click
+Requires: python-incremental
+Requires: python-toml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch: noarch
# SECTION test requirements
+BuildRequires: %{python_module Jinja2}
+BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module click}
BuildRequires: %{python_module incremental}
-BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module toml}
-BuildRequires: %{python_module Twisted}
BuildRequires: git-core
# /SECTION
-BuildRequires: fdupes
-Requires: git-core
-Requires: python-click
-Requires: python-incremental
-Requires: python-Jinja2
-Requires: python-toml
-BuildArch: noarch
-
%python_subpackages
%description
@@ -57,16 +59,23 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/towncrier
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
+%post
+%python_install_alternative towncrier
+
+%postun
+%python_uninstall_alternative towncrier
+
%files %{python_files}
%doc NEWS.rst README.rst
%license LICENSE
-%python3_only %{_bindir}/towncrier
+%python_alternative %{_bindir}/towncrier
%{python_sitelib}/*
%changelog