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