1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Development/Tools
11 url = http://cairographics.org/pycairo
12 license = MPLv1.1 or LGPLv2
13 summary = Python3 bindings for the cairo library.
16 Python3 bindings for the cairo library.
19 thisapp = pycairo-%{version}
21 source_dl = http://cairographics.org/releases/
22 sources = %{thisapp}.tar.bz2
32 # Extract source tarball.
33 %{MACRO_EXTRACT_TARBALL}
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
52 %{python3} ./waf build -v
56 # remove executable bits from examples
57 find ./examples/ -type f -print0 | xargs -0 chmod -x
59 DESTDIR=%{BUILDROOT} %{python3} ./waf install
61 # add executable bit to the .so libraries so we strip the debug info
62 find %{BUILDROOT} -name '*.so' | xargs chmod +x
72 # The development headers need the cairo headers.
79 package %{name}-debuginfo