File spacewalk-oscap.spec of Package spacewalk-oscap.6184
#
# spec file for package spacewalk-oscap
#
# Copyright (c) 2017 SUSE LINUX 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: 2.7.0.4
Release: 0
Summary: OpenSCAP plug-in for rhn-check
License: GPL-2.0
Group: Applications/System
Url: https://github.com/spacewalkproject/spacewalk
Source0: spacewalk-oscap-git-0.b1c3f88.tar.gz
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: libxslt
BuildRequires: python-devel
BuildRequires: rhnlib
%if 0%{?rhel} || 0%{?suse_version}
Requires: openscap-utils
%else
Requires: openscap-scanner
%endif
Requires: libxslt
Requires: rhn-check
Requires: rhnlib >= 2.5.78-1
%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.b1c3f88
%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
%config /etc/sysconfig/rhn/clientCaps.d/scap
%{_datadir}/rhn/actions/scap.*
%{_datadir}/openscap/xsl/xccdf-resume.xslt
%if 0%{?suse_version}
%dir /etc/sysconfig/rhn
%dir /etc/sysconfig/rhn/clientCaps.d
%dir %{_datadir}/openscap
%dir %{_datadir}/openscap/xsl
%dir %{_datadir}/rhn
%dir %{_datadir}/rhn/actions
%endif
%changelog