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