Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package azure-cli-nspkg for openSUSE:Factory 
checked in at 2024-04-07 22:38:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-nspkg (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-nspkg.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-nspkg"

Sun Apr  7 22:38:46 2024 rev:7 rq:1165352 version:3.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-nspkg/azure-cli-nspkg.changes  
2022-07-14 16:35:08.948679307 +0200
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-nspkg.new.1905/azure-cli-nspkg.changes    
    2024-04-07 22:38:57.607060846 +0200
@@ -1,0 +2,12 @@
+Thu Apr  4 13:16:37 UTC 2024 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Switch package to modern Python Stack on SLE-15
+  + Use Python 3.11 on SLE-15 by default
+  + Use primary Python version on Tumbleweed
+- Switch build system from setuptools to pyproject.toml
+  + Add python-pip and python-wheel to BuildRequires
+  + Replace %python_build with %pyproject_wheel
+  + Replace %python_install with %pyproject_install
+  + Update name for dist directory in %files section
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ azure-cli-nspkg.spec ++++++
--- /var/tmp/diff_new_pack.yArhcr/_old  2024-04-07 22:38:58.947109995 +0200
+++ /var/tmp/diff_new_pack.yArhcr/_new  2024-04-07 22:38:58.951110142 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package azure-cli-nspkg
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,13 @@
 #
 
 
+%if 0%{?suse_version} >= 1600
+%define pythons %{primary_python}
+%else
+%define pythons python311
+%endif
+%global _sitelibdir %{%{pythons}_sitelib}
+
 Name:           azure-cli-nspkg
 Version:        3.0.4
 Release:        0
@@ -25,11 +32,13 @@
 URL:            https://github.com/Azure/azure-cli
 Source:         
https://files.pythonhosted.org/packages/source/a/azure-cli-nspkg/azure-cli-nspkg-%{version}.tar.gz
 Source1:        LICENSE.txt
+BuildRequires:  %{pythons}-azure-nspkg >= 3.0.0
+BuildRequires:  %{pythons}-pip
+BuildRequires:  %{pythons}-setuptools
+BuildRequires:  %{pythons}-wheel
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-azure-nspkg >= 3.0.0
-BuildRequires:  python3-setuptools
-Requires:       python3-azure-nspkg >= 3.0.0
+Requires:       %{pythons}-azure-nspkg >= 3.0.0
 Conflicts:      azure-cli < 2.0.0
 
 BuildArch:      noarch
@@ -48,16 +57,16 @@
 
 %build
 install -m 644 %{SOURCE1} %{_builddir}/azure-cli-nspkg-%{version}
-python3 setup.py build
+%pyproject_wheel
 
 %install
-python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} 
--install-lib=%{python3_sitelib}
-%fdupes %{buildroot}%{python3_sitelib}
+%pyproject_install
+%fdupes %{buildroot}%{_sitelibdir}
 
 %files
 %defattr(-,root,root,-)
 %doc README.rst
 %license LICENSE.txt
-%{python3_sitelib}/azure/cli
-%{python3_sitelib}/azure_cli_nspkg-*.egg-info
+%{_sitelibdir}/azure/cli
+%{_sitelibdir}/azure_cli_nspkg-*.dist-info
 

Reply via email to