]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - python3-cairo/python3-cairo.nm
python3-cairo: Rebuild against Python 3.4
[people/amarx/ipfire-3.x.git] / python3-cairo / python3-cairo.nm
CommitLineData
27107f1f
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = python3-cairo
7version = 1.10.0
d0873e09 8release = 2
27107f1f
SS
9
10groups = Development/Tools
11url = http://cairographics.org/pycairo
12license = MPLv1.1 or LGPLv2
13summary = Python3 bindings for the cairo library.
14
15description
16 Python3 bindings for the cairo library.
17end
18
19thisapp = pycairo-%{version}
20
21source_dl = http://cairographics.org/releases/
22sources = %{thisapp}.tar.bz2
23
24build
25 requires
26 cairo-devel
27 pkg-config
d0873e09
MT
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}
27107f1f
SS
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
64end
65
66packages
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
82end