File openstackx.spec of Package openstackx

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

#%define mod_name openstack-openstackx

Name:           openstackx
Release:	b557
Version:	2011.3
Url:            http://github.com/cloudbuilders/openstackx/
Summary:        Python bindings to the OS API
License:        Apache 2.0
Vendor:         Grid Dynamics Consulting Services, Inc.
Group:          Development/Languages/Python
Source:         %{name}-%{version}.tar.gz
#Patch:          %{mod_name}-%{version}-nova-api-diablo.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel python-setuptools
BuildArch:      noarch
Requires:       python-prettytable python-httplib2 python-argparse


%description
Python bindings to the OS API

%package django-extension
Summary:	extension for openstack nova
Group:		Application/System

%description django-extension
package dependancy for openstack-dashboard

%package openstackx
Summary:	extension for openstack nova
Group:		Application/System

%description openstackx
package dependancy for openstack-dashboard

%prep
%setup -q -n %{name}-%{version}
#%patch -p1

%build
#export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record %{name}.files


%clean
rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-,root,root,-)
%{python_sitelib}/openstackx
%{python_sitelib}/extensions

%changelog


openSUSE Build Service is sponsored by