Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Summary: Network provisioning tool for Xen and Existing Non-Bare Metal
Name: koan
Version: 0.1.1
Release: 10%{?dist}
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Applications/System
Requires: mkinitrd
Requires: syslinux
Requires: python >= 2.3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
ExcludeArch: ppc
Url: http://et.redhat.com/page/Cobbler_%26_Koan_Provisioning_Tools

%description

Koan stands for kickstart-over-a-network and allows for both
network provisioning of new Xen guests and destructive re-provisioning of
any existing system.  For use with a boot-server configured with
'cobbler'

%prep
%setup -q

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --optimize=1 --root=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/koan
%dir %{python_sitelib}/koan
%dir %{python_sitelib}/koan/yaml
%{python_sitelib}/koan/*.py*
%{python_sitelib}/koan/yaml/*.py*
%{_mandir}/man1/koan.1.gz

%doc AUTHORS COPYING CHANGELOG README NEWS

%changelog
* Thu Sep 28 2006 - 0.1.1-10
- Building build rev to keep FC-E happy
* Thu Sep 28 2006 - 0.1.1-9
- Excluding PPC since syslinux (gethostip) isn't available for ppc
* Thu Sep 21 2006 - 0.1.1-8
- Added doc files to %doc, removed INSTALLED_FILES code
* Wed Sep 20 2006 - 0.1.1-7
- Upstream updates
* Fri Sep 15 2006 - 0.1.1-6
- Make koan own it's directory, add GPL "COPYING" file.
* Wed Aug 16 2006 - 0.1.1-5
- Spec-file only changes for FC-Extras submission
* Thu Jul 20 2006 - 0.1.1-4
- Fixed python import paths in yaml code, which errantly assumed yaml was installed as a module.
* Fri Jul 12 2006 - 0.1.1-3
- allow installing with per-system cobbler data in addition to per-profile
* Thu Jul 09 2006 - 0.1.0-2
- rpm tweaks for Fedora Extras
* Wed Jun 28 2006 - 0.1.0-1
- rpm genesis