]>
Commit | Line | Data |
---|---|---|
27107f1f SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = python3-cairo | |
5ea7e16f AB |
7 | version = 1.24.0 |
8 | release = 1 | |
414fa141 | 9 | thisapp = pycairo-%{version} |
27107f1f SS |
10 | |
11 | groups = Development/Tools | |
414fa141 | 12 | url = https://cairographics.org/pycairo |
27107f1f | 13 | license = MPLv1.1 or LGPLv2 |
414fa141 | 14 | summary = Python3 bindings for the cairo library |
27107f1f SS |
15 | |
16 | description | |
17 | Python3 bindings for the cairo library. | |
18 | end | |
19 | ||
414fa141 | 20 | source_dl = https://github.com/pygobject/pycairo/releases/download/v%{version}/ |
27107f1f SS |
21 | |
22 | build | |
23 | requires | |
24 | cairo-devel | |
25 | pkg-config | |
d0873e09 | 26 | python3-devel >= 3.4 |
414fa141 | 27 | python3-setuptools |
27107f1f SS |
28 | end |
29 | ||
30 | build | |
414fa141 | 31 | %{python3} setup.py build |
27107f1f SS |
32 | end |
33 | ||
34 | install | |
414fa141 | 35 | %{python3} setup.py install --skip-build --root="%{BUILDROOT}" |
219c8795 SS |
36 | |
37 | # Fix header permissions. | |
38 | find %{BUILDROOT}%{includedir} -type f -iname "*.h" \ | |
39 | -exec chmod -v 644 {} \; | |
27107f1f SS |
40 | end |
41 | end | |
42 | ||
43 | packages | |
44 | package %{name} | |
45 | ||
46 | package %{name}-devel | |
47 | template DEVEL | |
48 | ||
49 | # The development headers need the cairo headers. | |
50 | requires | |
51 | cairo-devel | |
52 | python3-devel | |
53 | end | |
54 | end | |
55 | ||
56 | package %{name}-debuginfo | |
57 | template DEBUGINFO | |
58 | end | |
59 | end |