]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - python3-cairo/python3-cairo.nm
c8f04b1fefec452c3d48d635d6004be12a0787d7
[people/amarx/ipfire-3.x.git] / python3-cairo / python3-cairo.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python3-cairo
7 version = 1.10.0
8 release = 1
9
10 groups = Development/Tools
11 url = http://cairographics.org/pycairo
12 license = MPLv1.1 or LGPLv2
13 summary = Python3 bindings for the cairo library.
14
15 description
16 Python3 bindings for the cairo library.
17 end
18
19 thisapp = pycairo-%{version}
20
21 source_dl = http://cairographics.org/releases/
22 sources = %{thisapp}.tar.bz2
23
24 build
25 requires
26 cairo-devel
27 pkg-config
28 python3-devel
29 end
30
31 build
32 export PYTHON=python3
33 %{python3} ./waf \
34 --prefix=%{prefix} \
35 --libdir=%{libdir} \
36 configure
37
38 %{python3} ./waf build -v
39 end
40
41 install
42 # remove executable bits from examples
43 find ./examples/ -type f -print0 | xargs -0 chmod -x
44
45 DESTDIR=%{BUILDROOT} %{python3} ./waf install
46
47 # add executable bit to the .so libraries so we strip the debug info
48 find %{BUILDROOT} -name '*.so' | xargs chmod +x
49 end
50 end
51
52 packages
53 package %{name}
54
55 package %{name}-devel
56 template DEVEL
57
58 # The development headers need the cairo headers.
59 requires
60 cairo-devel
61 python3-devel
62 end
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68 end