# # spec file for package openscap-report # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define pythons python3 Name: openscap-report Version: 0.2.6 Release: 0 Summary: A tool for generating human-readable reports from (SCAP) XCCDF and ARF results # The entire source code is LGPL-2.1+ and GPL-2.0+ and MIT except schemas/ and assets/, which are Public Domain 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 BuildArch: noarch %description This package provides a command-line tool for generating human-readable reports from SCAP XCCDF and ARF results. %prep %autosetup -p1 -n %{name}-%{version} %build %pyproject_wheel sphinx-build -b man docs _build_docs %install %pyproject_install %fdupes %{buildroot}%{python3_sitelib} install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 %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}.dist-info/ %license LICENSE %changelog