diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6ae497 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/openscap-report-0.1.2.tar.gz diff --git a/openscap-report.spec b/openscap-report.spec new file mode 100644 index 0000000..1d2e9a3 --- /dev/null +++ b/openscap-report.spec @@ -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 - 0.1.2-1 +- Fix problems found by package review. + +* Mon Jun 06 2022 Jan Rodak - 0.1.1-0 +- Initial version of the package. diff --git a/sources b/sources new file mode 100644 index 0000000..c5bf729 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (openscap-report-0.1.2.tar.gz) = 1e404807d7110465d8225b99f84d04683e2b2ace6c0557911ec61d0d3f271202bbc6b1184264535d5a578fecae12a2558665fe07912eeac0a1171d017d4c39cd