From cf92d3c2a1b220550ad5669ab6575f6d930e439e Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Jun 04 2025 19:10:21 +0000
Subject: Update python-pygerrit2 to version 2.0.15 / rev 6 via SR 1282689
https://build.opensuse.org/request/show/1282689
by user mcalabkova + dimstar_suse
- Convert to pip-based build
---
diff --git a/packages/p/python-pygerrit2/.files b/packages/p/python-pygerrit2/.files
index f2a1b40..e13a79d 100644
Binary files a/packages/p/python-pygerrit2/.files and b/packages/p/python-pygerrit2/.files differ
diff --git a/packages/p/python-pygerrit2/.rev b/packages/p/python-pygerrit2/.rev
index ce362a8..3cd4065 100644
--- a/packages/p/python-pygerrit2/.rev
+++ b/packages/p/python-pygerrit2/.rev
@@ -41,4 +41,12 @@
967460
+
+ 9f281f052ce085f2e756c17526758cc2
+ 2.0.15
+
+ dimstar_suse
+ - Convert to pip-based build
+ 1282689
+
diff --git a/packages/p/python-pygerrit2/python-pygerrit2.changes b/packages/p/python-pygerrit2/python-pygerrit2.changes
index c4ad6cd..f5633d8 100644
--- a/packages/p/python-pygerrit2/python-pygerrit2.changes
+++ b/packages/p/python-pygerrit2/python-pygerrit2.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed Jun 4 10:18:34 UTC 2025 - Markéta Machová
+
+- Convert to pip-based build
+
+-------------------------------------------------------------------
Thu Apr 7 09:15:39 UTC 2022 - pgajdos@suse.com
- version update to 2.0.15
diff --git a/packages/p/python-pygerrit2/python-pygerrit2.spec b/packages/p/python-pygerrit2/python-pygerrit2.spec
index 843e8a4..5d065ba 100644
--- a/packages/p/python-pygerrit2/python-pygerrit2.spec
+++ b/packages/p/python-pygerrit2/python-pygerrit2.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-pygerrit2
#
-# 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,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pygerrit2
Version: 2.0.15
Release: 0
@@ -26,7 +25,9 @@ Group: Development/Languages/Python
URL: https://github.com/dpursehouse/pygerrit2
Source: https://files.pythonhosted.org/packages/source/p/pygerrit2/pygerrit2-%{version}.tar.gz
BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pbr >= 0.8.0
@@ -50,10 +51,10 @@ See also: https://gerritcodereview.com/
%setup -q -n pygerrit2-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -64,6 +65,7 @@ sed -i 's:from mock:from unittest.mock:' unittests.py
%files %{python_files}
%license LICENSE
%doc AUTHORS ChangeLog README.md
-%{python_sitelib}/*
+%{python_sitelib}/pygerrit2
+%{python_sitelib}/pygerrit2-%{version}*-info
%changelog