From 2f1d17ef3ade47b4f15fd2d9b42ff3738997bc26 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 7 Oct 2024 21:04:22 +0300 Subject: [PATCH] import openscap-report-0.2.9-2.el9 --- .gitignore | 1 + .openscap-report.metadata | 1 + SPECS/openscap-report.spec | 75 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 .openscap-report.metadata create mode 100644 SPECS/openscap-report.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42cad8d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/openscap_report-0.2.9.tar.gz diff --git a/.openscap-report.metadata b/.openscap-report.metadata new file mode 100644 index 0000000..4b8f97f --- /dev/null +++ b/.openscap-report.metadata @@ -0,0 +1 @@ +6f5f38657c85400a66a14955bcc5f733a60d5504 SOURCES/openscap_report-0.2.9.tar.gz diff --git a/SPECS/openscap-report.spec b/SPECS/openscap-report.spec new file mode 100644 index 0000000..28e76b7 --- /dev/null +++ b/SPECS/openscap-report.spec @@ -0,0 +1,75 @@ +%global pymodule_name openscap_report + +Name: openscap-report +Version: 0.2.9 +Release: 2%{?dist} +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: LGPLv2+ and GPLv2+ and MIT and Public Domain +URL: https://github.com/OpenSCAP/%{name} +Source0: https://github.com/OpenSCAP/%{name}/releases/download/v%{version}/%{pymodule_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + +Provides: bundled(patternfly) = 4 + +Requires: python3-lxml +Recommends: redhat-display-fonts +Recommends: redhat-text-fonts + +%global _description %{expand: +This package provides a command-line tool for generating +human-readable reports from SCAP XCCDF and ARF results.} + +%description %_description + + +%prep +%autosetup -p1 -n %{pymodule_name}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires +# test requirement listed only in tox.ini +echo "%{py3_dist jsonschema}" + + +%build +%pyproject_wheel +sphinx-build -b man docs _build_docs + + + +%install +%pyproject_install +%pyproject_save_files %{pymodule_name} +install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 + + +%check +# test_store_file fails with FileNotFoundError: [Errno 2] No such file or directory: '/tmp/oscap-report-tests_result.html' +%pytest -k "not test_store_file" + +%files -f %{pyproject_files} +%{_mandir}/man1/oscap-report.* +%{_bindir}/oscap-report +%exclude %{python3_sitelib}/tests/ +%license LICENSE + + +%changelog +* Mon Oct 07 2024 MSVSphere Packaging Team - 0.2.9-2 +- Rebuilt for MSVSphere 9.5 beta + +* Thu May 16 2024 Jan Černý - 0.2.9-2 +- Add gating.yaml + +* Thu Apr 25 2024 Jan Černý - 0.2.9-1 +- Initial build for RHEL 9 +