%if 0%{?fedora} < 13 || 0%{?rhel} < 6 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif Name: python-clouddns Version: 0.0.0 Release: 2%{?dist} Summary: Python interface to Rackspace Cloud DNS Group: Development/Languages License: BSD URL: https://github.com/rackspace/python-clouddns Source0: python-clouddns.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools %description A Rackspace Cloud username and API key are required and can be obtained from http://manage.rackspacecloud.com. Domains and records can be found by specifying their name or id. To enable debugging output for the HTTP connection, include the keyword argument debuglevel=1. Additional debugging output is available by setting the 'PYTHON_CLOUDDNS_DEBUG' environment variable. %prep %setup -qn %{name} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/* %changelog * Mon Aug 27 2012 Daniel Bruno dbruno@fedoraproject.org - 0.0.0-2 - First RPM Release