File spacewalk-koan.spec of Package spacewalk-koan

#
# spec file for package spacewalk-koan
#
# 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/
#


Summary:        Support package for spacewalk koan interaction
License:        GPL-2.0
Group:          System Environment/Kernel
Name:           spacewalk-koan
Version:        2.7.2
Release:        1.git.261.9040867%{?dist}
Source0:        spacewalk-koan-git-261.4132c78.tar.gz
Source1:        %{name}-rpmlintrc
Url:            https://github.com/spacewalkproject/spacewalk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  python
Requires:       koan >= 1.4.3
Requires:       python >= 1.5
Requires:       xz
%if 0%{?suse_version}
# provide directories for filelist check in OBS
BuildRequires:  rhn-client-tools
%endif
Conflicts:      rhn-kickstart
Conflicts:      rhn-kickstart-common
Conflicts:      rhn-kickstart-virtualization

Requires:       rhn-check

%description
Support package for spacewalk koan interaction.

%prep
%setup -q -n spacewalk-koan-git-261.4132c78

%build
make -f Makefile.spacewalk-koan all

%install
rm -rf $RPM_BUILD_ROOT
make -f Makefile.spacewalk-koan install PREFIX=$RPM_BUILD_ROOT ROOT=%{_datadir}/rhn/ \
    MANDIR=%{_mandir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%config(noreplace)  %{_sysconfdir}/sysconfig/rhn/clientCaps.d/kickstart
%{_sbindir}/*
%{_datadir}/rhn/spacewalkkoan/
%{_datadir}/rhn/actions/

%changelog
openSUSE Build Service is sponsored by