Hello community,

here is the log from the commit of package python-ntfy for openSUSE:Factory 
checked in at 2020-04-23 18:32:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ntfy (Old)
 and      /work/SRC/openSUSE:Factory/.python-ntfy.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ntfy"

Thu Apr 23 18:32:29 2020 rev:4 rq:796344 version:2.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ntfy/python-ntfy.changes  2018-12-24 
11:40:25.469503621 +0100
+++ /work/SRC/openSUSE:Factory/.python-ntfy.new.2738/python-ntfy.changes        
2020-04-23 18:32:34.740333535 +0200
@@ -1,0 +2,6 @@
+Tue Apr 21 19:15:31 UTC 2020 - Matthias Bach <[email protected]>
+
+- Drop deprecated usage of %python3_only in favour of
+  %python_alternative.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ntfy.spec ++++++
--- /var/tmp/diff_new_pack.uhFL3m/_old  2020-04-23 18:32:35.464334920 +0200
+++ /var/tmp/diff_new_pack.uhFL3m/_new  2020-04-23 18:32:35.468334927 +0200
@@ -1,8 +1,8 @@
 #
 # spec file for package python-ntfy
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2018 Matthias Bach <[email protected]>.
+# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2020 Matthias Bach <[email protected]>.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,7 @@
 Summary:        A utility for sending push notifications
 License:        GPL-3.0-only
 Group:          Development/Languages/Python
-Url:            https://github.com/dschep/ntfy
+URL:            https://github.com/dschep/ntfy
 Source:         ntfy-%{version}.tar.xz
 BuildRequires:  %{python_module appdirs}
 BuildRequires:  %{python_module requests}
@@ -51,6 +51,8 @@
 Suggests:       python-instapush
 Suggests:       python-rocketchat-API
 Suggests:       python-emoji
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
@@ -77,16 +79,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/ntfy
 %python_expand %fdupes %{buildroot}%{$python_sitelib}/ntfy*
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative ntfy
+
+%postun
+%python_uninstall_alternative ntfy
+
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/ntfy
+%python_alternative %{_bindir}/ntfy
 %{python_sitelib}/*
 
 %changelog


Reply via email to