initial packaging 35/16235/5 accepted/tizen/generic accepted/tizen/ivi accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_ivi_release accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen tizen_3.0 tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi tizen_4.0 tizen_5.0 tizen_ivi_release accepted/tizen/3.0/common/20161114.111628 accepted/tizen/3.0/ivi/20161011.062154 accepted/tizen/4.0/unified/20170816.012522 accepted/tizen/4.0/unified/20170828.221709 accepted/tizen/5.0/unified/20181102.025554 accepted/tizen/generic/20140211.113202 accepted/tizen/generic/20140312.120154 accepted/tizen/ivi/20140211.190631 accepted/tizen/ivi/20160218.025808 accepted/tizen/ivi/panda/20140312.120318 accepted/tizen/ivi/release/20140312.124327 accepted/tizen/mobile/20140227.070602 accepted/tizen/unified/20170309.040342 submit/tizen/20140211.114219 submit/tizen/20140312.070910 submit/tizen_3.0.m2/20170104.093754 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000006 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007 submit/tizen_5.0/20181101.000008 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000007 submit/tizen_ivi_release/20140312.071342 submit/tizen_mobile/20141120.000000 submit/tizen_unified/20170308.100416 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
authorNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Tue, 11 Feb 2014 10:38:22 +0000 (11:38 +0100)
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Tue, 11 Feb 2014 11:40:56 +0000 (12:40 +0100)
Bug-Tizen: TINF-416
Change-Id: I63251f5fe8803b7ec5246a1c4c4b3331f842cff0
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
.gbs.conf [new file with mode: 0644]
packaging/python-requests.manifest [new file with mode: 0644]
packaging/python-requests.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..99e7cc8
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = upstream/${upstreamversion}
diff --git a/packaging/python-requests.manifest b/packaging/python-requests.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python-requests.spec b/packaging/python-requests.spec
new file mode 100644 (file)
index 0000000..a0641ec
--- /dev/null
@@ -0,0 +1,58 @@
+Name:           python-requests
+Version:        2.2.1
+Release:        0
+Summary:        Awesome Python HTTP Library That's Actually Usable
+License:        Apache-2.0
+GROUP:          Development/Python
+URL:            http://python-requests.org
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+BuildRequires:  fdupes
+BuildRequires:  python
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+Requires:       python
+BuildArch:      noarch
+
+%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.
+
+Features:
+
+- Extremely simple GET, HEAD, POST, PUT, DELETE Requests
+    + Simple HTTP Header Request Attachment
+    + Simple Data/Params Request Attachment
+    + Simple Multipart File Uploads
+    + CookieJar Support
+    + Redirection History
+    + Redirection Recursion Urllib Fix
+    + Auto Decompression of GZipped Content
+    + Unicode URL Support
+- Simple Authentication
+    + Simple URL + HTTP Auth Registry
+
+%prep
+%setup -q -n requests-%{version}
+cp  %{SOURCE1001} .
+# for rpmlint warning: remove shebang from python library
+sed -i '/^#!/d' ./requests/certs.py
+sed -i '/^#!/d' ./requests/packages/chardet/chardetect.py
+
+%build
+python setup.py build
+
+%check
+python setup.py test
+
+%install
+python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
+%fdupes $RPM_BUILD_ROOT
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license LICENSE
+%{python_sitelib}/*