<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/26/13, 9:03 AM, Jan Lieskovsky
wrote:<br>
</div>
<blockquote
cite="mid:1972024621.12150972.1382792617177.JavaMail.root@redhat.com"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-unicode">
<pre wrap="">This patch removes duplicate inclusion of policytables HTML
files in the newly generated RPM file (they are in %doc,
so no need to include them under policytables/ directory too -
compare output of:
prev_scap-security-guide-0.1-15.rc3.el6.noarch_rpm_list_output.txt
vs output of:
curr_scap-security-guide-0.1-15.rc4.el6.noarch_rpm_list_output.txt
It also removes call for 'makewhatis' - it's not necessary to
explicitly call it after adding the new manual page. Let the
system to realize new manual page got added and launch man db
update automa{t,g}ically.
Sanity && regression testing:
- make tarball, (s)rpm passed,
- common RHEL-6 Makefile targets passed too,
- guide(s) is(are) generated properly and look reasonable.
Please review.
Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team
</pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">curr_scap-security-guide-0.1-15.rc4.el6.noarch_rpm_list_output.txt</legend></fieldset>
<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">[iankko@host RHEL6]# rpm -q scap-security-guide
scap-security-guide-0.1-15.rc4.el6.noarch
[iankko@host RHEL6]# rpm -ql scap-security-guide
/usr/share/doc/scap-security-guide-0.1
/usr/share/doc/scap-security-guide-0.1/JBossEAP5_Guide.html
/usr/share/doc/scap-security-guide-0.1/LICENSE
/usr/share/doc/scap-security-guide-0.1/rhel6-guide.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-cces.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-nistrefs-common.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-nistrefs.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap-flat.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap-flat.xhtml
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-stig.html
/usr/share/man/en/man8/scap-security-guide.8.gz
/usr/share/xml/scap
/usr/share/xml/scap/ssg
/usr/share/xml/scap/ssg/content
/usr/share/xml/scap/ssg/content/eap5-cpe-dictionary.xml
/usr/share/xml/scap/ssg/content/eap5-cpe-oval.xml
/usr/share/xml/scap/ssg/content/eap5-ocil.xml
/usr/share/xml/scap/ssg/content/eap5-oval.xml
/usr/share/xml/scap/ssg/content/eap5-xccdf.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-dictionary.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-oval.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
</pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">prev_scap-security-guide-0.1-15.rc3.el6.noarch_rpm_list_output.txt</legend></fieldset>
<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">[iankko@host scap-security-guide]# rpm -q scap-security-guide
scap-security-guide-0.1-15.rc3.el6.noarch
[iankko@host scap-security-guide]# rpm -ql scap-security-guide
/usr/share/doc/scap-security-guide-0.1
/usr/share/doc/scap-security-guide-0.1/JBossEAP5_Guide.html
/usr/share/doc/scap-security-guide-0.1/LICENSE
/usr/share/doc/scap-security-guide-0.1/rhel6-guide.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-cces.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-nistrefs-common.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-nistrefs.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap-flat.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap-flat.xhtml
/usr/share/doc/scap-security-guide-0.1/table-rhel6-srgmap.html
/usr/share/doc/scap-security-guide-0.1/table-rhel6-stig.html
/usr/share/man/en/man8/scap-security-guide.8.gz
/usr/share/xml/scap
/usr/share/xml/scap/ssg
/usr/share/xml/scap/ssg/content
/usr/share/xml/scap/ssg/content/eap5-cpe-dictionary.xml
/usr/share/xml/scap/ssg/content/eap5-cpe-oval.xml
/usr/share/xml/scap/ssg/content/eap5-ocil.xml
/usr/share/xml/scap/ssg/content/eap5-oval.xml
/usr/share/xml/scap/ssg/content/eap5-xccdf.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-dictionary.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-oval.xml
/usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
/usr/share/xml/scap/ssg/policytables
/usr/share/xml/scap/ssg/policytables/table-rhel6-cces.html
/usr/share/xml/scap/ssg/policytables/table-rhel6-nistrefs-common.html
/usr/share/xml/scap/ssg/policytables/table-rhel6-nistrefs.html
/usr/share/xml/scap/ssg/policytables/table-rhel6-srgmap-flat.html
/usr/share/xml/scap/ssg/policytables/table-rhel6-srgmap-flat.xhtml
/usr/share/xml/scap/ssg/policytables/table-rhel6-srgmap.html
/usr/share/xml/scap/ssg/policytables/table-rhel6-stig.html
</pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">0001-RHEL6-Don-t-include-the-table-html-files-two-times.-.patch</legend></fieldset>
<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">From 88c9fc7dd4e195067124307ee9f8bec36495e44e Mon Sep 17 00:00:00 2001
From: Jan Lieskovsky <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:jlieskov@redhat.com"><jlieskov@redhat.com></a>
Date: Sat, 26 Oct 2013 14:56:21 +0200
Subject: [PATCH] [RHEL6] Don't include the table html files two times. Remove
makewhatis (let system regenerate man db)
Signed-off-by: Jan Lieskovsky <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:jlieskov@redhat.com"><jlieskov@redhat.com></a>
---
RHEL6/Makefile | 5 ++---
scap-security-guide.spec | 12 +++++++-----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/RHEL6/Makefile b/RHEL6/Makefile
index 9e6159f..2107870 100644
--- a/RHEL6/Makefile
+++ b/RHEL6/Makefile
@@ -114,13 +114,12 @@ eval-common:
# items in dist are expected for distribution in an rpm
dist: tables guide content
-        mkdir -p $(DIST)/content $(DIST)/policytables
+        mkdir -p $(DIST)/content
        cp $(OUT)/$(ID)-rhel6-xccdf.xml $(DIST)/content
        cp $(OUT)/$(ID)-rhel6-oval.xml $(DIST)/content
        cp $(OUT)/$(ID)-rhel6-cpe-dictionary.xml $(DIST)/content
        cp $(OUT)/$(ID)-rhel6-cpe-oval.xml $(DIST)/content
-        cp $(OUT)/table-rhel6-* $(DIST)/policytables
clean:
        rm -f $(OUT)/*.xml $(OUT)/*.html $(OUT)/*.xhtml $(OUT)/*.pdf $(OUT)/*.spec $(OUT)/*.tar $(OUT)/*.gz $(OUT)/*.ini $(OUT)/*.csv
-        rm -rf $(DIST)/content $(DIST)/policytables
+        rm -rf $(DIST)/content
diff --git a/scap-security-guide.spec b/scap-security-guide.spec
index 718d0bf..f9828fc 100644
--- a/scap-security-guide.spec
+++ b/scap-security-guide.spec
@@ -1,5 +1,5 @@
-%global                redhatssgrelease        15.rc3
+%global                redhatssgrelease        15.rc4
Name:                scap-security-guide
Version:        0.1
@@ -36,17 +36,15 @@ guideline. Refer to scap-security-guide(8) manual page for further information.
cd RHEL6 && make dist
%install
-mkdir -p %{buildroot}%{_datadir}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>xml/scap/ssg<span class="moz-txt-tag">/</span></i>{content,policytables}
+mkdir -p %{buildroot}%{_datadir}/xml/scap/ssg/content
mkdir -p %{buildroot}%{_mandir}/en/man8/
-# Add in core content (SCAP, tables)
+# Add in core content (SCAP)
cp -a RHEL6/dist/content/* %{buildroot}%{_datadir}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>xml/scap/ssg/content<span class="moz-txt-tag">/</span></i>
-cp -a RHEL6/dist/policytables/* %{buildroot}%{_datadir}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>xml/scap/ssg/policytables<span class="moz-txt-tag">/</span></i></pre>
</div>
</blockquote>
<br>
Ugh - I felt like I was forgetting something when adding the files
to %doc. Thanks for cleaning this up.<br>
<br>
<br>
<blockquote
cite="mid:1972024621.12150972.1382792617177.JavaMail.root@redhat.com"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">
cp -a JBossEAP5/eap5-* %{buildroot}%{_datadir}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>xml/scap/ssg/content<span class="moz-txt-tag">/</span></i>
# Add in manpage
cp -a RHEL6/input/auxiliary/scap-security-guide.8 %{buildroot}%{_mandir}/en/man8/scap-security-guide.8
-makewhatis
%files
%{_datadir}/xml/scap
@@ -54,6 +52,10 @@ makewhatis
%doc RHEL6/LICENSE RHEL6/output/rhel6-guide.html RHEL6/output/table-rhel6-cces.html RHEL6/output/table-rhel6-nistrefs-common.html RHEL6/output/table-rhel6-nistrefs.html RHEL6/output/table-rhel6-srgmap-flat.html RHEL6/output/table-rhel6-srgmap-flat.xhtml RHEL6/output/table-rhel6-srgmap.html RHEL6/output/table-rhel6-stig.html JBossEAP5/docs/JBossEAP5_Guide.html
%changelog
+* Sat Oct 26 2013 Jan iankko Lieskovsky <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:jlieskov@redhat.com"><jlieskov@redhat.com></a> 0.1-15.rc4
+- Don't include the table html files two times
+- Remove makewhatis
+
* Fri Oct 25 2013 Shawn Wells <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:shawn@redhat.com"><shawn@redhat.com></a> 0.1-15.rc3
- [bugfix] Updated rsyslog_remote_loghost to scan <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>etc/rsyslog.conf and /etc/rsyslog.d<span class="moz-txt-tag">/</span></i>*
- Numberous XCCDF->OVAL naming schema updates
<div class="moz-txt-sig">--
1.8.3.1
</div></pre>
</div>
</blockquote>
<br>
I went ahead and pushed this:<br>
<a class="moz-txt-link-freetext" href="https://git.fedorahosted.org/cgit/scap-security-guide.git/commit/?id=2413c55d955809c81d60b5fd7fdf7ecc4c1dfd52">https://git.fedorahosted.org/cgit/scap-security-guide.git/commit/?id=2413c55d955809c81d60b5fd7fdf7ecc4c1dfd52</a><br>
</body>
</html>