Hello community,

here is the log from the commit of package httpie for openSUSE:Factory checked 
in at 2020-04-01 19:12:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/httpie (Old)
 and      /work/SRC/openSUSE:Factory/.httpie.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "httpie"

Wed Apr  1 19:12:47 2020 rev:5 rq:790295 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/httpie/httpie.changes    2020-01-20 
22:56:41.975372479 +0100
+++ /work/SRC/openSUSE:Factory/.httpie.new.3248/httpie.changes  2020-04-01 
19:14:14.503420527 +0200
@@ -1,0 +2,5 @@
+Tue Mar 31 16:59:11 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ httpie.spec ++++++
--- /var/tmp/diff_new_pack.pQawGB/_old  2020-04-01 19:14:16.403421382 +0200
+++ /var/tmp/diff_new_pack.pQawGB/_new  2020-04-01 19:14:16.403421382 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package httpie
 #
-# Copyright (c) 2020 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
@@ -29,7 +29,6 @@
 Source1:        http.1
 Patch0:         httpie-adjust-requirements.patch
 BuildRequires:  %{python_module Pygments >= 2.1.3}
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest-httpbin}
 BuildRequires:  %{python_module pytest}
@@ -43,6 +42,8 @@
 Suggests:       python-colorama >= 0.2.4
 Provides:       httpie
 BuildArch:      noarch
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 %python_subpackages
 
 %description
@@ -66,19 +67,27 @@
 %install
 export LC_CTYPE=en_US.UTF-8
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/http
+%python_clone -a %{buildroot}%{_bindir}/https
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1
 
 %check
 export LC_CTYPE=en_US.UTF-8
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_version}
+%pytest
+
+%post
+%python_install_alternative http https
+
+%postun
+%python_uninstall_alternative http https
 
 %files %{python_files}
 %doc AUTHORS.rst CHANGELOG.rst README.rst
 %license LICENSE
-%python3_only %{_bindir}/http
-%python3_only %{_bindir}/https
+%python_alternative %{_bindir}/http
+%python_alternative %{_bindir}/https
 %{python_sitelib}/*
-%{_mandir}/man1/http.1%{ext_man}
+%{_mandir}/man1/http.1%{?ext_man}
 
 %changelog


Reply via email to