Hello community,

here is the log from the commit of package python-titlecase for 
openSUSE:Factory checked in at 2020-05-19 14:48:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-titlecase (Old)
 and      /work/SRC/openSUSE:Factory/.python-titlecase.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-titlecase"

Tue May 19 14:48:51 2020 rev:3 rq:806969 version:0.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-titlecase/python-titlecase.changes        
2019-01-24 14:14:21.447297159 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-titlecase.new.2738/python-titlecase.changes  
    2020-05-19 14:48:53.384124037 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:30 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-titlecase.spec ++++++
--- /var/tmp/diff_new_pack.c1DRLv/_old  2020-05-19 14:48:54.100125625 +0200
+++ /var/tmp/diff_new_pack.c1DRLv/_new  2020-05-19 14:48:54.104125634 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-titlecase
 #
-# Copyright (c) 2018 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
@@ -23,16 +23,17 @@
 Summary:        Python library to capitalize strings
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/ppannuto/python-titlecase
+URL:            https://github.com/ppannuto/python-titlecase
 Source:         
https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module nose >= 1.0}
 # /SECTION
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -50,14 +51,21 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/titlecase
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative titlecase
+
+%postun
+%python_uninstall_alternative titlecase
+
 %files %{python_files}
 %doc README.rst
-%python3_only %{_bindir}/titlecase
+%python_alternative %{_bindir}/titlecase
 %{python_sitelib}/*
 
 %changelog


Reply via email to