]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - fontconfig/fontconfig.nm
0e1b13384044de20f907728c1e155527afb81687
[people/stevee/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.11.93
8 release = 1
9
10 groups = System/Graphics
11 url = http://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 = http://www.freedesktop.org/software/fontconfig/release/
22
23 build
24 requires
25 freetype-devel
26 libxml2-devel
27 zlib-devel
28 end
29
30 configure_options += \
31 --enable-libxml2 \
32 --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
33
34 test
35 make check
36 end
37
38 install_cmds
39 for i in $(find %{BUILDROOT}%{sysconfdir}/fonts/conf.d -type l); do
40 ln -svf --relative %{BUILDROOT}$(readlink -m ${i}) ${i}
41 done
42 end
43 end
44
45 packages
46 package %{name}
47 postinst
48 umask 0022
49
50 mkdir -p %{localstatedir}/cache/fontconfig
51
52 if [ -x "%{bindir}/fc-cache" ]; then
53 HOME=/root %{bindir}/fc-cache -f
54 fi
55 end
56 end
57
58 package %{name}-devel
59 template DEVEL
60 end
61
62 package %{name}-debuginfo
63 template DEBUGINFO
64 end
65 end