Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-gflags for 
openSUSE:Factory checked in at 2025-06-11 16:23:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-gflags (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-gflags.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-gflags"

Wed Jun 11 16:23:47 2025 rev:13 rq:1284473 version:3.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-gflags/python-python-gflags.changes    
    2018-12-27 00:28:00.287731187 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-gflags.new.19631/python-python-gflags.changes
     2025-06-11 16:24:44.944024511 +0200
@@ -1,0 +2,5 @@
+Tue Jun 10 13:05:02 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to pip-based build and libalternatives
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-python-gflags.spec ++++++
--- /var/tmp/diff_new_pack.BSKFkh/_old  2025-06-11 16:24:45.792059900 +0200
+++ /var/tmp/diff_new_pack.BSKFkh/_new  2025-06-11 16:24:45.796060067 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-gflags
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -17,26 +17,27 @@
 
 
 %define oldpython python
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without libalternatives
 Name:           python-python-gflags
 Version:        3.1.2
 Release:        0
-Url:            http://code.google.com/p/python-gflags
 Summary:        Google Commandline Flags Module
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
+URL:            https://code.google.com/p/python-gflags
 Source:         
https://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
+BuildArch:      noarch
 %ifpython2
 Provides:       %{oldpython}-gflags = %{version}
 Obsoletes:      %{oldpython}-gflags < %{version}
 %endif
-BuildArch:      noarch
-Requires(post):   update-alternatives
-Requires(preun):  update-alternatives
 %python_subpackages
 
 %description
@@ -56,24 +57,21 @@
 %setup -q -n python-gflags-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 mv %{buildroot}%{_bindir}/gflags2man.py %{buildroot}%{_bindir}/gflags2man
 %python_clone -a %{buildroot}%{_bindir}/gflags2man
 
-%post
-%python_install_alternative gflags2man
-
-%preun
-%python_uninstall_alternative gflags2man
+%pre
+%python_libalternatives_reset_alternative gflags2man
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %license COPYING
 %doc AUTHORS ChangeLog README.md
 %python_alternative %{_bindir}/gflags2man
-%{python_sitelib}/*
+%{python_sitelib}/gflags
+%{python_sitelib}/python[-_]gflags-%{version}*-info
 

Reply via email to