AlmaLinux changes

This commit is contained in:
Andrew Lukoshko 2021-09-15 11:41:44 +00:00
parent 34f8f34227
commit 0e201cce7f
2 changed files with 29851 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
Name: scap-security-guide Name: scap-security-guide
Version: 0.1.54 Version: 0.1.54
Release: 5%{?dist} Release: 5%{?dist}.alma.1
Summary: Security guidance and baselines in SCAP formats Summary: Security guidance and baselines in SCAP formats
Group: Applications/System Group: Applications/System
License: BSD License: BSD
@ -43,6 +43,9 @@ Patch27: scap-security-guide-0.1.55-remove_auditd_data_retention_space_left_fro
# Untill ANSSI High profile is shipped we drop the ks too # Untill ANSSI High profile is shipped we drop the ks too
Patch28: remove-ANSSI-high-ks.patch Patch28: remove-ANSSI-high-ks.patch
# AlmaLinux patches
Patch1001: 0001-Add-AlmaLinux-8-support.patch
BuildArch: noarch BuildArch: noarch
# To get python3 inside the buildroot require its path explicitly in BuildRequires # To get python3 inside the buildroot require its path explicitly in BuildRequires
@ -58,8 +61,8 @@ system from the final system's security point of view. The guidance is specified
in the Security Content Automation Protocol (SCAP) format and constitutes in the Security Content Automation Protocol (SCAP) format and constitutes
a catalog of practical hardening advice, linked to government requirements a catalog of practical hardening advice, linked to government requirements
where applicable. The project bridges the gap between generalized policy where applicable. The project bridges the gap between generalized policy
requirements and specific implementation guidelines. The Red Hat Enterprise requirements and specific implementation guidelines. The AlmaLinux 8
Linux 8 system administrator can use the oscap CLI tool from openscap-scanner system administrator can use the oscap CLI tool from openscap-scanner
package, or the scap-workbench GUI tool from scap-workbench package to verify package, or the scap-workbench GUI tool from scap-workbench package to verify
that the system conforms to provided guideline. Refer to scap-security-guide(8) that the system conforms to provided guideline. Refer to scap-security-guide(8)
manual page for further information. manual page for further information.
@ -105,14 +108,18 @@ present in %{name} package.
%patch26 -p1 %patch26 -p1
%patch27 -p1 %patch27 -p1
%patch28 -p1 %patch28 -p1
%patch1001 -p1
mkdir build mkdir build
%build %build
cd build cd build
%cmake \ %cmake \
-DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE \ -DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE \
-DSSG_PRODUCT_RHEL7:BOOLEAN=TRUE \ -DSSG_PRODUCT_RHEL7:BOOLEAN=FALSE \
-DSSG_PRODUCT_RHEL8:BOOLEAN=TRUE \ -DSSG_PRODUCT_RHEL8:BOOLEAN=FALSE \
-DSSG_PRODUCT_ALMALINUX8:BOOLEAN=TRUE \
-DSSG_PRODUCT_FIREFOX:BOOLEAN=TRUE \ -DSSG_PRODUCT_FIREFOX:BOOLEAN=TRUE \
-DSSG_PRODUCT_JRE:BOOLEAN=TRUE \ -DSSG_PRODUCT_JRE:BOOLEAN=TRUE \
-DSSG_CENTOS_DERIVATIVES_ENABLED:BOOL=OFF \ -DSSG_CENTOS_DERIVATIVES_ENABLED:BOOL=OFF \
@ -124,9 +131,10 @@ cd build
%make_install %make_install
# Manually install pre-built rhel6 content # Manually install pre-built rhel6 content
cp -r %{_builddir}/%{_static_rhel6_content}/usr %{buildroot} # Disabled on AlmaLinux
cp -r %{_builddir}/%{_static_rhel6_content}/tables %{buildroot}%{_docdir}/%{name} # cp -r %{_builddir}/%{_static_rhel6_content}/usr %{buildroot}
cp -r %{_builddir}/%{_static_rhel6_content}/guides %{buildroot}%{_docdir}/%{name} # cp -r %{_builddir}/%{_static_rhel6_content}/tables %{buildroot}%{_docdir}/%{name}
# cp -r %{_builddir}/%{_static_rhel6_content}/guides %{buildroot}%{_docdir}/%{name}
%files %files
%{_datadir}/xml/scap/ssg/content %{_datadir}/xml/scap/ssg/content
@ -143,6 +151,9 @@ cp -r %{_builddir}/%{_static_rhel6_content}/guides %{buildroot}%{_docdir}/%{name
%doc %{_docdir}/%{name}/tables/*.html %doc %{_docdir}/%{name}/tables/*.html
%changelog %changelog
* Mon Apr 19 2021 Andrew Lukoshko <alukoshko@almalinux.org> - 0.1.54-5.alma
- Add AlmaLinux support
* Wed Feb 17 2021 Watson Sato <wsato@redhat.com> - 0.1.54-5 * Wed Feb 17 2021 Watson Sato <wsato@redhat.com> - 0.1.54-5
- Remove Kickstart for not shipped profile (RHBZ#1778188) - Remove Kickstart for not shipped profile (RHBZ#1778188)