Initial import (fedora#2101825).

This commit is contained in:
Jan Rodak 2022-08-10 11:16:54 +02:00
parent a3f9403d5b
commit 63342d6bbf
3 changed files with 68 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/openscap-report-0.1.2.tar.gz

66
openscap-report.spec Normal file
View File

@ -0,0 +1,66 @@
%global pymodule_name openscap_report
Name: openscap-report
Version: 0.1.2
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}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
Provides: bundled(patternfly) = 4
Requires: python3-lxml
Requires: redhat-display-fonts
Requires: 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 %{name}-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%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
%tox
%files -f %{pyproject_files}
%{_mandir}/man1/oscap-report.*
%{_bindir}/oscap-report
%exclude %{python3_sitelib}/tests/
%license LICENSE
%changelog
* Tue Aug 02 2022 Jan Rodak <jrodak@redhat.com> - 0.1.2-1
- Fix problems found by package review.
* Mon Jun 06 2022 Jan Rodak <jrodak@redhat.com> - 0.1.1-0
- Initial version of the package.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (openscap-report-0.1.2.tar.gz) = 1e404807d7110465d8225b99f84d04683e2b2ace6c0557911ec61d0d3f271202bbc6b1184264535d5a578fecae12a2558665fe07912eeac0a1171d017d4c39cd