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