The upstream started to package everything into a single tarball
That gave as a chance to clean up our spec file and we will have chance to include other guidances in future.
This commit is contained in:
parent
6d9587aa25
commit
57b107c947
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
/scap-security-guide-0.1-16.tar.gz
|
/scap-security-guide-0.1-16.tar.gz
|
||||||
/scap-security-guide-0.1.5.tar.gz
|
/scap-security-guide-0.1.5.tar.gz
|
||||||
/scap-security-guide-0.1.18.tar.gz
|
/scap-security-guide-0.1.18.tar.gz
|
||||||
|
/scap-security-guide-0.1.19.tar.gz
|
||||||
|
@ -5,22 +5,14 @@
|
|||||||
# file one level up - in the main scap-security-guide directory (instead of
|
# file one level up - in the main scap-security-guide directory (instead of
|
||||||
# this one).
|
# this one).
|
||||||
|
|
||||||
# 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.18
|
|
||||||
|
|
||||||
Name: scap-security-guide
|
Name: scap-security-guide
|
||||||
Version: 0.1.%{fedorassgversion}
|
Version: 0.1.19
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Security guidance and baselines in SCAP formats
|
Summary: Security guidance and baselines in SCAP formats
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: https://fedorahosted.org/scap-security-guide/
|
URL: https://fedorahosted.org/scap-security-guide/
|
||||||
Source0: http://fedorapeople.org/~jlieskov/%{name}-%{version}.tar.gz
|
Source0: http://repos.ssgproject.org/sources/%{name}-%{version}.tar.gz
|
||||||
Source1: http://repos.ssgproject.org/sources/%{name}-%{rhelssgsource}.tar.gz
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: libxslt, expat, python
|
BuildRequires: libxslt, expat, python
|
||||||
BuildRequires: python-lxml
|
BuildRequires: python-lxml
|
||||||
@ -43,17 +35,12 @@ conforms to provided guideline. Refer to scap-security-guide(8) manual page for
|
|||||||
further information.
|
further information.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -D -n %{name}-%{version} -a1
|
%setup -q -D -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build Fedora distribution content
|
|
||||||
(cd Fedora && make dist)
|
(cd Fedora && make dist)
|
||||||
# Change CWD to point to RHEL content. Build RHEL content
|
|
||||||
pushd %{name}-%{rhelssgsource}
|
|
||||||
(cd RHEL/6 && make dist)
|
(cd RHEL/6 && make dist)
|
||||||
(cd RHEL/7 && make dist)
|
(cd RHEL/7 && make dist)
|
||||||
# Restore CWD to old value
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Create required directory structure
|
# Create required directory structure
|
||||||
@ -66,24 +53,22 @@ cp -a Fedora/dist/content/* %{buildroot}%{_datadir}/xml/scap/ssg/fedora
|
|||||||
# Add in Fedora manpage
|
# Add in Fedora manpage
|
||||||
cp -a Fedora/input/auxiliary/scap-security-guide.8 %{buildroot}%{_mandir}/en/man8/scap-security-guide.8
|
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
|
# Add in datastream form of RHEL-6 benchmark
|
||||||
cp -a RHEL/6/dist/content/ssg-rhel6-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel6
|
cp -a RHEL/6/dist/content/ssg-rhel6-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel6
|
||||||
# Add in datastream form of RHEL-7 benchmark
|
# Add in datastream form of RHEL-7 benchmark
|
||||||
cp -a RHEL/7/dist/content/ssg-rhel7-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel7
|
cp -a RHEL/7/dist/content/ssg-rhel7-ds.xml %{buildroot}%{_datadir}/xml/scap/ssg/rhel7
|
||||||
# Restore CWD to old value
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_datadir}/xml/scap
|
%{_datadir}/xml/scap
|
||||||
%lang(en) %{_mandir}/en/man8/scap-security-guide.8.*
|
%lang(en) %{_mandir}/en/man8/scap-security-guide.8.*
|
||||||
%doc Fedora/LICENSE Fedora/output/ssg-fedora-guide.html
|
%doc Fedora/LICENSE Fedora/output/ssg-fedora-guide.html
|
||||||
%doc %{name}-%{rhelssgsource}/RHEL/6/input/auxiliary/DISCLAIMER
|
%doc RHEL/6/input/auxiliary/DISCLAIMER
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 02 2014 Šimon Lukašík <slukasik@redhat.com> - 0.1.19-1
|
||||||
|
- update to the latest upstream release
|
||||||
|
|
||||||
* Mon Jul 14 2014 Šimon Lukašík <slukasik@redhat.com> - 0.1.5-4
|
* Mon Jul 14 2014 Šimon Lukašík <slukasik@redhat.com> - 0.1.5-4
|
||||||
- require only openscap-scanner, not whole openscap-utils package
|
- require only openscap-scanner, not whole openscap-utils package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user