From bd764993ad6e8cd2574ec3f6e0f9cbec422b897b Mon Sep 17 00:00:00 2001 From: Andreas Bierfert Date: Fri, 28 Dec 2007 19:28:45 +0000 Subject: [PATCH] - initial import --- .cvsignore | 1 + python-httplib2.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 45 insertions(+) create mode 100644 python-httplib2.spec diff --git a/.cvsignore b/.cvsignore index e69de29..791f633 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +httplib2-0.4.0.tar.gz diff --git a/python-httplib2.spec b/python-httplib2.spec new file mode 100644 index 0000000..776982e --- /dev/null +++ b/python-httplib2.spec @@ -0,0 +1,43 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +Name: python-httplib2 +Version: 0.4.0 +Release: 1%{?dist} +Summary: A comprehensive HTTP client library + +Group: System Environment/Libraries +License: MIT +URL: http://code.google.com/p/httplib2/ +Source0: http://httplib2.googlecode.com/files/httplib2-0.4.0.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-setuptools-devel +BuildRequires: python-devel +BuildArch: noarch + +%description +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 + + +%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 README PKG-INFO +%{python_sitelib}/* + +%changelog +* Thu Dec 27 2007 Andreas Bierfert +- 0.4.0-1 +- initial version diff --git a/sources b/sources index e69de29..febab5d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +022006c6c5fb75ea082b97d0fcc89d94 httplib2-0.4.0.tar.gz