Refactor: Install all DataStreams at once
We will shortly add more and more DataStreams to the show.
This commit is contained in:
parent
2c625f0314
commit
283befe40f
@ -41,20 +41,17 @@ further information.
|
||||
make %{?_smp_mflags} dist
|
||||
|
||||
%install
|
||||
# Create required directory structure
|
||||
# Install DataStream files
|
||||
mkdir -p %{buildroot}%{_datadir}/xml/scap/ssg/content/
|
||||
mkdir -p %{buildroot}%{_mandir}/en/man8/
|
||||
for target in Fedora RHEL/6 RHEL/7
|
||||
do
|
||||
cp -a $target/dist/content/ssg-*-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/content/
|
||||
done
|
||||
|
||||
# Add in core Fedora content (SCAP XCCDF and OVAL)
|
||||
cp -a Fedora/dist/content/ssg-fedora-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/content/
|
||||
# Add in Fedora manpage
|
||||
mkdir -p %{buildroot}%{_mandir}/en/man8/
|
||||
cp -a docs/scap-security-guide.8 %{buildroot}%{_mandir}/en/man8/scap-security-guide.8
|
||||
|
||||
# Add in datastream form of RHEL-6 benchmark
|
||||
cp -a RHEL/6/dist/content/ssg-rhel6-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/content/
|
||||
# Add in datastream form of RHEL-7 benchmark
|
||||
cp -a RHEL/7/dist/content/ssg-rhel7-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/content/
|
||||
|
||||
%files
|
||||
%{_datadir}/xml/scap
|
||||
%lang(en) %{_mandir}/en/man8/scap-security-guide.8.*
|
||||
|
Loading…
Reference in New Issue
Block a user