From e0d81d77c3a841ed0f129858f010adb5fe6bc543 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Aug 16 2011 16:04:04 +0000 Subject: New package: python-requests - HTTP for Humans --- diff --git a/.gitignore b/.gitignore index e69de29..b6410a3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/requests-0.5.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec new file mode 100644 index 0000000..de3afd6 --- /dev/null +++ b/python-requests.spec @@ -0,0 +1,52 @@ +Name: python-requests +Version: 0.5.1 +Release: 2%{?dist} +Summary: HTTP library, written in Python, for human beings + +License: ISC +URL: http://pypi.python.org/pypi/requests +Source0: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-devel + +%description +Most existing Python modules for sending HTTP requests are extremely verbose and +cumbersome. Python’s built-in urllib2 module provides most of the HTTP +capabilities you should need, but the API is thoroughly broken. This library is +designed to make HTTP requests easy for developers. + + +%prep +%setup -q -n requests-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files +%doc LICENSE README.rst HISTORY.rst +%{python_sitelib}/*.egg-info +%dir %{python_sitelib}/requests +%dir %{python_sitelib}/requests/packages +%dir %{python_sitelib}/requests/packages/poster +%{python_sitelib}/requests/packages/*.py* +%{python_sitelib}/requests/packages/poster/*.py* +%{python_sitelib}/requests/*.py* + + + +%changelog +* Mon Aug 15 2011 Arun SAG - 0.5.1-2 +- Remove OPT_FLAGS from build section since it is a noarch package +- Fix use of mixed tabs and space +- Remove extra space around the word cumbersome in description + +* Sun Aug 14 2011 Arun SAG - 0.5.1-1 +- Initial package diff --git a/sources b/sources index e69de29..9e340c8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33a6e65d6a4e5b2d91df76256f607b81 requests-0.5.1.tar.gz