[scap-security-guide/f19] Rebase to 0.1.5 version.
Jan Lieskovsky
jlieskov at fedoraproject.org
Thu Feb 27 16:38:52 UTC 2014
commit d3dc6c98dc2ac2502c3028879e1740c088ef3f9f
Author: Jan Lieskovsky <jlieskov at redhat.com>
Date: Thu Feb 27 17:34:46 2014 +0100
Rebase to 0.1.5 version.
.gitignore | 2 ++
scap-security-guide.spec | 44 +++++++++++++++++++++++++++++++++++++-------
sources | 3 ++-
3 files changed, 41 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e0e820e..cb2664b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/scap-security-guide-0.1-3.tar.gz
/scap-security-guide-0.1.4.tar.gz
+/scap-security-guide-0.1-16.tar.gz
+/scap-security-guide-0.1.5.tar.gz
diff --git a/scap-security-guide.spec b/scap-security-guide.spec
index b6edf11..ef6bf71 100644
--- a/scap-security-guide.spec
+++ b/scap-security-guide.spec
@@ -5,16 +5,22 @@
# file one level up - in the main scap-security-guide directory (instead of
# this one).
-%global fedorassgversion 4
+# Used for Fedora scap-security-guide RPM package versioning
+%global fedorassgversion 5
+
+# Used to specify RHEL scap-security-guide tarball source
+# (needs to match latest EPEL-6 scap-security-guide RPM release)
+%global rhelssgsource 0.1-16
Name: scap-security-guide
Version: 0.1.%{fedorassgversion}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Security guidance and baselines in SCAP formats
Group: Applications/System
License: Public Domain
URL: https://fedorahosted.org/scap-security-guide/
Source0: http://fedorapeople.org/~jlieskov/%{name}-%{version}.tar.gz
+Source1: http://repos.ssgproject.org/sources/%{name}-%{rhelssgsource}.tar.gz
BuildArch: noarch
BuildRequires: libxslt, expat, python, openscap-utils >= 0.9.1, python-lxml
Requires: xml-common, openscap-utils >= 0.9.1
@@ -34,21 +40,39 @@ conforms to provided guideline. Refer to scap-security-guide(8) manual page for
further information.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q -D -n %{name}-%{version} -a1
%build
-cd Fedora && make dist
+# Build Fedora distribution content
+(cd Fedora && make dist)
+# Change CWD to point to RHEL content. Build RHEL content
+pushd %{name}-%{rhelssgsource}
+(cd RHEL/6 && make dist)
+(cd RHEL/7 && make dist)
+# Restore CWD to old value
+popd
%install
+# Create required directory structure
mkdir -p %{buildroot}%{_datadir}/xml/scap/ssg/fedora
+mkdir -p %{buildroot}%{_datadir}/xml/scap/ssg/rhel{6,7}
mkdir -p %{buildroot}%{_mandir}/en/man8/
-# Add in core content (SCAP XCCDF and OVAL content)
+# Add in core Fedora content (SCAP XCCDF and OVAL)
cp -a Fedora/dist/content/* %{buildroot}%{_datadir}/xml/scap/ssg/fedora
-
-# Add in manpage
+# Add in Fedora manpage
cp -a Fedora/input/auxiliary/scap-security-guide.8 %{buildroot}%{_mandir}/en/man8/scap-security-guide.8
+# Change CWD to point to RHEL content. Copy
+# datastreams to appropriate buildroot places
+pushd %{name}-%{rhelssgsource}
+# Add in datastream form of RHEL-6 benchmark
+cp -a RHEL/6/dist/content/ssg-rhel6-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel6
+# Add in datastream form of RHEL-7 benchmark
+cp -a RHEL/7/dist/content/ssg-rhel7-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel7
+# Restore CWD to old value
+popd
+
%files
%{_datadir}/xml/scap
%lang(en) %{_mandir}/en/man8/scap-security-guide.8.*
@@ -56,6 +80,12 @@ cp -a Fedora/input/auxiliary/scap-security-guide.8 %{buildroot}%{_mandir}/en/man
%changelog
+* Thu Feb 27 2014 Jan iankko Lieskovsky <jlieskov at redhat.com> 0.1.5-1
+- Fix fedora-srpm and fedora-rpm Make targets to work again
+- Include RHEL-6 and RHEL-7 datastream files to support remote RHEL system scans
+- EOL for Fedora 18 support
+- Include Fedora datastream file for remote Fedora system scans
+
* Mon Jan 06 2014 Jan iankko Lieskovsky <jlieskov at redhat.com> 0.1.4-2
- Drop -compat package, provide openscap-content directly (RH BZ#1040335#c14)
diff --git a/sources b/sources
index c035506..d3a32ac 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-e82783de1c9d656b3a5e97cf747deb04 scap-security-guide-0.1.4.tar.gz
+c4487f3c77067bb324b82b99dc33d476 scap-security-guide-0.1-16.tar.gz
+01afab523a88cb3faa643796a93e9d0e scap-security-guide-0.1.5.tar.gz
More information about the scm-commits
mailing list