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