From ec69b1e1297d2fb9ad33a4921b5be9df765c4399 Mon Sep 17 00:00:00 2001 From: Vojtech Polasek Date: Fri, 17 Jul 2020 12:21:29 +0200 Subject: [PATCH 01/67] scap-security-guide-0.1.51 --- .gitignore | 1 + scap-security-guide.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index fc8bfd6..161793f 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /scap-security-guide-0.1.47.tar.bz2 /scap-security-guide-0.1.48.tar.bz2 /scap-security-guide-0.1.49.tar.bz2 +/scap-security-guide-0.1.51.tar.bz2 diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 50b3473..06d7be2 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,5 +1,5 @@ Name: scap-security-guide -Version: 0.1.49 +Version: 0.1.51 Release: 1%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause @@ -61,6 +61,10 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Fri Jul 17 2020 Vojtech Polasek - 0.1.51-1 +- Update to latest upstream SCAP-Security-Guide-0.1.51 release: + https://github.com/ComplianceAsCode/content/releases/tag/v0.1.51 + * Mon Mar 23 2020 Watson Sato - 0.1.49-1 - Update to latest upstream SCAP-Security-Guide-0.1.49 release: https://github.com/ComplianceAsCode/content/releases/tag/v0.1.49 diff --git a/sources b/sources index 4464953..ee0a797 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scap-security-guide-0.1.49.tar.bz2) = 888f3a3a190e69448058fe3beda5c28ecb99704cc7b5bbea3b48d16ed4414960495059854bef685472996763ff81c10fbf8258ff82d2f235b3aeac2ebb051b4b +SHA512 (scap-security-guide-0.1.51.tar.bz2) = 81173110520d51f9ef111d6f129932e1b5a5899286175a2a26171007520101976409af5969adba60d6165e8d858e2842bd50ecd2afc9e8747e4cc5192898db71 From 41cc61516db37f332711a15945853838c8719ef0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 10:20:14 +0000 Subject: [PATCH 02/67] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- scap-security-guide.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 06d7be2..4c51f99 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,6 +1,6 @@ Name: scap-security-guide Version: 0.1.51 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause URL: https://github.com/ComplianceAsCode/content/ @@ -61,6 +61,9 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.51-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jul 17 2020 Vojtech Polasek - 0.1.51-1 - Update to latest upstream SCAP-Security-Guide-0.1.51 release: https://github.com/ComplianceAsCode/content/releases/tag/v0.1.51 From b0f00522a64019828462b8bdec2ecaf3cd5b4993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Thu, 25 Jun 2020 14:14:14 +0200 Subject: [PATCH 03/67] spec: better handling of python3 R MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Pierret (fepitre) --- scap-security-guide.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 4c51f99..44276c8 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -7,7 +7,13 @@ URL: https://github.com/ComplianceAsCode/content/ Source0: https://github.com/ComplianceAsCode/content/releases/download/v%{version}/scap-security-guide-%{version}.tar.bz2 BuildArch: noarch -BuildRequires: libxslt, expat, python3, openscap-scanner >= 1.2.5, cmake >= 3.8, python3-jinja2, python3-PyYAML +BuildRequires: libxslt +BuildRequires: expat +BuildRequires: openscap-scanner >= 1.2.5 +BuildRequires: cmake >= 2.8 +BuildRequires: python%{python3_pkgversion} +BuildRequires: python%{python3_pkgversion}-jinja2 +BuildRequires: python%{python3_pkgversion}-PyYAML Requires: xml-common, openscap-scanner >= 1.2.5 Obsoletes: openscap-content < 0:0.9.13 Provides: openscap-content From d119e01e6ca3453c99c0295ad1684c3d01512217 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 1 Aug 2020 08:56:32 +0000 Subject: [PATCH 04/67] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- scap-security-guide.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 44276c8..c32d787 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,6 +1,6 @@ Name: scap-security-guide Version: 0.1.51 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause URL: https://github.com/ComplianceAsCode/content/ @@ -67,6 +67,10 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Sat Aug 01 2020 Fedora Release Engineering - 0.1.51-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 0.1.51-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 53abd55a4892b850ffd052152b4d9761a8dac5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Tue, 4 Aug 2020 09:23:31 +0200 Subject: [PATCH 05/67] Update for new CMake out of source builds Fix FTBS in Rawhide/F33 https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds Resolves: RHBZ#1863741 --- scap-security-guide.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scap-security-guide.spec b/scap-security-guide.spec index c32d787..1a95d9f 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,6 +1,6 @@ Name: scap-security-guide Version: 0.1.51 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause URL: https://github.com/ComplianceAsCode/content/ @@ -41,16 +41,13 @@ present in %{name} package. %prep %setup -q -mkdir build %build -cd build -%cmake ../ -%make_build +%cmake +%cmake_build %install -cd build -%make_install +%cmake_install %files %{_datadir}/xml/scap/ssg/content @@ -67,6 +64,11 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Tue Aug 04 2020 Jan Černý - 0.1.51-4 +- Update for new CMake out of source builds + https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds +- Fix FTBS in Rawhide/F33 (RHBZ#1863741) + * Sat Aug 01 2020 Fedora Release Engineering - 0.1.51-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 4f696fcce8f016a899aec12aae383e0b0becef78 Mon Sep 17 00:00:00 2001 From: Vojtech Polasek Date: Mon, 21 Sep 2020 09:07:57 +0200 Subject: [PATCH 06/67] scap-security-guide 0.1.52 --- .gitignore | 1 + scap-security-guide-0.1.48-xml_parsing.patch | 31 -------------------- scap-security-guide.spec | 8 +++-- sources | 2 +- 4 files changed, 8 insertions(+), 34 deletions(-) delete mode 100644 scap-security-guide-0.1.48-xml_parsing.patch diff --git a/.gitignore b/.gitignore index 161793f..51dd6dc 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ /scap-security-guide-0.1.48.tar.bz2 /scap-security-guide-0.1.49.tar.bz2 /scap-security-guide-0.1.51.tar.bz2 +/scap-security-guide-0.1.52.tar.bz2 diff --git a/scap-security-guide-0.1.48-xml_parsing.patch b/scap-security-guide-0.1.48-xml_parsing.patch deleted file mode 100644 index 570d5ff..0000000 --- a/scap-security-guide-0.1.48-xml_parsing.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 174293162e5840684d967e36840fc1f9f57c90be Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= -Date: Thu, 5 Dec 2019 15:02:05 +0100 -Subject: [PATCH] Fix XML "parsing" of the remediation functions file. - -A proper fix is not worth the effort, as we aim to kill shared Bash remediation -with Jinja2 macros. ---- - ssg/build_remediations.py | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/ssg/build_remediations.py b/ssg/build_remediations.py -index 7da807bd68..13e90f7327 100644 ---- a/ssg/build_remediations.py -+++ b/ssg/build_remediations.py -@@ -56,11 +56,11 @@ def get_available_functions(build_dir): - remediation_functions = [] - with codecs.open(xmlfilepath, "r", encoding="utf-8") as xmlfile: - filestring = xmlfile.read() -- # This regex looks implementation dependent but we can rely on -- # ElementTree sorting XML attrs alphabetically. Hidden is guaranteed -- # to be the first attr and ID is guaranteed to be second. -+ # This regex looks implementation dependent but we can rely on the element attributes -+ # being present on one line. -+ # We can't rely on ElementTree sorting XML attrs in any way since Python 3.7. - remediation_functions = re.findall( -- r'