]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python3-cairo/python3-cairo.nm
file: Update to 5.18.
[people/ms/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
8release = 1
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
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
50end
51
52packages
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
68end