3 %bcond_with bytecode # use bytecode hinting instead of autohinting by default
4 %bcond_without static_libs # don't build static library
6 Summary: Font configuration and customization tools
7 Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
8 Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
15 Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz
16 # Source0-md5: f035852f521b54677f2b5c9e2f6d54a4
17 Patch0: %{name}-blacklist.patch
18 Patch1: %{name}-autohint.patch
19 Patch2: %{name}-bitstream-cyberbit.patch
20 URL: http://fontconfig.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: docbook-utils >= 0.6.13-3
24 BuildRequires: docbook-dtd41-sgml
26 BuildRequires: expat-devel
27 BuildRequires: freetype-devel >= 2.1.5
28 BuildRequires: libtool
29 BuildRequires: pkgconfig
30 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
31 Requires: freetype >= 2.1.5
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Fontconfig is designed to locate fonts within the system and select
36 them according to requirements specified by applications.
38 This package contains tools and documentation.
40 %description -l pl.UTF-8
41 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
42 systemie i wybierania ich w zależności od potrzeb aplikacji.
44 Paket ten zawiera programy narzędziowe i dokumentację.
46 %description -l pt_BR.UTF-8
47 Fontconfig é uma biblioteca para configuração e customização do acesso
50 Este pacote contém as ferramentas e documentação.
53 Summary: Font configuration and customization library
54 Summary(pl.UTF-8): Biblioteka do konfigurowania fontów
55 Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes
56 Group: Development/Libraries
57 Requires: freetype >= 2.1.5
58 Provides: XFree86-fontconfig
59 Conflicts: fontconfig <= 1:2.2.98-1
60 Obsoletes: XFree86-fontconfig
63 Fontconfig is designed to locate fonts within the system and select
64 them according to requirements specified by applications.
66 %description libs -l pl.UTF-8
67 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
68 systemie i wybierania ich w zależności od potrzeb aplikacji.
70 %description libs -l pt_BR.UTF-8
71 Fontconfig é uma biblioteca para configuração e customização do acesso
75 Summary: Font configuration and customization library - development files
76 Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów
77 Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
78 Group: Development/Libraries
79 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
81 Requires: freetype-devel >= 2.1.5
82 Provides: XFree86-fontconfig-devel
83 Obsoletes: XFree86-fontconfig-devel
86 Fontconfig is designed to locate fonts within the system and select
87 them according to requirements specified by applications.
89 This package contains the header files needed to develop programs that
92 %description devel -l pl.UTF-8
93 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
94 systemie i wybierania ich w zależności od potrzeb aplikacji.
96 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
97 programów korzystających z biblioteki fontconfig.
99 %description devel -l pt_BR.UTF-8
100 Fontconfig é uma biblioteca para configuração e customização do acesso
103 Este pacote contém arquivos de desenvolvimento necessários à criação
104 de extensões baseadas na biblioteca fontconfig.
107 Summary: Static font configuration and customization library
108 Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów
109 Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
112 Provides: XFree86-fontconfig-static
113 Obsoletes: XFree86-fontconfig-static
116 This package contains static version of fontconfig library.
118 %description static -l pl.UTF-8
119 Ten pakiet zawiera statyczną wersję biblioteki fontconfig.
121 %description static -l pt_BR.UTF-8
122 Este pacote contém a biblioteca estática do fontconfig
140 %{!?with_static_libs:--disable-static}
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig}
148 DESTDIR=$RPM_BUILD_ROOT
150 install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
151 install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
153 cp -f conf.d/README README.confd
156 rm -rf $RPM_BUILD_ROOT
160 HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
162 %post libs -p /sbin/ldconfig
163 %postun libs -p /sbin/ldconfig
166 %defattr(644,root,root,755)
167 %doc AUTHORS COPYING ChangeLog README README.confd
168 %attr(755,root,root) %{_bindir}/fc-*
171 /var/cache/fontconfig
174 %defattr(644,root,root,755)
175 %dir %{_sysconfdir}/fonts
176 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
177 %{_sysconfdir}/fonts/fonts.dtd
178 %dir %{_sysconfdir}/fonts/conf.avail
179 %{_sysconfdir}/fonts/conf.avail/*.conf
180 %{_sysconfdir}/fonts/conf.avail/README
181 %dir %{_sysconfdir}/fonts/conf.d
182 %config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
183 %attr(755,root,root) %{_libdir}/lib*.so.*.*
186 %defattr(644,root,root,755)
187 %doc doc/fontconfig-devel/*.html
188 %attr(755,root,root) %{_libdir}/lib*.so
190 %{_includedir}/fontconfig
191 %{_pkgconfigdir}/fontconfig.pc
194 %if %{with static_libs}
196 %defattr(644,root,root,755)