Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package openscap-report for openSUSE:Factory 
checked in at 2025-07-24 18:49:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openscap-report (Old)
 and      /work/SRC/openSUSE:Factory/.openscap-report.new.13279 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openscap-report"

Thu Jul 24 18:49:37 2025 rev:5 rq:1295474 version:0.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/openscap-report/openscap-report.changes  
2024-06-20 16:49:01.461480390 +0200
+++ 
/work/SRC/openSUSE:Factory/.openscap-report.new.13279/openscap-report.changes   
    2025-07-24 18:50:59.499325108 +0200
@@ -1,0 +2,7 @@
+Fri Jun 27 01:46:10 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Use pyproject macros from python-rpm-macros to build and install.
+- Run the testsuite.
+- Sprinkle in fdupes.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ openscap-report.spec ++++++
--- /var/tmp/diff_new_pack.p7gMz2/_old  2025-07-24 18:51:00.619371496 +0200
+++ /var/tmp/diff_new_pack.p7gMz2/_new  2025-07-24 18:51:00.619371496 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package openscap-report
 #
-# Copyright (c) 2024 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,6 +16,7 @@
 #
 
 
+%define pythons python3
 Name:           openscap-report
 Version:        0.2.6
 Release:        0
@@ -24,12 +25,18 @@
 License:        GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND 
SUSE-Public-Domain
 URL:            https://github.com/OpenSCAP/%{name}
 Source0:        
https://github.com/OpenSCAP/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-devel
+BuildRequires:  python3-jsonschema
 BuildRequires:  python3-lxml
+BuildRequires:  python3-pip
+BuildRequires:  python3-pytest
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-sphinx_rtd_theme
+BuildRequires:  python3-wheel
 Requires:       python3-Jinja2
 Requires:       python3-lxml
 Provides:       bundled(patternfly) = 4
@@ -43,22 +50,24 @@
 %autosetup -p1 -n %{name}-%{version}
 
 %build
-python3 setup.py build
+%pyproject_wheel
 sphinx-build -b man docs _build_docs
 
 %install
-python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%pyproject_install
+%fdupes %{buildroot}%{python3_sitelib}
 install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1
 
-# not sure how to do that:
-#check
-#tox
+%check
+export PATH=%{buildroot}%{_bindir}:$PATH
+# File doesn't get written
+%pytest -k 'not test_store_file'
 
 %files
 %{_mandir}/man1/oscap-report.*
 %{_bindir}/oscap-report
 %exclude %{python3_sitelib}/tests/
 %{python3_sitelib}/openscap_report/
-%{python3_sitelib}/openscap_report-%{version}-py%{python3_bin_suffix}.egg-info/
+%{python3_sitelib}/openscap_report-%{version}.dist-info/
 %license LICENSE
 

Reply via email to