]> git.ipfire.org Git - ipfire-3.x.git/blame - python-pycurl/python-pycurl.nm
git: Update to 2.23.0
[ipfire-3.x.git] / python-pycurl / python-pycurl.nm
CommitLineData
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
6name = python-pycurl
7version = 7.19.0
883c26f3 8release = 5
802ea3af 9thisapp = pycurl-%{version}
641d3495 10
802ea3af
MT
11groups = Development/Languages
12url = http://pycurl.sourceforge.net/
13license = LGPLv2+ or MIT
14summary = A Python interface to libcurl.
641d3495 15
802ea3af
MT
16description
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
641d3495 20 of features.
802ea3af
MT
21end
22
bdd2e2f6 23source_dl = http://pycurl.sourceforge.net/download/
802ea3af
MT
24
25build
26 requires
27 libcurl-devel
28 openssl-devel
29 python-devel
30 end
31
32 CFLAGS += -DHAVE_CURL_OPENSSL
641d3495 33
802ea3af
MT
34 build
35 python setup.py build
36 end
641d3495 37
802ea3af
MT
38 test
39 PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q
40 end
641d3495 41
802ea3af
MT
42 install
43 python setup.py install --skip-build -O1 \
44 --root=%{BUILDROOT}
45 rm -rf %{BUILDROOT}/usr/share/doc/pycurl
46 end
47end
641d3495 48
802ea3af
MT
49packages
50 package %{name}
883c26f3
MT
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
1f9bc2f0
MT
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
802ea3af 64end