From 52214818ec14cd11000483fb6cabf7cd98cfd66fac745693d72e32fef66dbc9f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 3 Feb 2021 10:33:56 +0000 Subject: [PATCH] Accepting request 868893 from home:msmeissn OBS-URL: https://build.opensuse.org/request/show/868893 OBS-URL: https://build.opensuse.org/package/show/security/scap-security-guide?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + scap-security-guide.changes | 30 ++++++++++++ scap-security-guide.spec | 94 +++++++++++++++++++++++++++++++++++++ v0.1.53.tar.gz | 3 ++ 5 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 scap-security-guide.changes create mode 100644 scap-security-guide.spec create mode 100644 v0.1.53.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/scap-security-guide.changes b/scap-security-guide.changes new file mode 100644 index 0000000..379d687 --- /dev/null +++ b/scap-security-guide.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Wed Feb 3 10:23:50 UTC 2021 - Marcus Meissner + +- updated to 0.1.53 version, adjusted some things. + +------------------------------------------------------------------- +Tue May 14 11:55:47 UTC 2019 - Brice DEKANY + +- New specfile +- build for openSUSE + Backport + +------------------------------------------------------------------- +Tue May 14 11:27:26 UTC 2019 - Brice DEKANY + +- Switch to new formating from ComplianceAsCode +- Project is now hosted by github.com/openSUSE + +------------------------------------------------------------------- +Fri Mar 16 12:12:56 UTC 2018 - brice.dekany@suse.com + +- Add a first batch of SEVERITY CAT II Rules +------------------------------------------------------------------- +Wed Jan 17 10:14:09 UTC 2018 - brice.dekany@suse.com + +- Add fixes for SEVERITY CAT I + +------------------------------------------------------------------- +Thu Jan 4 21:05:16 UTC 2018 - brice.dekany@suse.com + +- Initial version of xccdf for Severty CAT I diff --git a/scap-security-guide.spec b/scap-security-guide.spec new file mode 100644 index 0000000..f67774f --- /dev/null +++ b/scap-security-guide.spec @@ -0,0 +1,94 @@ +# +# spec file for package openscap-content-stig +# +# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: scap-security-guide +Version: 0.1.53 +Release: 0 +License: LGPL-3.0 +Summary: XCCDF files for SLE12, SLE15 and openSUSE +Url: https://github.com/ComplianceAsCode/content +Group: Productivity/Security +Source: https://github.com/ComplianceAsCode/content/archive/v%{version}.tar.gz +BuildRequires: cmake +BuildRequires: python3-xml +BuildRequires: libxslt +BuildRequires: libxml2 +BuildRequires: openscap-utils +BuildRequires: python3-PyYAML +BuildRequires: python3-Jinja2 +BuildRequires: expat +# might be optional: +BuildRequires: ansible +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +SCAP Security Guide for SLE12 - XCCDF, OVAL, CPE and DS file to run a compliance test on SLE12, SLE15 and openSUSE. + +%prep +%setup -q -n content-%version + +%build +cd build +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_INSTALL_MANDIR=%{_mandir} \ + -DSSG_PRODUCT_CHROMIUM=OFF \ + -DSSG_PRODUCT_DEBIAN9=OFF \ + -DSSG_PRODUCT_DEBIAN10=OFF \ + -DSSG_PRODUCT_EAP6=OFF \ + -DSSG_PRODUCT_EXAMPLE=OFF \ + -DSSG_PRODUCT_FEDORA=OFF \ + -DSSG_PRODUCT_FIREFOX=OFF \ + -DSSG_PRODUCT_FUSE6=OFF \ + -DSSG_PRODUCT_JRE=OFF \ + -DSSG_PRODUCT_MACOS1015=OFF \ + -DSSG_PRODUCT_OCP4=OFF \ + -DSSG_PRODUCT_OL7=OFF \ + -DSSG_PRODUCT_OL8=OFF \ + -DSSG_PRODUCT_OPENSUSE=ON \ + -DSSG_PRODUCT_RHCOS4=OFF \ + -DSSG_PRODUCT_RHEL6=OFF \ + -DSSG_PRODUCT_RHEL7=OFF \ + -DSSG_PRODUCT_RHEL8=OFF \ + -DSSG_PRODUCT_RHOSP10=OFF \ + -DSSG_PRODUCT_RHOSP13=OFF \ + -DSSG_PRODUCT_RHV4=OFF \ + -DSSG_PRODUCT_SLE12=ON \ + -DSSG_PRODUCT_SLE15=ON \ + -DSSG_PRODUCT_UBUNTU1604=OFF \ + -DSSG_PRODUCT_UBUNTU1804=OFF \ + -DSSG_PRODUCT_UBUNTU2004=OFF \ + -DSSG_PRODUCT_VSEL=OFF \ + -DSSG_PRODUCT_WRLINUX8=OFF \ + -DSSG_PRODUCT_WRLINUX1019=OFF \ + ../ +make %{?_smp_mflags} + +%install +cd build/ +make install DESTDIR=%{buildroot} %{?_smp_mflags} + +%files +%defattr(-,root,root) +%dir %{_datadir}/doc/scap-security-guide/ +%doc %{_datadir}/doc/scap-security-guide/* +%doc %{_mandir}/man8/scap-security-guide.8.gz +%dir %{_datadir}/scap-security-guide/ +%{_datadir}/scap-security-guide/* +%dir %{_datadir}/xml/scap/ +%{_datadir}/xml/scap/* + diff --git a/v0.1.53.tar.gz b/v0.1.53.tar.gz new file mode 100644 index 0000000..cb9205b --- /dev/null +++ b/v0.1.53.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a908828fdf1ef0bbe6d5fe92b8e7a4192c0fd06f447de6f851f46b929a4e1b17 +size 8846724