]> git.ipfire.org Git - ipfire-3.x.git/blob - fontconfig/fontconfig.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / fontconfig / fontconfig.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = fontconfig
7 version = 2.13.1
8 release = 2
9
10 groups = System/Graphics
11 url = https://fontconfig.org/
12 license = MIT
13 summary = Font configuration and customization library
14
15 description
16 Fontconfig is designed to locate fonts within the
17 system and select them according to requirements specified by
18 applications.
19 end
20
21 source_dl = https://www.freedesktop.org/software/fontconfig/release/
22
23 build
24 requires
25 gperf
26 pkgconfig(freetype2) >= 21.0.15
27 libuuid-devel
28 libxml2-devel
29 zlib-devel
30 end
31
32 configure_options += \
33 --enable-libxml2 \
34 --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
35
36 test
37 LD_LIBRARY_PATH=%{DIR_APP}/src/.libs make check
38 end
39
40 install_cmds
41 for i in $(find %{BUILDROOT}%{sysconfdir}/fonts/conf.d -type l); do
42 ln -svf --relative %{BUILDROOT}$(readlink -m ${i}) ${i}
43 done
44 end
45 end
46
47 packages
48 package %{name}
49 postinst
50 umask 0022
51
52 mkdir -p %{localstatedir}/cache/fontconfig
53
54 if [ -x "%{bindir}/fc-cache" ]; then
55 HOME=/root %{bindir}/fc-cache -f
56 fi
57 end
58 end
59
60 package %{name}-devel
61 template DEVEL
62
63 requires
64 libxml2-devel
65 end
66 end
67
68 package %{name}-debuginfo
69 template DEBUGINFO
70 end
71 end