File openstack-novaclient.spec of Package openstack-novaclient
#
# spec file for package openstack-novaclient
#
# Copyright (c) 2011, 2012 B1 Systems GmbH, Vohburg, 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/
#
%define shortname novaclient
Name: openstack-%{shortname}
Version: 2012.1
Release: 1
Summary: Client tool for the OpenStack Compute Service
Group: Productivity/Other
License: Apache-2.0
URL: http://nova.openstack.org/
Source0: python-novaclient-2012.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel python-distribute fdupes
Requires: python-python-%{shortname} = %{version}-%{release}
%description
This package contains the client tool for the OpenStack Compute Service.
%package -n python-python-%{shortname}
Summary: Python bindings to the OpenStack Nova API
Group: Development/Languages/Python
Requires: python-distribute python-argparse python-prettytable python-httplib2
Requires: python-netaddr
%description -n python-python-%{shortname}
This package contains the python bindings for the OpenStack Nova API.
%prep
%setup -q -n python-%{shortname}-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot} --prefix=%{_prefix} --install-lib=%{python_sitelib}
%fdupes -s %{buildroot}%{python_sitelib}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/nova
%files -n python-python-%{shortname}
%defattr(-,root,root,-)
%{python_sitelib}/*
%changelog