1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | %define _unpackaged_files_terminate_build 1 |
---|
3 | |
---|
4 | %define freetype_version 2.10.1 |
---|
5 | |
---|
6 | Summary: Font configuration and customization library |
---|
7 | Summary(ja): フォント設定/カスタマイズライブラリ |
---|
8 | Name: fontconfig |
---|
9 | Version: 2.13.1 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | Group: System Environment/Libraries |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | |
---|
15 | License: MIT |
---|
16 | URL: https://fontconfig.org/ |
---|
17 | Source: https://fontconfig.org/release/fontconfig-%{version}.tar.bz2 |
---|
18 | Source10: 70-prefer-ja-font.conf |
---|
19 | Source11: 59-morisawa-font-alias.conf |
---|
20 | Source100: ChangeLog.fedora |
---|
21 | |
---|
22 | # from fedora |
---|
23 | # https://bugzilla.redhat.com/show_bug.cgi?id=140335 |
---|
24 | Patch0: fontconfig-2.8.0-sleep-less.patch |
---|
25 | |
---|
26 | # vine |
---|
27 | Patch4: fontconfig-2.3.2-subst-ja-font.patch |
---|
28 | Patch10: fontconfig-2.13.1-vine.patch |
---|
29 | |
---|
30 | |
---|
31 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
32 | BuildRequires: gawk |
---|
33 | BuildRequires: expat-devel |
---|
34 | BuildRequires: freetype2-devel >= %{freetype_version} |
---|
35 | BuildRequires: perl |
---|
36 | #BuildRequires: itstool |
---|
37 | BuildRequires: libuuid-devel |
---|
38 | BuildRequires: gperf |
---|
39 | |
---|
40 | Requires(pre): freetype2 >= %{freetype_version}, coreutils |
---|
41 | Conflicts: XOrg-libs <= 6.9.0 |
---|
42 | Obsoletes: XOrg-libs <= 6.9.0 |
---|
43 | Conflicts: XOrg-font-utils <= 6.9.0 |
---|
44 | Obsoletes: XOrg-font-utils <= 6.9.0 |
---|
45 | |
---|
46 | %description |
---|
47 | Fontconfig is designed to locate fonts within the |
---|
48 | system and select them according to requirements specified by |
---|
49 | applications. |
---|
50 | |
---|
51 | %description -l ja |
---|
52 | Fontconfig は、システム内のフォントを把握し、アプリケーション |
---|
53 | が指定した要求に応じてそれらを選択するためのライブラリです。 |
---|
54 | |
---|
55 | %package devel |
---|
56 | Summary: Development files for %{name} |
---|
57 | Summary(ja): Fontconfig の開発ファイル |
---|
58 | Group: Development/Libraries |
---|
59 | Requires: fontconfig = %{version}-%{release} |
---|
60 | Requires: freetype2-devel >= %{freetype_version} |
---|
61 | Requires: expat-devel |
---|
62 | Requires: pkgconfig |
---|
63 | Conflicts: XOrg-devel <= 6.9.0 |
---|
64 | Obsoletes: XOrg-devel <= 6.9.0 |
---|
65 | |
---|
66 | %description devel |
---|
67 | The fontconfig-devel package includes the header files, |
---|
68 | and developer docs for the fontconfig package. |
---|
69 | |
---|
70 | %description -l ja devel |
---|
71 | fontconfig-devel パッケージには fontconfig を使ったソフトウエア |
---|
72 | を開発するために必要なヘッダファイルやライブラリ、開発用ドキュメ |
---|
73 | ントが含まれています。 |
---|
74 | |
---|
75 | # compat32 |
---|
76 | %package -n compat32-%{name} |
---|
77 | Summary: Font configuration and customization library |
---|
78 | Summary(ja): フォント設定/カスタマイズライブラリ |
---|
79 | Group: System Environment/Libraries |
---|
80 | |
---|
81 | %description -n compat32-%{name} |
---|
82 | Fontconfig is designed to locate fonts within the |
---|
83 | system and select them according to requirements specified by |
---|
84 | applications. |
---|
85 | |
---|
86 | %description -l ja -n compat32-%{name} |
---|
87 | Fontconfig は、システム内のフォントを把握し、アプリケーション |
---|
88 | が指定した要求に応じてそれらを選択するためのライブラリです。 |
---|
89 | |
---|
90 | %package -n compat32-%{name}-devel |
---|
91 | Summary: Font configuration and customization library |
---|
92 | Group: Development/Libraries |
---|
93 | Requires: compat32-%{name} = %{version}-%{release} |
---|
94 | Requires: %{name}-devel = %{version}-%{release} |
---|
95 | Requires: compat32-freetype2-devel >= %{freetype_version} |
---|
96 | Requires: compat32-expat-devel |
---|
97 | |
---|
98 | %description -n compat32-%{name}-devel |
---|
99 | The fontconfig-devel package includes the header files, |
---|
100 | and developer docs for the fontconfig package. |
---|
101 | |
---|
102 | %description -l ja -n compat32-%{name}-devel |
---|
103 | fontconfig-devel パッケージには fontconfig を使ったソフトウエア |
---|
104 | を開発するために必要なヘッダファイルやライブラリ、開発用ドキュメ |
---|
105 | ントが含まれています。 |
---|
106 | |
---|
107 | %prep |
---|
108 | %setup -q |
---|
109 | |
---|
110 | %patch0 -p1 -b .sleep-less |
---|
111 | |
---|
112 | #patch4 -p1 -b .subst-ja-font |
---|
113 | %patch10 -p1 -b .vine |
---|
114 | |
---|
115 | %build |
---|
116 | |
---|
117 | # We don't want to rebuild the docs, but we want to install the included ones. |
---|
118 | export HASDOCBOOK=no |
---|
119 | |
---|
120 | %configure \ |
---|
121 | --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts |
---|
122 | |
---|
123 | %__make %{?_smp_mflags} |
---|
124 | |
---|
125 | %install |
---|
126 | rm -rf $RPM_BUILD_ROOT |
---|
127 | |
---|
128 | %__make install DESTDIR=$RPM_BUILD_ROOT |
---|
129 | |
---|
130 | ln -s %{_datadir}/fontconfig/conf.avail/25-unhint-nonlatin.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d |
---|
131 | install -m664 %{SOURCE10} %{SOURCE11} $RPM_BUILD_ROOT/%{_datadir}/fontconfig/conf.avail/ |
---|
132 | for i in 70-prefer-ja-font.conf 59-morisawa-font-alias.conf |
---|
133 | do |
---|
134 | ln -sf %{_datadir}/fontconfig/conf.avail/$i $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/ |
---|
135 | done |
---|
136 | |
---|
137 | # move installed doc files back to build directory to package themm |
---|
138 | # in the right place |
---|
139 | mv $RPM_BUILD_ROOT%{_docdir}/fontconfig/* . |
---|
140 | rmdir $RPM_BUILD_ROOT%{_docdir}/fontconfig/ |
---|
141 | |
---|
142 | # All font packages depend on this package, so we create |
---|
143 | # and own /usr/share/fonts |
---|
144 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts |
---|
145 | |
---|
146 | # Remove unpackaged files |
---|
147 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
148 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
149 | |
---|
150 | # remove locales (zh only) |
---|
151 | rm -rf %{buildroot}%{_datadir}/locale |
---|
152 | |
---|
153 | %clean |
---|
154 | rm -rf $RPM_BUILD_ROOT |
---|
155 | |
---|
156 | %post |
---|
157 | /sbin/ldconfig |
---|
158 | umask 0022 |
---|
159 | # Remove stale caches |
---|
160 | rm -f %{_localstatedir}/cache/fontconfig/????????????????????????????????-*.cache-2 |
---|
161 | HOME=/root /usr/bin/fc-cache -f -s >& /dev/null |
---|
162 | |
---|
163 | |
---|
164 | %postun -p /sbin/ldconfig |
---|
165 | |
---|
166 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
167 | |
---|
168 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
169 | |
---|
170 | %files |
---|
171 | %defattr(-, root, root) |
---|
172 | %license COPYING |
---|
173 | %doc README AUTHORS |
---|
174 | %doc fontconfig-user.txt fontconfig-user.html |
---|
175 | %doc %{_sysconfdir}/fonts/conf.d/README |
---|
176 | %{_libdir}/libfontconfig.so.* |
---|
177 | %{_bindir}/fc-cache |
---|
178 | %{_bindir}/fc-conflist |
---|
179 | %{_bindir}/fc-list |
---|
180 | %{_bindir}/fc-match |
---|
181 | %{_bindir}/fc-cat |
---|
182 | %{_bindir}/fc-query |
---|
183 | %{_bindir}/fc-scan |
---|
184 | %{_bindir}/fc-pattern |
---|
185 | %{_bindir}/fc-validate |
---|
186 | %dir %{_datadir}/fonts |
---|
187 | %{_datadir}/%{name} |
---|
188 | %{_datadir}/xml/%{name}/fonts.dtd |
---|
189 | %config %{_sysconfdir}/fonts/fonts.conf |
---|
190 | %config(noreplace) %{_sysconfdir}/fonts/conf.d/*.conf |
---|
191 | %dir %{_localstatedir}/cache/fontconfig |
---|
192 | |
---|
193 | %{_mandir}/man1/* |
---|
194 | %{_mandir}/man5/* |
---|
195 | |
---|
196 | %files devel |
---|
197 | %defattr(-, root, root) |
---|
198 | %doc fontconfig-devel.txt fontconfig-devel |
---|
199 | %{_libdir}/libfontconfig.so |
---|
200 | %dir %{_datadir}/gettext |
---|
201 | %dir %{_datadir}/gettext/its |
---|
202 | %{_datadir}/gettext/its/* |
---|
203 | %{_libdir}/pkgconfig/* |
---|
204 | %{_includedir}/fontconfig |
---|
205 | %{_mandir}/man3/* |
---|
206 | |
---|
207 | # compat32 |
---|
208 | %if %{build_compat32} |
---|
209 | %files -n compat32-%{name} |
---|
210 | %defattr(-, root, root) |
---|
211 | %{_libdir}/libfontconfig.so.* |
---|
212 | |
---|
213 | %files -n compat32-%{name}-devel |
---|
214 | %defattr(-, root, root) |
---|
215 | %{_libdir}/libfontconfig.so |
---|
216 | %endif |
---|
217 | |
---|
218 | %changelog |
---|
219 | * Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.13.1-1 |
---|
220 | - new upstream release. |
---|
221 | - disabled Patch4. |
---|
222 | - updated Patch10. |
---|
223 | - truncated %%changelog: old logs are ChangeLog.fedora. |
---|
224 | |
---|
225 | * Fri Jan 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.12.6-1 |
---|
226 | - new upstream release. |
---|
227 | - added BR:gperf. |
---|
228 | |
---|
229 | * Fri Mar 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.11.1-1 |
---|
230 | - new upstream release |
---|
231 | |
---|
232 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.11.0-1 |
---|
233 | - new upstream release |
---|
234 | - remove Patch1,2 |
---|
235 | |
---|
236 | * Tue May 07 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.92-2 |
---|
237 | - install/enable 70-prefer-ja-font.conf and 59-morisawa-font-alias.conf (again) |
---|
238 | - enable 25-unhint-nonlatin.conf (again) |
---|
239 | - add patch0-2 from fedora package |
---|
240 | - patch0: less sleep in fc-cache |
---|
241 | - patch1: fix font matching issue |
---|
242 | - patch2: fix web font issue in firefox |
---|
243 | |
---|
244 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.92-1 |
---|
245 | - new upstream release |
---|
246 | - remove Patch1 (fontconfig-2.2.1-AppleRoman-DynaFont.patch) |
---|
247 | |
---|
248 | * Fri Dec 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-3 |
---|
249 | - rebuild with freetype2-2.4.8 |
---|
250 | - add Requires: expat-devel (-devel package) |
---|
251 | |
---|
252 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.0-2 |
---|
253 | - build with rpm-4.8.1-1 for pkg-config file |
---|
254 | |
---|
255 | * Fri Jan 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-1 |
---|
256 | - new upstream release |
---|
257 | - remove static libs |
---|
258 | |
---|
259 | * Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7.1-3 |
---|
260 | - update %%post |
---|
261 | |
---|
262 | * Thu Aug 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7.1-2 |
---|
263 | - add translated summary and description |
---|
264 | |
---|
265 | * Wed Aug 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7.1-1 |
---|
266 | - new upstream release |
---|
267 | |
---|
268 | * Mon Jul 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7.0-2 |
---|
269 | - add fc-query and fc-scan to %%files |
---|
270 | |
---|
271 | * Mon Jul 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7.0-1 |
---|
272 | - new upstream release |
---|
273 | - update 59-morisawa-font-alias.conf |
---|
274 | |
---|
275 | * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.6.0-3 |
---|
276 | - added compat32 package for x86_64 arch support |
---|
277 | |
---|
278 | * Tue Jan 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.0-2 |
---|
279 | - update 59-morisawa-font-alias.conf |
---|
280 | - add FutoMin, FutoGo, Jun alias |
---|
281 | |
---|
282 | * Thu Jun 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.0-1 |
---|
283 | - new upstream release |
---|
284 | - rename 10-prefer-ja-font.conf to 70-prefer-ja-font.conf |
---|
285 | |
---|
286 | * Thu May 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.0-3 |
---|
287 | - add 10-prefer-ja-font.conf to prefer Japanese fonts. |
---|
288 | - add 59-morisawa-font-alias.conf |
---|
289 | - bind Ryumin to serif and GothicBBB to sans-serif |
---|
290 | |
---|
291 | * Mon May 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.0-2 |
---|
292 | - add legacy font path for compatibility |
---|
293 | |
---|
294 | * Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.0-1 |
---|
295 | - add Conflits/Obsoletes: XOrg-font-utils <= 6.9.0 |
---|
296 | |
---|
297 | * Mon Dec 10 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.0-0vl1 |
---|
298 | - initial build for Vine Linux |
---|
299 | - splitted from XOrg package. |
---|