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