%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-rhev Version: 0.9 Release: 1.20110316git%{?dist} Summary: Python binding to Red Hat Enterprise Virtualization's REST API Group: Development/Languages License: MIT URL: https://fedorahosted.org/rhevm-api/ # NOTE: This is just a work around waiting on upstream. # NOTE: In the future, upstream will first of all provide a working # NOTE: tarball. Later, upstream will split this git tree and tarball # NOTE: into separate projects. # git clone git://git.fedorahosted.org/rhevm-api.git # cd rhevm-api # git archive --prefix=rhevm-api-0.9/ 3d0028b76 |gzip > rhevm-api-0.9.20110316.git.tar.gz Source0: rhevm-api-0.9.20110316.git.tar.gz Patch0: python-rhev-0.9-fix-dependencies.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: PyXB BuildRequires: python-setuptools Requires: PyXB %description Python-RHEV is a validating object-oriented Python binding to Red Hat Enterprise Virtualization's REST API. %prep %setup -q -n rhevm-api-0.9 %patch0 -p1 %build cd python %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT cd python %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc python/examples/* HACKING python/README python/LICENSE python/AUTHORS python/test.conf.in %{python_sitelib}/* %changelog * Wed Mar 16 2011 Marek Mahut - 0.9-1.20110316git - Initial build