]>
Commit | Line | Data |
---|---|---|
641d3495 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
641d3495 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = python-pycurl |
7 | version = 7.19.0 | |
8 | release = 3 | |
9 | thisapp = pycurl-%{version} | |
641d3495 | 10 | |
802ea3af MT |
11 | groups = Development/Languages |
12 | url = http://pycurl.sourceforge.net/ | |
13 | license = LGPLv2+ or MIT | |
14 | summary = A Python interface to libcurl. | |
641d3495 | 15 | |
de1ded0d MT |
16 | # During its initialization, PycURL checks that the actual libcurl version |
17 | # is not lower than the one used when PycURL was built. | |
18 | # Yes, that should be handled by library versioning (which would then get | |
19 | # automatically reflected). | |
20 | # For now, we have to reflect that dependency. | |
802ea3af MT |
21 | LIBCURL_VERSION = $(shell curl-config --version | awk '{ print $NF }') |
22 | PKG_DEPS += libcurl>=%{LIBCURL_VERSION} | |
de1ded0d | 23 | |
802ea3af MT |
24 | description |
25 | PycURL is a Python interface to libcurl. PycURL can be used to fetch | |
26 | objects identified by a URL from a Python program, similar to the | |
27 | urllib Python module. PycURL is mature, very fast, and supports a lot | |
641d3495 | 28 | of features. |
802ea3af MT |
29 | end |
30 | ||
31 | source_dl = | |
32 | ||
33 | build | |
34 | requires | |
35 | libcurl-devel | |
36 | openssl-devel | |
37 | python-devel | |
38 | end | |
39 | ||
40 | CFLAGS += -DHAVE_CURL_OPENSSL | |
641d3495 | 41 | |
802ea3af MT |
42 | build |
43 | python setup.py build | |
44 | end | |
641d3495 | 45 | |
802ea3af MT |
46 | test |
47 | PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q | |
48 | end | |
641d3495 | 49 | |
802ea3af MT |
50 | install |
51 | python setup.py install --skip-build -O1 \ | |
52 | --root=%{BUILDROOT} | |
53 | rm -rf %{BUILDROOT}/usr/share/doc/pycurl | |
54 | end | |
55 | end | |
641d3495 | 56 | |
802ea3af MT |
57 | packages |
58 | package %{name} | |
1f9bc2f0 MT |
59 | |
60 | package %{name}-debuginfo | |
61 | template DEBUGINFO | |
62 | end | |
802ea3af | 63 | end |