File python-rest-client.spec of Package python-rest-client
Name: python-rest-client
Version: 0.2
Release: 1
Summary: A REST Client for Python
URL: http://code.google.com/p/python-rest-client/
License: GPL v3
Group: Development/Libraries/Python
Source: %{name}-%{version}.tar.bz2
Patch: distribution.patch
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
A REST Client for use in python, using httplib2 and urllib2.
Includes a version that is suitable for use in the Google App Engine
environment.
Authors:
--------
Benjamin O'Steen <bosteen@gmail.com>
%prep
%setup -q -n %{name}
%patch -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog