%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: rhevsh Version: 0.9 Release: 1.20110418git%{?dist} Summary: A command-line interface to Red Hat Enterprise Virtualization Group: Applications/System License: MIT URL: https://bitbucket.org/geertj/rhevsh/wiki/Home Source0: https://fedorahosted.org/releases/r/h/rhevm-api/%{name}-%{version}-git20110418.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-cli, python-rhev, PyXB Requires: python-cli, python-rhev, PyXB %description This is a command-line interface for Red Hat Enterprise Virtualization. %prep %setup -q -n rhevsh-0.9-git20110418 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE AUTHORS %{_bindir}/rhevsh %{python_sitelib}/* %changelog * Mon Apr 18 2011 Marek Mahut - 0.9-4.20110418git - Upstram sync - Dropped patch rhevm-api-0.9-remove-hardcoded-pyxb-dep.patch * Wed Mar 16 2011 Marek Mahut - 0.9-1.20110316git - Initial build