17
0

2 Commits

Author SHA256 Message Date
be09c83377 Accepting request 1295474 from security
- Use pyproject macros from python-rpm-macros to build and install.
- Run the testsuite.
- Sprinkle in fdupes. (forwarded request 1288763 from StevenK)

OBS-URL: https://build.opensuse.org/request/show/1295474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openscap-report?expand=0&rev=5
2025-07-24 16:49:37 +00:00
125061a5da - Use pyproject macros from python-rpm-macros to build and install.
- Run the testsuite.
- Sprinkle in fdupes.

OBS-URL: https://build.opensuse.org/package/show/security/openscap-report?expand=0&rev=9
2025-07-24 09:02:44 +00:00
2 changed files with 23 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jun 27 01:46:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros from python-rpm-macros to build and install.
- Run the testsuite.
- Sprinkle in fdupes.
-------------------------------------------------------------------
Thu Jun 20 05:09:23 UTC 2024 - ming li <mli@suse.com>

View File

@@ -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 @@ Summary: A tool for generating human-readable reports from (SCAP) XCCDF a
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,23 +50,25 @@ human-readable reports from SCAP XCCDF and ARF results.
%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
%changelog