Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-qet_tb_generator for
openSUSE:Factory checked in at 2025-06-11 16:27:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-qet_tb_generator (Old)
and /work/SRC/openSUSE:Factory/.python-qet_tb_generator.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-qet_tb_generator"
Wed Jun 11 16:27:02 2025 rev:8 rq:1284725 version:1.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-qet_tb_generator/python-qet_tb_generator.changes
2022-10-08 01:25:25.926258157 +0200
+++
/work/SRC/openSUSE:Factory/.python-qet_tb_generator.new.19631/python-qet_tb_generator.changes
2025-06-11 16:28:47.050125416 +0200
@@ -1,0 +2,5 @@
+Wed Jun 11 08:50:12 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to pip-based build and libalternatives
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-qet_tb_generator.spec ++++++
--- /var/tmp/diff_new_pack.CgwSg1/_old 2025-06-11 16:28:47.670151280 +0200
+++ /var/tmp/diff_new_pack.CgwSg1/_new 2025-06-11 16:28:47.674151447 +0200
@@ -1,7 +1,7 @@
#
-# spec file
+# spec file for package python-qet_tb_generator
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname qet_tb_generator
-%define skip_python2 1
+%bcond_without libalternatives
Name: python-%{modname}
Version: 1.3.1
Release: 0
@@ -27,13 +26,15 @@
URL: https://pypi.python.org/pypi/qet-tb-generator
Source0:
https://files.pythonhosted.org/packages/source/q/qet_tb_generator/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.5}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
+BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: alts
Requires: python-qt5
Requires: qelectrotech
-Requires(post): update-alternatives
-Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -51,18 +52,15 @@
sed -i
's/qet_tb_generator=src.main:main/qet_tb_generator=qet_tb_generator.main:main/'
setup.py
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/%{modname}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%post
-%python_install_alternative %{modname}
-
-%postun
-%python_uninstall_alternative %{modname}
+%pre
+%python_libalternatives_reset_alternative %{modname}
%files %{python_files}
%doc README