Compare commits

..

14 commits

Author SHA1 Message Date
Python Maint
622553b611 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:34:48 +02:00
Python Maint
b22058781d Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:04:07 +02:00
Fedora Release Engineering
b69db95272 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:39:37 +00:00
Python Maint
22f5bcd187 Rebuilt for Python 3.14 2025-06-04 21:29:43 +02:00
Fedora Release Engineering
de5a49c95a Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 21:49:00 +00:00
Packit
8c5320ed1a Update to 1.0.0 upstream release
Upstream tag: v1.0.0
Upstream commit: 4fed3a2e

Commit authored by Packit automation (https://packit.dev/)
2024-10-04 10:06:13 +00:00
Fedora Release Engineering
76fa7a23e5 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:58:56 +00:00
Python Maint
890abe5f4e Rebuilt for Python 3.13 2024-06-08 11:35:33 +02:00
Packit
d71a523f0d Update to 0.2.9 upstream release
Upstream tag: v0.2.9
Upstream commit: be59973d

Commit authored by Packit automation (https://packit.dev/)
2024-04-23 13:07:05 +00:00
Yaakov Selkowitz
39e924bdb7 Avoid coverage and tox dependencies
The Fedora Python packaging guidelines exclude coverage checks as used
in this package's tox.ini:

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

Furthermore, RHEL does not include tox, but even in Fedora it does not
add much value relative to its dependencies.  Calling %pytest directly
is simpler and more conformant.

https://github.com/OpenSCAP/openscap-report/pull/225
2024-01-29 16:34:41 -05:00
Packit
dbeff4dda3 [packit] 0.2.7 upstream release
Upstream tag: v0.2.7
Upstream commit: 60ac886e
2024-01-26 15:11:05 +00:00
Fedora Release Engineering
7dfb1aa0e6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 11:28:21 +00:00
Fedora Release Engineering
338c76c1bc Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 11:20:13 +00:00
Packit
b011fd5356 [packit] 0.2.6 upstream release
Upstream tag: v0.2.6
Upstream commit: a75d1f73
2023-12-20 13:32:26 +00:00
5 changed files with 101 additions and 19 deletions

4
.gitignore vendored
View file

@ -6,3 +6,7 @@
/openscap-report-0.2.3.tar.gz
/openscap-report-0.2.4.tar.gz
/openscap-report-0.2.5.tar.gz
/openscap-report-0.2.6.tar.gz
/openscap-report-0.2.7.tar.gz
/openscap_report-0.2.9.tar.gz
/openscap_report-1.0.0.tar.gz

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.79.1.post14+g9e876412.
The file was generated using packit 0.101.1.post1.dev8+ge78e9e3b.

View file

@ -49,7 +49,7 @@ run_oscap_scan() {
oscap xccdf eval ${fetch} --profile "(all)" --results-arf ${file} ${ds} || EXIT_CODE=$?
echo $EXIT_CODE
if [ ! -f "$file" ]; then
echo "$file does not exist."
echo "$file does not exist." >&2
exit 2
fi
}
@ -58,35 +58,35 @@ get_product() {
cpe_name=$(grep "CPE_NAME=" < /etc/os-release | sed 's/CPE_NAME=//g' | sed 's/["]//g')
if [[ "${cpe_name}" =~ fedora ]]; then
echo "fedora"
elif [[ "${cpe_name}" =~ redhat.*8 ]]; then
echo "rhel8"
elif [[ "${cpe_name}" =~ redhat.*9 ]]; then
echo "rhel9"
elif [[ "${cpe_name}" =~ redhat ]]; then
version=$(grep VERSION_ID /etc/os-release | grep -o "[0-9]\+" | head -n1)
echo "rhel${version}"
elif [[ "${cpe_name}" =~ centos.*8 ]]; then
echo "centos8"
elif [[ "${cpe_name}" =~ centos.*9 ]]; then
echo "cs9"
elif [[ "${cpe_name}" =~ centos ]]; then
version=$(grep VERSION_ID /etc/os-release | grep -o "[0-9]\+")
echo "cs${version}"
else
echo $cpe_name
echo "ERROR: Not supported OS!"
echo "ERROR: Not supported OS!" >&2
exit 1
fi
}
if [ "$1" = "" ]; then
echo "ERROR: Missing MODE parameter!"
echo "ERROR: Missing MODE parameter!" >&2
exit 1
fi
if [ "$2" = "" ]; then
echo "ERROR: Missing FETCH parameter!"
echo "ERROR: Missing FETCH parameter!" >&2
exit 1
fi
if [ "$3" = "" ]; then
echo "ERROR: Missing ARF_FILE parameter!"
echo "ERROR: Missing ARF_FILE parameter!" >&2
exit 1
fi
file=$3

View file

@ -1,18 +1,19 @@
%global pymodule_name openscap_report
Name: openscap-report
Version: 0.2.5
Release: 1%{?dist}
Version: 1.0.0
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
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
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
@ -22,6 +23,8 @@ Requires: python3-lxml
Recommends: redhat-display-fonts
Recommends: redhat-text-fonts
Obsoletes: oval-graph
%global _description %{expand:
This package provides a command-line tool for generating
human-readable reports from SCAP XCCDF and ARF results.}
@ -30,11 +33,13 @@ human-readable reports from SCAP XCCDF and ARF results.}
%prep
%autosetup -p1 -n %{name}-%{version}
%autosetup -p1 -n %{pymodule_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%pyproject_buildrequires
# test requirement listed only in tox.ini
echo "%{py3_dist jsonschema}"
%build
@ -50,7 +55,8 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1
%check
%tox
# 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.*
@ -60,6 +66,78 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1
%changelog
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.0.0-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.0.0-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed Jun 04 2025 Python Maint <python-maint@redhat.com> - 1.0.0-3
- Rebuilt for Python 3.14
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Oct 04 2024 Packit <hello@packit.dev> - 1.0.0-1
- Update to version 1.0.0
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.2.9-2
- Rebuilt for Python 3.13
* Tue Apr 23 2024 Packit <hello@packit.dev> - 0.2.9-1
- Update to version 0.2.9
* Mon Jan 29 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 0.2.7-2
- Avoid tox dependency
* Fri Jan 26 2024 Packit <hello@packit.dev> - 0.2.7-1
- 0.2.7 (Jan Rodak)
- Add tool tip to search bar (Jan Rodak)
- Enable search by reference (Jan Rodak)
- Add generation search infromation (Jan Rodak)
- Use macro for generation of list items (Jan Rodak)
- Create two-tier display of Evaluation Characteristics (Jan Rodak)
- Add title (Jan Rodak)
- Reduce complexity of function generate_referenced_endpoints (Jan Rodak)
- Use default dict (Jan Rodak)
- Fix JSON schema (Jan Rodak)
- Use correct orthography of addresses types acronyms (Jan Rodak)
- Add function to update known references (Jan Rodak)
- Change the presentation of referenced endpoints (Jan Rodak)
- Add new elements (Jan Rodak)
- Add onclick function (Jan Rodak)
- Add map of OVAL endpoints (Jan Rodak)
- Add target addresses to report (Jan Rodak)
- Add target addresses to model (Jan Rodak)
- Fix width of pre element (Jan Rodak)
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Dec 20 2023 Packit <hello@packit.dev> - 0.2.6-1
- 0.2.6 (Jan Rodak)
- Extend the condition to account empty strings in href (Jan Černý)
- Add comments for the pylint tool (Jan Černý)
- Add special classes to table element (Jan Černý)
- Account for missing reference href attribute (Jan Černý)
- Add pragmas to avoid PEP8 warnings (Jan Černý)
- Present references in a table (Jan Černý)
- Collapse CPE tree when is true (Jan Rodak)
- Fix typo (Jan Rodak)
- Add titles (Jan Rodak)
- Fix performace of generation of graphs (Jan Rodak)
- Rearrange fields of rule detail and OVAL definition detail (Jan Rodak)
- Fix bugs in html (Jan Rodak)
* Mon Sep 11 2023 Packit <hello@packit.dev> - 0.2.5-1
- 0.2.5 (Jan Rodak)
- Show referenced OVAL State (Jan Rodak)

View file

@ -1 +1 @@
SHA512 (openscap-report-0.2.5.tar.gz) = 6a13f5f18cd6b52016d7d04f6d1db37e5506cc90ae6adf75ff431e89bcacec5b081baf1dfb7cd7fdcd90827615b325976950149af051d074a8247fbe62a0f43d
SHA512 (openscap_report-1.0.0.tar.gz) = 6ca5a24798961cfc50112e9da9157f582732574fef4592a7fe5c8a98b4ed4b9aa3f7221427bd5e95a799a82468a22a2eddfb2262c6fc22cd2e4262540913db03