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