1 DESCRIPTION = "Awesome Python HTTP Library That's Actually Usable"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Base"
11 inherit manifest autotools-brokensep
16 #PROVIDES by python-requests
20 #RDEPENDS of python-requests (${PN})
21 RDEPENDS_${PN} += "python"
25 #DEPENDS of python-requests
27 DEPENDS += "python-setuptools"
28 DEPENDS_append_class-native = " fdupes-native"
29 DEPENDS_append_class-target = " fdupes-native"
33 chmod -Rf a+rX,u+w,g-w,o-w ${S}
34 #setup -q -n requests-2.2.1
35 cp ${S}/packaging/python-requests.manifest .
36 # for rpmlint warning: remove shebang from python library
37 sed -i '/^#!/d' ./requests/certs.py
38 sed -i '/^#!/d' ./requests/packages/chardet/chardetect.py
43 bb.build.exec_func('do_prep', d)
54 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
66 export RPM_BUILD_ROOT=${D}
74 python setup.py install --skip-build --prefix=${prefix} --root=${D}
75 #fdupes $RPM_BUILD_ROOT
80 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
81 PACKAGES += " python-requests "
83 python-requests_files = ""
84 python-requests_files += "${prefix}/lib/python2.7/site-packages/*"
85 MANIFESTFILES_${PN} = "python-requests.manifest"
87 FILES_${PN} = "${python-requests_files}"
89 PKG_python-requests= "python-requests"
91 require python-requests-extraconf.inc