2021-02-03 11:33:56 +01:00
|
|
|
#
|
|
|
|
# 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
|
2021-02-03 15:06:41 +01:00
|
|
|
Version: 0.1.54
|
2021-02-03 11:33:56 +01:00
|
|
|
Release: 0
|
2021-02-03 15:06:41 +01:00
|
|
|
License: BSD-3-Clause
|
2021-02-03 11:33:56 +01:00
|
|
|
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
|
2021-02-04 14:35:03 +01:00
|
|
|
BuildRequires: expat
|
2021-02-03 11:33:56 +01:00
|
|
|
BuildRequires: openscap-utils
|
|
|
|
BuildRequires: python3-PyYAML
|
|
|
|
BuildRequires: python3-Jinja2
|
2021-02-04 13:39:59 +01:00
|
|
|
# not on SLES currently
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: ansible
|
|
|
|
%endif
|
2021-02-03 11:33:56 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2021-02-04 07:21:11 +01:00
|
|
|
Security Content Automation Protocol (SCAP) Security Guide for SLE12.
|
|
|
|
|
|
|
|
This package contains XCCDF (Extensible Configuration Checklist
|
|
|
|
Description Format), OVAL (Open Vulnerability and Assessment
|
|
|
|
Language), CPE (Common Platform Enumeration) and DS (Data Stream)
|
|
|
|
files to run a compliance test on SLE12, SLE15 and openSUSE.
|
2021-02-03 11:33:56 +01:00
|
|
|
|
|
|
|
%prep
|
2021-02-04 07:21:11 +01:00
|
|
|
%autosetup -n content-%version
|
2021-02-03 11:33:56 +01:00
|
|
|
|
|
|
|
%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 \
|
|
|
|
../
|
2021-02-04 07:21:11 +01:00
|
|
|
%make_build
|
2021-02-03 11:33:56 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd build/
|
2021-02-04 07:21:11 +01:00
|
|
|
%make_install
|
2021-02-03 11:33:56 +01:00
|
|
|
|
|
|
|
%files
|
2021-02-03 15:07:36 +01:00
|
|
|
%license LICENSE
|
2021-02-03 11:33:56 +01:00
|
|
|
%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/*
|