File spacewalk-oscap.spec of Package spacewalk-oscap.3888

#
# spec file for package spacewalk-oscap
#
# Copyright (c) 2016 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:        2.5.1.1
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.3af1edd.tar.gz
Source1:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  libxslt
BuildRequires:  python-devel
BuildRequires:  rhnlib
%if 0%{?fedora} || 0%{?rhel} > 6
Requires:       openscap-scanner
%else
Requires:       openscap-utils
%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.3af1edd

%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
openSUSE Build Service is sponsored by