File spacewalk-oscap.spec of Package spacewalk-oscap.378
#
# spec file for package spacewalk-oscap
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: spacewalk-oscap
Version: 0.0.23.4
Release: 0
Summary: OpenSCAP plug-in for rhn-check
License: GPL-2.0
Group: Applications/System
Url: https://fedorahosted.org/spacewalk
Source0: spacewalk-oscap-git-0.c588708.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: libxslt
BuildRequires: python-devel
BuildRequires: rhnlib
%if 0%{?rhel} && 0%{?rhel} < 6
Requires: openscap-utils >= 0.8.0
%else
%if 0%{?suse_version} && 0%{?suse_version} <= 1230
Requires: openscap-utils >= 0.8.0
%else
Requires: openscap-utils >= 0.9.2
%endif
%endif
Requires: libxslt
Requires: rhn-check
Requires: rhnlib
%description
spacewalk-oscap is a plug-in for rhn-check. With this plugin, user is able
to run OpenSCAP scan from Spacewalk or Red Hat Satellite server.
%prep
%setup -q -n spacewalk-oscap-git-0.c588708
%build
make -f Makefile.spacewalk-oscap
%install
rm -rf $RPM_BUILD_ROOT
make -f Makefile.spacewalk-oscap install PREFIX=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING
%dir %{_datadir}/openscap
%dir %{_datadir}/openscap/xsl
%dir %{_datadir}/rhn
%dir %{_datadir}/rhn/actions
%dir /etc/sysconfig/rhn
%dir /etc/sysconfig/rhn/clientCaps.d/
%config /etc/sysconfig/rhn/clientCaps.d/scap
%{_datadir}/rhn/actions/scap.*
%{_datadir}/openscap/xsl/xccdf-resume.xslt
%changelog