diff --git a/python-httplib2.spec b/python-httplib2.spec index 13741f3..b7b31d0 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -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 +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)