]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - dejavu-fonts/dejavu-fonts.nm
samba: build with needed packages
[people/amarx/ipfire-3.x.git] / dejavu-fonts / dejavu-fonts.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = dejavu-fonts
7 version = 2.33
8 release = 1
9 arch = noarch
10
11 groups = System/Fonts
12 url = http://www.dejavu-fonts.org/
13 license = Bitstream Vera and Public Domain
14 summary = DejaVu fonts.
15
16 description
17 The DejaVu font set is based on the "Bitstream Vera" fonts, release 1.10. Its
18 purpose is to provide a wider range of characters, while maintaining the
19 original style, using an open collaborative development process.
20 end
21
22 source_dl = http://sourceforge.net/projects/dejavu/files/dejavu/%{version}/
23 sources = %{thisapp}.tar.bz2
24
25 fontname = dejavu
26 fontdir = %{datadir}/fonts/%{fontname}/
27 fontconfig_templatedir = %{datadir}/fontconfig/conf.avail/
28 fontconfig_confdir = %{sysconfdir}/fonts/conf.d/
29
30 build
31 requires
32 perl(Font::TTF)
33 bzip2
34 fontforge
35 unicode-ucd
36 end
37
38 make_build_targets += \
39 VERSION=%{version} \
40 FC-LANG="" \
41 BLOCKS=/usr/share/unicode/ucd/Blocks.txt \
42 UNICODEDATA=/usr/share/unicode/ucd/UnicodeData.txt
43
44 test
45 make check
46 end
47
48 install
49 # Compress the huge state.txt.
50 bzip2 -9 build/status.txt
51
52 # Create directories and install font files.
53 install -m 0755 -d %{BUILDROOT}%{fontdir}
54 install -m 0644 -p build/*.ttf %{BUILDROOT}%{fontdir}
55
56 # Create directories for configuration files.
57 install -m 0755 -d %{BUILDROOT}%{fontconfig_templatedir} \
58 %{BUILDROOT}%{fontconfig_confdir}
59
60 # Install config files and symlink them to /etc.
61 cd fontconfig
62 for fontconf in *conf; do
63 install -m 0644 -p $fontconf %{BUILDROOT}%{fontconfig_templatedir}
64 ln -s ../../..%{fontconfig_templatedir}$fontconf \
65 %{BUILDROOT}%{fontconfig_confdir}/$fontconf
66
67 done
68 end
69 end
70
71 packages
72 # Template for fonts.
73 template FONT
74 requires
75 %{name} = %{thisver}
76 end
77 end
78
79 package %{name}
80
81 package %{name}-sans-fonts
82 template FONT
83
84 summary = Variable-width sans-serif font faces.
85 description
86 This package consists of the DejaVu sans-serif variable-width font faces, in
87 their unabridged version.
88 end
89
90 files
91 %{fontdir}DejaVuSans.ttf
92 %{fontdir}DejaVuSans-*.ttf
93 %{fontdir}DejaVuSansCondensed*.ttf
94 %{fontconfig_templatedir}*-sans.conf
95 %{fontconfig_confdir}*-sans.conf
96 end
97 end
98
99 package %{name}-serif-fonts
100 template FONT
101
102 summary = Variable-width serif font faces.
103 description
104 This package consists of the DejaVu serif variable-width font faces, in
105 their unabridged version.
106 end
107
108 files
109 %{fontdir}DejaVuSerif.ttf
110 %{fontdir}DejaVuSerif-*.ttf
111 %{fontdir}DejaVuSerifCondensed*.ttf
112 %{fontconfig_templatedir}*-serif.conf
113 %{fontconfig_confdir}*-serif.conf
114 end
115 end
116
117 package %{name}-sans-mono-fonts
118 template FONT
119
120 summary = Monospace sans-serif fon faces.
121 description
122 This package consists of the DejaVu sans-serif monospace font faces, in their
123 unabridged version.
124 end
125
126 files
127 %{fontdir}DejaVuSansMono.ttf
128 %{fontconfig_templatedir}*-sans-mono.conf
129 %{fontconfig_confdir}*-sans-mono.conf
130 end
131 end
132
133 package %{name}-lgc-sans-fonts
134 template FONT
135
136 summary = Variable-width sans-serif font faces, Latin-Greek-Cyrillic subset.
137 description
138 This package consists of the DejaVu sans-serif variable-width font faces, with
139 unicode coverage restricted to Latin, Greek and Cyrillic.
140 end
141
142 files
143 %{fontdir}DejaVuLGCSans.ttf
144 %{fontdir}DejaVuLGCSans-*.ttf
145 %{fontdir}DejaVuLGCSansCondensed*.ttf
146 %{fontconfig_templatedir}*-lgc-sans.conf
147 %{fontconfig_confdir}*-lgc-sans.conf
148 end
149 end
150
151 package %{name}-lgc-serif-fonts
152 template FONT
153
154 summary = Variable-width serif font faces, Latin-Greek-Cyrillic subset.
155 description
156 This package consists of the DejaVu serif variable-width font faces, with
157 unicode coverage restricted to Latin, Greek and Cyrillic.
158 end
159
160 files
161 %{fontdir}DejaVuLGCSerif.ttf
162 %{fontdir}DejaVuLGCSerif-*.ttf
163 %{fontdir}DejaVuLGCSerifCondensed*.ttf
164 %{fontconfig_templatedir}*-lgc-serif.conf
165 %{fontconfig_confdir}*-lgc-serif.conf
166 end
167 end
168
169 package %{name}-lgc-sans-mono-fonts
170 template FONT
171
172 summary = Monospace sans-serif font faces, Latin-Greek-Cyrillic subset.
173 description
174 This package consists of the DejaVu sans-serif monospace font faces, with
175 unicode coverage restricted to Latin, Greek and Cyrillic.
176 end
177
178 files
179 %{fontdir}DejaVuLGCSansMono*.ttf
180 %{fontconfig_templatedir}*-lgc-sans-mono.conf
181 %{fontconfig_confdir}*-lgc-sans-mono.conf
182 end
183 end
184 end