]>
Commit | Line | Data |
---|---|---|
8a1d19fc | 1 | # Conditional build |
4d2ac7f9 | 2 | %bcond_without static_libs # don't build static library |
f271d168 | 3 | %bcond_without doc |
8a1d19fc | 4 | # |
6bccae59 | 5 | Summary: Font configuration and customization tools |
1f073758 ER |
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 | |
542fe095 | 8 | Name: fontconfig |
f271d168 | 9 | Version: 2.10.1 |
af97a4b7 | 10 | Release: 2 |
80708623 | 11 | Epoch: 1 |
542fe095 | 12 | License: MIT |
a2ca8118 | 13 | Group: Libraries |
f972731d | 14 | Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz |
f271d168 | 15 | # Source0-md5: c94e380eea42f2f23ca9537035ef1899 |
76dd18e0 | 16 | Source1: %{name}-lcd-filter.conf |
f7c0bd55 | 17 | Patch0: %{name}-blacklist.patch |
332bb5d4 | 18 | Patch1: %{name}-bitstream-cyberbit.patch |
7d3744a1 | 19 | URL: http://fontconfig.org/ |
542fe095 | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
f271d168 | 22 | %if %{with doc} |
b8cc9f44 | 23 | BuildRequires: docbook-dtd31-sgml |
1f6a3c63 | 24 | BuildRequires: docbook-dtd41-sgml |
2cc361d3 | 25 | BuildRequires: docbook-utils >= 0.6.13-3 |
f271d168 | 26 | %endif |
542fe095 | 27 | BuildRequires: ed |
7d3744a1 | 28 | BuildRequires: expat-devel |
2fb7fe46 | 29 | BuildRequires: freetype-devel >= 2.1.5 |
7d3744a1 | 30 | BuildRequires: libtool |
7fed9776 | 31 | BuildRequires: pkgconfig |
33fde975 | 32 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
613b8d3f | 33 | Requires: freetype >= 2.1.5 |
d1f51495 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
542fe095 | 35 | |
542fe095 | 36 | %description |
37 | Fontconfig is designed to locate fonts within the system and select | |
38 | them according to requirements specified by applications. | |
39 | ||
6bccae59 | 40 | This package contains tools and documentation. |
41 | ||
0fe8c3eb JR |
42 | %description -l pl.UTF-8 |
43 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
44 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
542fe095 | 45 | |
0fe8c3eb | 46 | Paket ten zawiera programy narzędziowe i dokumentację. |
6bccae59 | 47 | |
0fe8c3eb JR |
48 | %description -l pt_BR.UTF-8 |
49 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
48dec51f | 50 | a fontes. |
51 | ||
0fe8c3eb | 52 | Este pacote contém as ferramentas e documentação. |
e625f5c6 | 53 | |
2084b6d9 JB |
54 | %package libs |
55 | Summary: Font configuration and customization library | |
1f073758 ER |
56 | Summary(pl.UTF-8): Biblioteka do konfigurowania fontów |
57 | Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes | |
dc3ae6e7 | 58 | Group: Libraries |
2084b6d9 | 59 | Requires: freetype >= 2.1.5 |
70aeb29b | 60 | Provides: XFree86-fontconfig |
70aeb29b | 61 | Obsoletes: XFree86-fontconfig |
2cc361d3 | 62 | Conflicts: fontconfig <= 1:2.2.98-1 |
2084b6d9 JB |
63 | |
64 | %description libs | |
65 | Fontconfig is designed to locate fonts within the system and select | |
66 | them according to requirements specified by applications. | |
67 | ||
0fe8c3eb JR |
68 | %description libs -l pl.UTF-8 |
69 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
70 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
2084b6d9 | 71 | |
0fe8c3eb JR |
72 | %description libs -l pt_BR.UTF-8 |
73 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
2084b6d9 JB |
74 | a fontes. |
75 | ||
7fed9776 AM |
76 | %package devel |
77 | Summary: Font configuration and customization library - development files | |
1f073758 ER |
78 | Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów |
79 | Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento | |
a2ca8118 | 80 | Group: Development/Libraries |
6bccae59 | 81 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
a025902e | 82 | Requires: expat-devel |
613b8d3f | 83 | Requires: freetype-devel >= 2.1.5 |
a025902e | 84 | Provides: XFree86-fontconfig-devel |
ef58052a | 85 | Obsoletes: XFree86-fontconfig-devel |
542fe095 | 86 | |
87 | %description devel | |
88 | Fontconfig is designed to locate fonts within the system and select | |
89 | them according to requirements specified by applications. | |
90 | ||
91 | This package contains the header files needed to develop programs that | |
92 | use these fontconfig. | |
93 | ||
0fe8c3eb JR |
94 | %description devel -l pl.UTF-8 |
95 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
96 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
542fe095 | 97 | |
0fe8c3eb JR |
98 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania |
99 | programów korzystających z biblioteki fontconfig. | |
542fe095 | 100 | |
0fe8c3eb JR |
101 | %description devel -l pt_BR.UTF-8 |
102 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
e625f5c6 | 103 | a fontes. |
104 | ||
0fe8c3eb JR |
105 | Este pacote contém arquivos de desenvolvimento necessários à criação |
106 | de extensões baseadas na biblioteca fontconfig. | |
48dec51f | 107 | |
a025902e JB |
108 | %package static |
109 | Summary: Static font configuration and customization library | |
1f073758 ER |
110 | Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów |
111 | Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes | |
a025902e | 112 | Group: Development/Libraries |
613b8d3f | 113 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
a025902e JB |
114 | Provides: XFree86-fontconfig-static |
115 | Obsoletes: XFree86-fontconfig-static | |
116 | ||
117 | %description static | |
118 | This package contains static version of fontconfig library. | |
119 | ||
0fe8c3eb JR |
120 | %description static -l pl.UTF-8 |
121 | Ten pakiet zawiera statyczną wersję biblioteki fontconfig. | |
a025902e | 122 | |
0fe8c3eb JR |
123 | %description static -l pt_BR.UTF-8 |
124 | Este pacote contém a biblioteca estática do fontconfig | |
48dec51f | 125 | |
542fe095 | 126 | %prep |
f972731d | 127 | %setup -q |
f7c0bd55 | 128 | %patch0 -p1 |
3ef12d15 | 129 | %patch1 -p1 |
8a1d19fc | 130 | |
542fe095 | 131 | %build |
e625f5c6 | 132 | %{__libtoolize} |
133 | %{__aclocal} | |
542fe095 | 134 | %{__autoconf} |
1898f128 | 135 | %{__autoheader} |
e625f5c6 | 136 | %{__automake} |
3fa7fff0 AM |
137 | |
138 | # don't rebuild docs by default, use prebuild ones | |
139 | export HASDOCBOOK=no | |
140 | ||
cc3e4384 | 141 | %configure \ |
f271d168 | 142 | --%{?with_doc:en}%{!?with_doc:dis}able-docs \ |
30625434 | 143 | --disable-silent-rules \ |
4d2ac7f9 | 144 | %{!?with_static_libs:--disable-static} |
f7c0bd55 | 145 | %{__make} |
542fe095 | 146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
f271d168 | 149 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig} \ |
542fe095 | 150 | |
151 | %{__make} install \ | |
c6dd4c1c JB |
152 | DESTDIR=$RPM_BUILD_ROOT \ |
153 | htmldoc_DATA= \ | |
154 | doc_DATA= | |
f271d168 | 155 | |
76dd18e0 | 156 | install %{SOURCE1} \ |
f271d168 AM |
157 | $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.avail/10-lcd-filter.conf |
158 | ||
159 | ln -s %{_datadir}/%{name}/conf.avail $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail | |
542fe095 | 160 | |
97d755c0 | 161 | cp -pf conf.d/README README.confd |
36a8ce6e | 162 | |
542fe095 | 163 | %clean |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
97d755c0 ER |
166 | %pretrans |
167 | # this needs to be a symlink | |
0ae39400 | 168 | if [ -d %{_sysconfdir}/fonts/conf.avail ] && [ ! -L %{_sysconfdir}/fonts/conf.avail ]; then |
97d755c0 ER |
169 | mv -f %{_sysconfdir}/fonts/conf.avail{,.rpmsave} |
170 | install -d %{_datadir}/%{name}/conf.avail | |
171 | ln -s %{_datadir}/%{name}/conf.avail %{_sysconfdir}/fonts/conf.avail | |
66a7b20e | 172 | mv -f %{_sysconfdir}/fonts/conf.avail.rpmsave/*.conf %{_sysconfdir}/fonts/conf.avail/ |
97d755c0 ER |
173 | fi |
174 | ||
17ff777e | 175 | %post |
1b300991 | 176 | umask 022 |
23fb93ae | 177 | HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || : |
17ff777e | 178 | |
1c88da95 JB |
179 | %post libs -p /sbin/ldconfig |
180 | %postun libs -p /sbin/ldconfig | |
542fe095 | 181 | |
182 | %files | |
183 | %defattr(644,root,root,755) | |
d1deae28 | 184 | %doc AUTHORS COPYING ChangeLog README README.confd doc/fontconfig-user.html |
2084b6d9 JB |
185 | %dir %{_sysconfdir}/fonts |
186 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf | |
97d755c0 | 187 | %{_sysconfdir}/fonts/conf.avail |
f271d168 AM |
188 | %dir %{_datadir}/xml/%{name} |
189 | %{_datadir}/xml/%{name}/fonts.dtd | |
af97a4b7 | 190 | %dir %{_datadir}/%{name} |
f271d168 AM |
191 | %dir %{_datadir}/%{name}/conf.avail |
192 | %{_datadir}/%{name}/conf.avail/*.conf | |
36a8ce6e | 193 | %dir %{_sysconfdir}/fonts/conf.d |
c6dd4c1c | 194 | %{_sysconfdir}/fonts/conf.d/README |
cfe5197f | 195 | %config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf |
2cc361d3 ER |
196 | %attr(755,root,root) %{_bindir}/fc-cache |
197 | %attr(755,root,root) %{_bindir}/fc-cat | |
198 | %attr(755,root,root) %{_bindir}/fc-list | |
199 | %attr(755,root,root) %{_bindir}/fc-match | |
200 | %attr(755,root,root) %{_bindir}/fc-query | |
f8375c1d | 201 | %attr(755,root,root) %{_bindir}/fc-pattern |
2cc361d3 | 202 | %attr(755,root,root) %{_bindir}/fc-scan |
f271d168 | 203 | %if %{with doc} |
5cbeee5b ER |
204 | %{_mandir}/man1/fc-*.1* |
205 | %{_mandir}/man5/fonts-conf.5* | |
f271d168 | 206 | %endif |
0ae39400 | 207 | %dir /var/cache/fontconfig |
5cbeee5b ER |
208 | |
209 | %files libs | |
210 | %defattr(644,root,root,755) | |
c6dd4c1c JB |
211 | %attr(755,root,root) %{_libdir}/libfontconfig.so.*.*.* |
212 | %attr(755,root,root) %ghost %{_libdir}/libfontconfig.so.1 | |
2084b6d9 | 213 | |
542fe095 | 214 | %files devel |
215 | %defattr(644,root,root,755) | |
cc3e4384 | 216 | %doc doc/fontconfig-devel/*.html |
c6dd4c1c JB |
217 | %attr(755,root,root) %{_libdir}/libfontconfig.so |
218 | %{_libdir}/libfontconfig.la | |
a025902e | 219 | %{_includedir}/fontconfig |
542fe095 | 220 | %{_pkgconfigdir}/fontconfig.pc |
f271d168 | 221 | %if %{with doc} |
c6dd4c1c | 222 | %{_mandir}/man3/Fc*.3* |
f271d168 | 223 | %endif |
a025902e | 224 | |
4d2ac7f9 | 225 | %if %{with static_libs} |
a025902e JB |
226 | %files static |
227 | %defattr(644,root,root,755) | |
c6dd4c1c | 228 | %{_libdir}/libfontconfig.a |
4d2ac7f9 | 229 | %endif |