2 %bcond_without static_libs # don't build static library
5 Summary: Font configuration and customization tools
6 Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
7 Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
14 Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz
15 # Source0-md5: c94e380eea42f2f23ca9537035ef1899
16 Source1: %{name}-lcd-filter.conf
17 Patch0: %{name}-bitstream-cyberbit.patch
18 URL: http://fontconfig.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: docbook-dtd31-sgml
23 BuildRequires: docbook-dtd41-sgml
24 BuildRequires: docbook-utils >= 0.6.13-3
27 BuildRequires: expat-devel
28 BuildRequires: freetype-devel >= 2.1.5
29 BuildRequires: libtool
30 BuildRequires: pkgconfig
31 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
32 Requires: freetype >= 2.1.5
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Fontconfig is designed to locate fonts within the system and select
37 them according to requirements specified by applications.
39 This package contains tools and documentation.
41 %description -l pl.UTF-8
42 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
43 systemie i wybierania ich w zależności od potrzeb aplikacji.
45 Paket ten zawiera programy narzędziowe i dokumentację.
47 %description -l pt_BR.UTF-8
48 Fontconfig é uma biblioteca para configuração e customização do acesso
51 Este pacote contém as ferramentas e documentação.
54 Summary: Font configuration and customization library
55 Summary(pl.UTF-8): Biblioteka do konfigurowania fontów
56 Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes
58 Requires: freetype >= 2.1.5
59 Provides: XFree86-fontconfig
60 Obsoletes: XFree86-fontconfig
61 Conflicts: fontconfig <= 1:2.2.98-1
64 Fontconfig is designed to locate fonts within the system and select
65 them according to requirements specified by applications.
67 %description libs -l pl.UTF-8
68 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
69 systemie i wybierania ich w zależności od potrzeb aplikacji.
71 %description libs -l pt_BR.UTF-8
72 Fontconfig é uma biblioteca para configuração e customização do acesso
76 Summary: Font configuration and customization library - development files
77 Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów
78 Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
79 Group: Development/Libraries
80 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
82 Requires: freetype-devel >= 2.1.5
83 Provides: XFree86-fontconfig-devel
84 Obsoletes: XFree86-fontconfig-devel
87 Fontconfig is designed to locate fonts within the system and select
88 them according to requirements specified by applications.
90 This package contains the header files needed to develop programs that
93 %description devel -l pl.UTF-8
94 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
95 systemie i wybierania ich w zależności od potrzeb aplikacji.
97 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
98 programów korzystających z biblioteki fontconfig.
100 %description devel -l pt_BR.UTF-8
101 Fontconfig é uma biblioteca para configuração e customização do acesso
104 Este pacote contém arquivos de desenvolvimento necessários à criação
105 de extensões baseadas na biblioteca fontconfig.
108 Summary: Static font configuration and customization library
109 Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów
110 Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes
111 Group: Development/Libraries
112 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
113 Provides: XFree86-fontconfig-static
114 Obsoletes: XFree86-fontconfig-static
117 This package contains static version of fontconfig library.
119 %description static -l pl.UTF-8
120 Ten pakiet zawiera statyczną wersję biblioteki fontconfig.
122 %description static -l pt_BR.UTF-8
123 Este pacote contém a biblioteca estática do fontconfig
136 # don't rebuild docs by default, use prebuild ones
140 --%{?with_doc:en}%{!?with_doc:dis}able-docs \
141 --disable-silent-rules \
142 %{!?with_static_libs:--disable-static}
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig} \
150 DESTDIR=$RPM_BUILD_ROOT \
155 $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.avail/10-lcd-filter.conf
157 ln -s %{_datadir}/%{name}/conf.avail $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
159 cp -pf conf.d/README README.confd
162 rm -rf $RPM_BUILD_ROOT
165 # this needs to be a symlink
166 if [ -d %{_sysconfdir}/fonts/conf.avail ] && [ ! -L %{_sysconfdir}/fonts/conf.avail ]; then
167 mv -f %{_sysconfdir}/fonts/conf.avail{,.rpmsave}
168 install -d %{_datadir}/%{name}/conf.avail
169 ln -s %{_datadir}/%{name}/conf.avail %{_sysconfdir}/fonts/conf.avail
170 mv -f %{_sysconfdir}/fonts/conf.avail.rpmsave/*.conf %{_sysconfdir}/fonts/conf.avail/
171 rmdir %{_sysconfdir}/fonts/conf.avail.rpmsave 2>/dev/null || :
176 HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
178 %post libs -p /sbin/ldconfig
179 %postun libs -p /sbin/ldconfig
182 %defattr(644,root,root,755)
183 %doc AUTHORS COPYING ChangeLog README README.confd doc/fontconfig-user.html
184 %dir %{_sysconfdir}/fonts
185 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
186 %{_sysconfdir}/fonts/conf.avail
187 %dir %{_datadir}/xml/%{name}
188 %{_datadir}/xml/%{name}/fonts.dtd
189 %dir %{_datadir}/%{name}
190 %dir %{_datadir}/%{name}/conf.avail
191 %{_datadir}/%{name}/conf.avail/*.conf
192 %dir %{_sysconfdir}/fonts/conf.d
193 %{_sysconfdir}/fonts/conf.d/README
194 %config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
195 %attr(755,root,root) %{_bindir}/fc-cache
196 %attr(755,root,root) %{_bindir}/fc-cat
197 %attr(755,root,root) %{_bindir}/fc-list
198 %attr(755,root,root) %{_bindir}/fc-match
199 %attr(755,root,root) %{_bindir}/fc-query
200 %attr(755,root,root) %{_bindir}/fc-pattern
201 %attr(755,root,root) %{_bindir}/fc-scan
203 %{_mandir}/man1/fc-*.1*
204 %{_mandir}/man5/fonts-conf.5*
206 %dir /var/cache/fontconfig
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libfontconfig.so.*.*.*
211 %attr(755,root,root) %ghost %{_libdir}/libfontconfig.so.1
214 %defattr(644,root,root,755)
215 %doc doc/fontconfig-devel/*.html
216 %attr(755,root,root) %{_libdir}/libfontconfig.so
217 %{_libdir}/libfontconfig.la
218 %{_includedir}/fontconfig
219 %{_pkgconfigdir}/fontconfig.pc
221 %{_mandir}/man3/Fc*.3*
224 %if %{with static_libs}
226 %defattr(644,root,root,755)
227 %{_libdir}/libfontconfig.a