commit python-unify for openSUSE:Leap:15.2

2020-05-24 Thread root
Hello community,

here is the log from the commit of package python-unify for openSUSE:Leap:15.2 
checked in at 2020-05-24 18:08:48

Comparing /work/SRC/openSUSE:Leap:15.2/python-unify (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-unify.new.2738 (New)


Package is "python-unify"

Sun May 24 18:08:48 2020 rev:4 rq:808445 version:0.5

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-unify/python-unify.changes  
2020-03-02 13:24:29.150532986 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-unify.new.2738/python-unify.changes
2020-05-24 18:08:49.166126003 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:41 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-unify.spec ++
--- /var/tmp/diff_new_pack.MFfU9H/_old  2020-05-24 18:08:49.458126635 +0200
+++ /var/tmp/diff_new_pack.MFfU9H/_new  2020-05-24 18:08:49.462126644 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unify
 #
-# 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
@@ -31,6 +31,8 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
 Requires:   python-untokenize
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
@@ -59,11 +61,18 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes
+%python_clone -a %{buildroot}%{_bindir}/unify_quotes
+
+%post
+%python_install_alternative unify_quotes
+
+%postun
+%python_uninstall_alternative unify_quotes
 
 %files %{python_files}
 %license LICENSE
 %doc README.rst README.suse
-%python3_only %{_bindir}/unify_quotes
+%python_alternative %{_bindir}/unify_quotes
 %{python_sitelib}/*
 
 %changelog




commit python-unify for openSUSE:Leap:15.2

2020-03-02 Thread root
Hello community,

here is the log from the commit of package python-unify for openSUSE:Leap:15.2 
checked in at 2020-03-02 13:24:28

Comparing /work/SRC/openSUSE:Leap:15.2/python-unify (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-unify.new.26092 (New)


Package is "python-unify"

Mon Mar  2 13:24:28 2020 rev:3 rq:777251 version:0.5

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-unify/python-unify.changes  
2020-01-15 15:54:00.215617170 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-unify.new.26092/python-unify.changes   
2020-03-02 13:24:29.150532986 +0100
@@ -1,0 +2,12 @@
+Tue Sep 10 09:32:34 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.5:
+  * Provide license
+  * minor fixes
+
+---
+Mon Jun  3 11:36:19 UTC 2019 - pgaj...@suse.com
+
+- run the testsuite, call spec-cleaner
+
+---

Old:

  unify-0.4.tar.gz

New:

  v0.5.tar.gz



Other differences:
--
++ python-unify.spec ++
--- /var/tmp/diff_new_pack.hw927n/_old  2020-03-02 13:24:29.502533686 +0100
+++ /var/tmp/diff_new_pack.hw927n/_new  2020-03-02 13:24:29.506533694 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unify
 #
-# 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
@@ -18,23 +18,24 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-unify
-Version:0.4
+Version:0.5
 Release:0
 Summary:Tool to modify strings to use the same quotes
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/myint/unify
-Source: 
https://files.pythonhosted.org/packages/source/u/unify/unify-%{version}.tar.gz
+URL:https://github.com/myint/unify
+Source: https://github.com/myint/unify/archive/v%{version}.tar.gz
 Source9:README.suse
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-setuptools
+Requires:   python-untokenize
+BuildArch:  noarch
 # SECTION test requirements
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module untokenize}
 # /SECTION
-Requires:   python-untokenize
-BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -51,12 +52,16 @@
 %build
 %python_build
 
+%check
+%pytest
+
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes
 
 %files %{python_files}
+%license LICENSE
 %doc README.rst README.suse
 %python3_only %{_bindir}/unify_quotes
 %{python_sitelib}/*