From ea72725130f1f4eda35d4ceca6172d3a5c60c89b Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 19 Jan 2022 12:27:33 +0300 Subject: [PATCH] AlmaLinux changes --- SOURCES/openscap-1.3.5-almalinux.patch | 70 ++++++++++++++++++++++++++ SPECS/openscap.spec | 9 +++- 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 SOURCES/openscap-1.3.5-almalinux.patch diff --git a/SOURCES/openscap-1.3.5-almalinux.patch b/SOURCES/openscap-1.3.5-almalinux.patch new file mode 100644 index 0000000..93bd510 --- /dev/null +++ b/SOURCES/openscap-1.3.5-almalinux.patch @@ -0,0 +1,70 @@ +diff -Naur openscap-1.3.3.orig/cpe/openscap-cpe-oval.xml openscap-1.3.3.alma/cpe/openscap-cpe-oval.xml +--- openscap-1.3.3.orig/cpe/openscap-cpe-oval.xml 2020-04-30 11:50:09.000000000 +0300 ++++ openscap-1.3.3.alma/cpe/openscap-cpe-oval.xml 2021-03-22 13:12:12.069413537 +0300 +@@ -133,6 +133,19 @@ + + + ++ ++ ++ AlmaLinux 8 ++ ++ AlmaLinux 8 ++ ++ ++ The operating system installed on the system is AlmaLinux 8 ++ ++ ++ ++ ++ + + + Community Enterprise Operating System 5 +@@ -828,6 +841,11 @@ + + + ++ ++ ++ ++ + + +@@ -1165,6 +1183,9 @@ + + oraclelinux-release + ++ ++ almalinux-release ++ + + HKEY_LOCAL_MACHINE + SOFTWARE\Microsoft\Windows NT\CurrentVersion +@@ -1233,6 +1254,10 @@ + ^oraclelinux-release + ^8 + ++ ++ ^almalinux-release ++ ^8 ++ + + ^16$ + +diff -Naur openscap-1.3.5/cpe/openscap-cpe-dict.xml openscap-1.3.5.alma/cpe/openscap-cpe-dict.xml +--- openscap-1.3.5/cpe/openscap-cpe-dict.xml 2021-04-23 13:39:58.000000000 +0300 ++++ openscap-1.3.5.alma/cpe/openscap-cpe-dict.xml 2021-10-10 10:02:27.000000000 +0300 +@@ -37,6 +37,10 @@ + Community Enterprise Operating System 8 + oval:org.open-scap.cpe.centos:def:8 + ++ ++ AlmaLinux 8 ++ oval:org.open-scap.cpe.almalinux:def:8 ++ + + Fedora 32 + oval:org.open-scap.cpe.fedora:def:32 diff --git a/SPECS/openscap.spec b/SPECS/openscap.spec index c90b2ed..936f76c 100644 --- a/SPECS/openscap.spec +++ b/SPECS/openscap.spec @@ -1,6 +1,6 @@ Name: openscap Version: 1.3.5 -Release: 13%{?dist} +Release: 13%{?dist}.alma Epoch: 1 Summary: Set of open source libraries enabling integration of the SCAP line of standards License: LGPLv2+ @@ -27,6 +27,10 @@ Patch18: openscap-1.3.6-oscap-ssh-local-files-pr-1786.patch Patch19: openscap-1.3.6-alternative-hostname-pr-1806.patch Patch20: openscap-1.3.6-memory-limit-pr-1827.patch Patch21: openscap-1.3.6-warning-local-files-pr-1826.patch + +# Add AlmaLinux definitions +Patch100: openscap-1.3.5-almalinux.patch + BuildRequires: make BuildRequires: cmake >= 2.6 BuildRequires: gcc @@ -217,6 +221,9 @@ pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm %{_bindir}/oscap-run-sce-script %changelog +* Wed Jan 19 2022 Eduard Abdullin - 1:1.3.5-13.alma +- Add AlmaLinux definitions + * Fri Nov 19 2021 Jan Černý - 1:1.3.5-13 - Print warning for local files