]> git.ipfire.org Git - ipfire-3.x.git/blame_incremental - python-pycurl/python-pycurl.nm
Add a -debuginfo for every package that is not noarch.
[ipfire-3.x.git] / python-pycurl / python-pycurl.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = python-pycurl
7version = 7.19.0
8release = 3
9thisapp = pycurl-%{version}
10
11groups = Development/Languages
12url = http://pycurl.sourceforge.net/
13license = LGPLv2+ or MIT
14summary = A Python interface to libcurl.
15
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.
21LIBCURL_VERSION = $(shell curl-config --version | awk '{ print $NF }')
22PKG_DEPS += libcurl>=%{LIBCURL_VERSION}
23
24description
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
28 of features.
29end
30
31source_dl =
32
33build
34 requires
35 libcurl-devel
36 openssl-devel
37 python-devel
38 end
39
40 CFLAGS += -DHAVE_CURL_OPENSSL
41
42 build
43 python setup.py build
44 end
45
46 test
47 PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q
48 end
49
50 install
51 python setup.py install --skip-build -O1 \
52 --root=%{BUILDROOT}
53 rm -rf %{BUILDROOT}/usr/share/doc/pycurl
54 end
55end
56
57packages
58 package %{name}
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
63end