[Tizen-submit] 3314: New package Tizen:2.1:Base/python-pycurl

noreply at tizen.org noreply at tizen.org
Thu Apr 25 00:01:46 GMT 2013


Hi,
Adding new package python-pycurl in project Tizen:2.1:Base. Please review and accept ASAP.

Justification for this new package:

Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: toolchains/python-pycurl
Tag: submit/tizen_2.1/20130425.000209
Commit: 8099e9c Tizen 2.1 base

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #3314

  submit:       Tizen:2.1:Base:build/python-pycurl(cleanup) -> Tizen:2.1:Base


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: toolchains/python-pycurl
Tag: submit/tizen_2.1/20130425.000209
Commit: 8099e9c Tizen 2.1 base

State:   new        2013-04-24T16:32:25 tizenrobot
Comment: <no comment>
changes files:
--------------

++++++ new changes file:
--- python-pycurl.changes
+++ python-pycurl.changes
@@ -0,0 +1,2 @@
+* Tue Sep 06 2011 William Douglas <william.douglas at intel.com> - 7.19.0
+- Provide correct install path

new:
----
  python-pycurl-7.19.0.tar.gz
  python-pycurl-lcrypto.patch
  python-pycurl-no-static-libs.patch
  python-pycurl.changes
  python-pycurl.manifest
  python-pycurl.spec

spec files:
-----------

++++++ new spec file:
--- python-pycurl.spec
+++ python-pycurl.spec
@@ -0,0 +1,67 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+Name:           python-pycurl
+Version:        7.19.0
+Release:        4
+VCS:        toolchains/python-pycurl#2.1_release-0-g8099e9c
+Summary:        A Python interface to libcurl
+
+Group:          Development/Languages
+License:        LGPLv2+
+URL:            http://pycurl.sourceforge.net/
+Source0:        %{name}-%{version}.tar.gz
+Source1001: packaging/python-pycurl.manifest 
+Patch0:		python-pycurl-no-static-libs.patch
+Patch1:		python-pycurl-lcrypto.patch
+
+BuildRequires:  python-devel
+BuildRequires:  curl-devel >= 7.19.0
+BuildRequires:  pkgconfig(openssl)
+BuildRequires:  pkgconfig(libcares)
+
+# During its initialization, PycURL checks that the actual libcurl version
+# is not lower than the one used when PycURL was built.
+# Yes, that should be handled by library versioning (which would then get
+# automatically reflected by rpm).
+# For now, we have to reflect that dependency.
+%define libcurl_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
+%define curlver_h /usr/include/curl/curlver.h
+%define libcurl_ver %(sed %{libcurl_sed} %{curlver_h} 2>/dev/null || echo 0)
+Requires:	libcurl >= %{libcurl_ver}
+
+Provides:       pycurl = %{version}-%{release}
+
+%description
+PycURL is a Python interface to libcurl. PycURL can be used to fetch
+objects identified by a URL from a Python program, similar to the
+urllib Python module. PycURL is mature, very fast, and supports a lot
+of features.
+
+%prep
+%setup0 -q
+%patch0 -p0
+%patch1 -p1 -b .lcrypto
+
+chmod a-x examples/*
+
+%build
+cp %{SOURCE1001} .
+CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python} setup.py build
+
+%check
+export PYTHONPATH=$PWD/build/lib*
+%{__python} tests/test_internals.py -q
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}  --prefix %{_prefix}
+ 
+%clean
+rm -rf %{buildroot}

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list