From 47f9fa4e66cbc61c00f7b46b2c6085612d0fcc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Thu, 18 Apr 2024 17:00:38 +0200 Subject: [PATCH] Introduce openscap-report to RHEL 8 Resolves: RHEL-32208 --- .gitignore | 1 + openscap-report.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 openscap-report.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..037e290 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/openscap_report-0.2.9.tar.gz diff --git a/openscap-report.spec b/openscap-report.spec new file mode 100644 index 0000000..470e070 --- /dev/null +++ b/openscap-report.spec @@ -0,0 +1,61 @@ +%global pymodule_name openscap_report + +Name: openscap-report +Version: 0.2.9 +Release: 1%{?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-rpm-macros +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + +Provides: bundled(patternfly) = 4 + +Requires: python3-lxml +Requires: python3-jinja2 +Recommends: redhat-display-fonts +Recommends: redhat-text-fonts + +%{?python_enable_dependency_generator} + +%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} + + +%build +%py3_build +sphinx-build -b man docs _build_docs + + + +%install +%py3_install +install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 + + + +%files -n %{name} +%{_mandir}/man1/oscap-report.* +%{_bindir}/oscap-report +%{python3_sitelib}/%{pymodule_name}/ +%{python3_sitelib}/%{pymodule_name}-%{version}* +%exclude %{python3_sitelib}/tests/ +%license LICENSE + + +%changelog +* Tue Apr 23 2024 Jan Černý - 0.2.9-1 +- Initial build for RHEL 8 diff --git a/sources b/sources new file mode 100644 index 0000000..ac926e5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (openscap_report-0.2.9.tar.gz) = d8bca302a8209a57fc63b802dbffa40bd9499221dc6d0a038a168ac3266441cece78548fab44db5aa2f14cd3aa083f059c05ac5ec01150a3ce542dda7937bb25