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 http://bugs.opensuse.org/
#


# 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
Version:        2.1.4.8
Release:        0
BuildArch:      noarch
Url:            https://fedorahosted.org/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
%if 0%{?suse_version} && 0%{?suse_version} >= 1110 || 0%{?rhel}
Requires:       rhn-virtualization-common
Requires:       rhn-virtualization-host
%endif

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)
%endif

%description
Support package for spacewalk koan interaction.

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

%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,-)
%doc COPYING
%config(noreplace)  %{_sysconfdir}/sysconfig/rhn/clientCaps.d/kickstart
%{_sbindir}/*
%{_datadir}/rhn/spacewalkkoan/
%{_datadir}/rhn/actions/

%changelog
openSUSE Build Service is sponsored by