File spacewalk-koan.spec of Package spacewalk-koan

# spec file for package spacewalk-koan
# Copyright (c) 2014 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

# package renaming fun :(
%define rhn_client_tools spacewalk-client-tools
%define rhn_setup	 spacewalk-client-setup
%define rhn_check	 spacewalk-check
%define rhnsd		 spacewalksd
Summary:        Support package for spacewalk koan interaction
License:        GPL-2.0
Group:          System Environment/Kernel
Name:           spacewalk-koan
Source0:        spacewalk-koan-git-0.6d8628b.tar.gz
Release:        0
BuildArch:      noarch
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
%if 0%{?suse_version} && 0%{?suse_version} >= 1110 || 0%{?rhel}
Requires:       rhn-virtualization-common
Requires:       rhn-virtualization-host

Conflicts:      rhn-kickstart
Conflicts:      rhn-kickstart-common
Conflicts:      rhn-kickstart-virtualization

Requires:       %{rhn_check}

%if 0%{?suse_version} && 0%{?suse_version} < 1315
Requires:       bncfix(880936)

Support package for spacewalk koan interaction.

%setup -q -n spacewalk-koan-git-0.6d8628b

make -f Makefile.spacewalk-koan all

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


%config(noreplace)  %{_sysconfdir}/sysconfig/rhn/clientCaps.d/kickstart

openSUSE Build Service is sponsored by