%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-oauth
Version: 1.0.1
Release: 1%{?dist}
Summary: Library for OAuth version 1.0a
Group: Development/Languages
License: MIT
URL: http://code.google.com/p/oauth/
Source0: http://pypi.python.org/packages/source/o/oauth/oauth-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel python-setuptools-devel
%description
Library for OAuth version 1.0a.
%prep
%setup -q -n oauth-%{version}
%build
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%{python_sitelib}/*
%changelog
* Tue Oct 06 2009 Sebastian Dziallas <sebastian@when.com> - 1.0.1-1
- initial packaging