diff --git a/openscap-report.spec b/openscap-report.spec index b261fdb..bf867d2 100644 --- a/openscap-report.spec +++ b/openscap-report.spec @@ -2,7 +2,7 @@ Name: openscap-report Version: 1.0.0 -Release: 1%{?dist} +Release: 6%{?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 @@ -11,60 +11,91 @@ 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-pytest 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 Obsoletes: oval-graph -%{?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} +%generate_buildrequires +%pyproject_buildrequires +# test requirement listed only in tox.ini +echo "%{py3_dist jsonschema}" + + %build -%py3_build +%pyproject_wheel sphinx-build -b man docs _build_docs %install -%py3_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 -n %{name} +%files -f %{pyproject_files} %{_mandir}/man1/oscap-report.* %{_bindir}/oscap-report -%{python3_sitelib}/%{pymodule_name}/ -%{python3_sitelib}/%{pymodule_name}-%{version}* %exclude %{python3_sitelib}/tests/ %license LICENSE %changelog +* Fri Sep 19 2025 Python Maint - 1.0.0-6 +- Rebuilt for Python 3.14.0rc3 bytecode + +* Fri Aug 15 2025 Python Maint - 1.0.0-5 +- Rebuilt for Python 3.14.0rc2 bytecode + +* Thu Jul 24 2025 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Wed Jun 04 2025 Python Maint - 1.0.0-3 +- Rebuilt for Python 3.14 + +* Fri Jan 17 2025 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Oct 04 2024 Packit - 1.0.0-1 - Update to version 1.0.0 +* Thu Jul 18 2024 Fedora Release Engineering - 0.2.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 0.2.9-2 +- Rebuilt for Python 3.13 + * Tue Apr 23 2024 Packit - 0.2.9-1 - Update to version 0.2.9 +* Mon Jan 29 2024 Yaakov Selkowitz - 0.2.7-2 +- Avoid tox dependency + * Fri Jan 26 2024 Packit - 0.2.7-1 - 0.2.7 (Jan Rodak) - Add tool tip to search bar (Jan Rodak) @@ -86,6 +117,12 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 - Add target addresses to model (Jan Rodak) - Fix width of pre element (Jan Rodak) +* Thu Jan 25 2024 Fedora Release Engineering - 0.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Dec 20 2023 Packit - 0.2.6-1 - 0.2.6 (Jan Rodak) - Extend the condition to account empty strings in href (Jan Černý) @@ -131,6 +168,12 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 - Add explanation of score computation (Jan Rodak) - Parse system attribute from score element (Jan Rodak) +* Thu Jul 20 2023 Fedora Release Engineering - 0.2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 05 2023 Python Maint - 0.2.4-2 +- Rebuilt for Python 3.12 + * Wed Jul 05 2023 Packit - 0.2.4-1 - 0.2.4 (Jan Rodak) - Rename field Result explained to Class explained (Jan Rodak) @@ -164,6 +207,9 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1 - Sync generate_arf.sh (Jan Rodak) - Remove execution of integration test on push to main (Jan Rodak) +* Thu Jun 15 2023 Python Maint - 0.2.3-2 +- Rebuilt for Python 3.12 + * Fri Apr 14 2023 Packit - 0.2.3-1 - 0.2.3 (Jan Rodak) - Determine which product use (Jan Rodak)