!2 package init

Merge pull request !2 from ultra_planet/master
This commit is contained in:
openeuler-ci-bot 2020-06-29 11:01:00 +08:00 committed by Gitee
commit 840207010b
4 changed files with 64 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,20 @@
From 7541e71fe681e3df3255cda4aeb5fa3fe3be40c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
Date: Mon, 25 May 2020 11:50:06 +0200
Subject: [PATCH] Bumped the schematron version to match the SCAP version.
---
testing_files/testing_ds.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing_files/testing_ds.xml b/testing_files/testing_ds.xml
index d2e5bba..d7312f0 100644
--- a/testing_files/testing_ds.xml
+++ b/testing_files/testing_ds.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" id="scap_org.open-scap_collection_from_xccdf_first-xccdf.xml" schematron-version="1.0">
+<ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" id="scap_org.open-scap_collection_from_xccdf_first-xccdf.xml" schematron-version="1.2">
<ds:data-stream id="scap_org.open-scap_datastream_tst" scap-version="1.2" use-case="OTHER">
<ds:checklists>
<ds:component-ref id="scap_org.open-scap_cref_first-xccdf.xml"

40
oscap-anaconda-addon.spec Normal file
View File

@ -0,0 +1,40 @@
Name: oscap-anaconda-addon
Version: 1.0
Release: 3
Summary: Anaconda addon integrating OpenSCAP to the installation process
License: GPLv2+
URL: https://github.com/OpenSCAP/oscap-anaconda-addon
Source0: https://github.com/OpenSCAP/%{name}/releases/download/r%{version}/%{name}-%{version}.tar.gz
# Fix check fail
Patch0001: oscap-anaconda-addon-Bumped-the-schematron-version-to-match-the-SCAP-version.patch
BuildArch: noarch
BuildRequires: gettext python3-devel python3-pycurl python3-mock python3-nose python3-cpio
BuildRequires: openscap openscap-utils openscap-python3 anaconda >= 28.22
Requires: anaconda >= 28.22 python3-cpio openscap openscap-utils openscap-python3
%description
This is an addon that integrates OpenSCAP utilities with the Anaconda installer
and allows installation of systems following restrictions given by a SCAP
content.
%prep
%autosetup -p1
%build
%check
make unittest
%install
make install DESTDIR=%{buildroot}
%find_lang %{name}
%files -f %{name}.lang
%{_datadir}/anaconda/addons/org_fedora_oscap
%doc COPYING ChangeLog README.md
%changelog
* Mon Apr 20 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.0-3
- package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: OpenSCAP/oscap-anaconda-addon
tag_prefix: "^r"
seperator: "."