File fix_setup.patch of Package ServiceReport

---
 servicereport |   15 ---------------
 setup.cfg     |   23 +++++++++++++++++------
 setup.py      |   27 ++-------------------------
 3 files changed, 19 insertions(+), 46 deletions(-)

Index: ServiceReport-2.2.4+git7.8ca0fe4/servicereport
===================================================================
--- ServiceReport-2.2.4+git7.8ca0fe4.orig/servicereport	2025-06-20 13:07:00.000000000 +0200
+++ /dev/null	1970-01-01 00:00:00.000000000 +0000
@@ -1,15 +0,0 @@
-#!/usr/bin/env python3
-
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# (C) Copyright IBM Corp. 2018, 2019
-# Author: Sourabh Jain <sourabhjain@linux.ibm.com>
-
-"""Entry point script"""
-
-import sys
-
-from servicereportpkg import main
-
-if __name__ == "__main__":
-    sys.exit(main())
Index: ServiceReport-2.2.4+git7.8ca0fe4/setup.cfg
===================================================================
--- ServiceReport-2.2.4+git7.8ca0fe4.orig/setup.cfg	2025-06-20 13:07:00.000000000 +0200
+++ ServiceReport-2.2.4+git7.8ca0fe4/setup.cfg	2025-07-29 15:38:48.669844964 +0200
@@ -3,10 +3,21 @@
 # (C) Copyright IBM Corp. 2018, 2019
 # Author: Sourabh Jain <sourabhjain@linux.ibm.com>
 
-
 [metadata]
-name: ServiceReport
-description: FFDC validation tool
-long_description: Validation tool to verify First Failure Data Capture (FFDC) configurations
-author: Sourabh Jain
-author_email: sourabhjain@linux.ibm.com
+name = ServiceReport
+version = attr: servicereportpkg.get_version
+author = Sourabh Jain
+author_email = sourabhjain@linux.ibm.com
+description = FFDC validation tool
+long_description = file: README.md
+license = GPL-2.0-only
+classifiers =
+    Development Status :: 4 - Beta
+    Programming Language :: Python
+
+[options]
+packages = find:
+
+[options.entry_points]
+console_scripts =
+    servicereport = servicereportpkg:main
Index: ServiceReport-2.2.4+git7.8ca0fe4/setup.py
===================================================================
--- ServiceReport-2.2.4+git7.8ca0fe4.orig/setup.py	2025-06-20 13:07:00.000000000 +0200
+++ ServiceReport-2.2.4+git7.8ca0fe4/setup.py	2025-07-29 15:38:48.669994876 +0200
@@ -1,26 +1,3 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# (C) Copyright IBM Corp. 2018, 2019
-# Author: Sourabh Jain <sourabhjain@linux.ibm.com>
+from setuptools import setup
 
-import os
-import sys
-from setuptools import setup, find_packages
-
-from servicereportpkg import get_version
-
-# Workaround for https://bugs.python.org/issue644744
-if "bdist_rpm" in sys.argv[1:]:
-    os.putenv("COMPRESS", " ")
-
-setup(packages=find_packages(),
-      scripts=['servicereport'],
-      version=get_version(),
-      data_files=[('share/man/man8', ['man/servicereport.8']),
-                  ('share/doc/ServiceReport', ['README.md']),
-                  ('share/licenses/ServiceReport', ['COPYING']),
-                  ('/usr/lib/systemd/system',
-                   ['service/servicereport.service'])],
-      classifiers=[
-          'Development Status :: 4 - Beta',
-          'Programming Language :: Python'])
+setup()
openSUSE Build Service is sponsored by