]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - python3-cairo/python3-cairo.nm
a360e7ace0d6b3e9758c49b6f6d4aeca6ed0c750
[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 = 2
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 >= 3.4
29 end
30
31 prepare
32 # Extract source tarball.
33 %{MACRO_EXTRACT_TARBALL}
34
35 # Ensure that ./waf has created the cached unpacked version
36 # of the wafadmin source tree.
37 # This will be created to a subdirectory like
38 # .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
39 python3 ./waf --version
40
41 # Apply all patches.
42 %{MACRO_PATCHES}
43 end
44
45 build
46 export PYTHON=python3
47 %{python3} ./waf \
48 --prefix=%{prefix} \
49 --libdir=%{libdir} \
50 configure
51
52 %{python3} ./waf build -v
53 end
54
55 install
56 # remove executable bits from examples
57 find ./examples/ -type f -print0 | xargs -0 chmod -x
58
59 DESTDIR=%{BUILDROOT} %{python3} ./waf install
60
61 # add executable bit to the .so libraries so we strip the debug info
62 find %{BUILDROOT} -name '*.so' | xargs chmod +x
63 end
64 end
65
66 packages
67 package %{name}
68
69 package %{name}-devel
70 template DEVEL
71
72 # The development headers need the cairo headers.
73 requires
74 cairo-devel
75 python3-devel
76 end
77 end
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82 end