Christopher Stender 2012-01-27 16:11:01 +00:00 committed by Git OBS Bridge
parent dbc0577cf4
commit fae378746f

View File

@ -1,7 +1,7 @@
#
# spec file for package python-httplib2
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,42 +19,34 @@
Name: python-httplib2
BuildRequires: python-devel
Summary: A Python HTTP library
Version: 0.7.2
Release: 0
Source0: httplib2-%{version}.tar.gz
Url: http://bitworking.org/projects/httplib2/
Summary: A Python HTTP client library
License: MIT
Group: Development/Libraries/Python
Source0: httplib2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://bitworking.org/projects/httplib2/
%define prefix /usr
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
%description
A comprehensive python HTTP client library, which supports many
features left out of other HTTP libraries.
Authors:
--------
Joe Gregorio <joe@bitworking.org>
A comprehensive HTTP client library that supports many features
left out of other HTTP libraries.
%prep
%setup -q -n httplib2-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)