scap-security-guide/scap-security-guide.spec

90 lines
3.0 KiB
RPMSpec
Raw Normal View History

2020-10-29 16:31:24 +08:00
Name: scap-security-guide
Version: 0.1.68
2024-02-24 15:00:27 +08:00
Release: 4
2020-10-29 16:31:24 +08:00
Summary: Security guidance and baselines in SCAP formats
License: BSD-3-Clause
URL: https://github.com/ComplianceAsCode/content/
Source0: https://github.com/ComplianceAsCode/content/releases/download/v%{version}/scap-security-guide-%{version}.tar.bz2
2023-10-09 21:11:46 +08:00
Patch0001: add-openeuler-support.patch
Patch0002: add-openeuler-control-rules.patch
2024-02-24 15:00:27 +08:00
Patch0003: optimize-rules-for-openEuler.patch
2023-10-09 21:11:46 +08:00
2020-10-29 16:31:24 +08:00
BuildArch: noarch
BuildRequires: libxslt, expat, python3, openscap-scanner >= 1.2.5, cmake >= 3.8, python3-jinja2, python3-PyYAML
Requires: xml-common, openscap-scanner >= 1.2.5
Obsoletes: openscap-content < 0:0.9.13
Provides: openscap-content
2019-11-19 11:56:45 +08:00
%description
2020-10-29 16:31:24 +08:00
The scap-security-guide project provides a guide for configuration of the
system from the final system's security point of view. The guidance is specified
in the Security Content Automation Protocol (SCAP) format and constitutes
a catalog of practical hardening advice, linked to government requirements
where applicable. The project bridges the gap between generalized policy
requirements and specific implementation guidelines. The Fedora system
administrator can use the oscap CLI tool from openscap-scanner 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) manual page for
further information.
2019-11-19 11:56:45 +08:00
2020-10-29 16:31:24 +08:00
%package doc
Summary: HTML formatted security guides generated from XCCDF benchmarks
Requires: %{name} = %{version}-%{release}
%description doc
The %{name}-doc package contains HTML formatted documents containing
hardening guidances that have been generated from XCCDF benchmarks
present in %{name} package.
2019-11-19 11:56:45 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
2020-10-29 16:31:24 +08:00
mkdir build
2019-11-19 11:56:45 +08:00
%build
cd build
2024-02-24 15:00:27 +08:00
%cmake -DSSG_SCE_ENABLED=ON ../
2019-11-19 11:56:45 +08:00
%make_build
%install
cd build
%make_install
%files
%{_datadir}/xml/scap/ssg/content
%{_datadir}/%{name}/kickstart
%{_datadir}/%{name}/ansible
%{_datadir}/%{name}/tailoring
2019-11-19 11:56:45 +08:00
%{_datadir}/%{name}/bash
%lang(en) %{_mandir}/man8/scap-security-guide.8.*
2020-10-29 16:31:24 +08:00
%doc %{_docdir}/%{name}/LICENSE
2019-11-19 11:56:45 +08:00
%doc %{_docdir}/%{name}/README.md
%doc %{_docdir}/%{name}/Contributors.md
2020-10-29 16:31:24 +08:00
%files doc
2019-11-19 11:56:45 +08:00
%doc %{_docdir}/%{name}/guides/*.html
%doc %{_docdir}/%{name}/tables/*.html
%changelog
2024-02-24 15:00:27 +08:00
* Sat Feb 24 2024 wangqingsan <wangqingsan@huawei.com> - 0.1.68-4
- optimiz rules for openEuler
2024-02-19 19:22:35 +08:00
* Mon Feb 19 2024 steven <steven_ygui@163.com> - 0.1.68-3
- add openEuler 2403 LTS supporting and remove openEuler general version supporting
2023-10-09 21:11:46 +08:00
* Mon Oct 9 2023 steven <steven_ygui@163.com> - 0.1.68-2
- add openeuler supporting and add 100+ control rules
* Tue Jul 18 2023 xu_ping <707078654@qq.com> - 0.1.68-1
- Upgrade to 0.1.68
* Fri Dec 30 2022 xuxinyu <xuxinyu@xfusion.com> - 0.1.49-3
- Fix test scenarios for OSPP profile
2022-06-16 17:44:44 +08:00
* Sat Feb 26 2022 HuaxinLu <luhuaxin1@huawei.com> - 0.1.49-2
- fix for python upgrade
2020-10-29 16:31:24 +08:00
* Wed Oct 28 2020 Anan Fu <fuanan3@huawei.com> - 0.1.49-1
- upgrade to disable python2
2019-11-19 11:56:45 +08:00
* Mon Oct 14 2019 dongjian <dongjian13@huawei.com> - 0.1.39-4
- Package init