File rhn-custom-info.spec of Package rhn-custom-info.378
#
# spec file for package rhn-custom-info
#
# Copyright (c) 2015 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: rhn-custom-info
Summary: Set and list custom values for Spacewalk-enabled machines
License: GPL-2.0
Group: Applications/System
Source0: rhn-custom-info-git-0.68b78e0.tar.gz
Url: https://fedorahosted.org/spacewalk
Version: 5.4.22.6
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: python-devel
Requires: rhnlib
Requires: spacewalk-client-tools
%if 0%{?rhel} >= 5 || 0%{?fedora} >= 1
Requires: yum-rhn-plugin
%else
# rpm do not support elif
%if 0%{?suse_version}
Requires: zypp-plugin-spacewalk
# provide rhn directories for filelist check
BuildRequires: spacewalk-client-tools
%else
Requires: up2date
%endif
%endif
%description
Allows for the setting and listing of custom key/value pairs for
an Spacewalk-enabled system.
%prep
%setup -q -n rhn-custom-info-git-0.68b78e0
%build
make -f Makefile.rhn-custom-info all
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
make -f Makefile.rhn-custom-info install PREFIX=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_mandir}/man8/
install -m 644 rhn-custom-info.8 $RPM_BUILD_ROOT%{_mandir}/man8/
%if 0%{?suse_version}
ln -s rhn-custom-info $RPM_BUILD_ROOT/%{_bindir}/mgr-custom-info
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%dir %{_datadir}/rhn
%{_bindir}/*-custom-info
%dir %{_datadir}/rhn/custominfo
%{_datadir}/rhn/custominfo/rhn-custom-info.py*
%doc LICENSE
%{_mandir}/man8/rhn-custom-info.*
%changelog