]>
Commit | Line | Data |
---|---|---|
8a1d19fc JB |
1 | # |
2 | # Conditional build | |
3 | %bcond_with bytecode # use bytecode hinting instead of autohinting by default | |
4d2ac7f9 | 4 | %bcond_without static_libs # don't build static library |
8a1d19fc | 5 | # |
6bccae59 | 6 | Summary: Font configuration and customization tools |
0fe8c3eb JR |
7 | Summary(pl.UTF-8): Narzędzia do konfigurowania fontów |
8 | Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes | |
542fe095 | 9 | Name: fontconfig |
9ec77b60 JB |
10 | Version: 2.4.2 |
11 | Release: 1 | |
80708623 | 12 | Epoch: 1 |
542fe095 | 13 | License: MIT |
a2ca8118 | 14 | Group: Libraries |
3ef12d15 | 15 | Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz |
9ec77b60 | 16 | # Source0-md5: f035852f521b54677f2b5c9e2f6d54a4 |
f7c0bd55 | 17 | Patch0: %{name}-blacklist.patch |
3ef12d15 | 18 | Patch1: %{name}-autohint.patch |
7d3744a1 | 19 | URL: http://fontconfig.org/ |
542fe095 | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
1f6a3c63 JB |
22 | BuildRequires: docbook-utils >= 0.6.13-3 |
23 | BuildRequires: docbook-dtd41-sgml | |
542fe095 | 24 | BuildRequires: ed |
7d3744a1 | 25 | BuildRequires: expat-devel |
2fb7fe46 | 26 | BuildRequires: freetype-devel >= 2.1.5 |
7d3744a1 | 27 | BuildRequires: libtool |
7fed9776 | 28 | BuildRequires: pkgconfig |
33fde975 | 29 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
613b8d3f | 30 | Requires: freetype >= 2.1.5 |
d1f51495 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
542fe095 | 32 | |
542fe095 | 33 | %description |
34 | Fontconfig is designed to locate fonts within the system and select | |
35 | them according to requirements specified by applications. | |
36 | ||
6bccae59 | 37 | This package contains tools and documentation. |
38 | ||
0fe8c3eb JR |
39 | %description -l pl.UTF-8 |
40 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
41 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
542fe095 | 42 | |
0fe8c3eb | 43 | Paket ten zawiera programy narzędziowe i dokumentację. |
6bccae59 | 44 | |
0fe8c3eb JR |
45 | %description -l pt_BR.UTF-8 |
46 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
48dec51f | 47 | a fontes. |
48 | ||
0fe8c3eb | 49 | Este pacote contém as ferramentas e documentação. |
e625f5c6 | 50 | |
2084b6d9 JB |
51 | %package libs |
52 | Summary: Font configuration and customization library | |
0fe8c3eb JR |
53 | Summary(pl.UTF-8): Biblioteka do konfigurowania fontów |
54 | Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes | |
2084b6d9 JB |
55 | Group: Development/Libraries |
56 | Requires: freetype >= 2.1.5 | |
70aeb29b | 57 | Provides: XFree86-fontconfig |
2084b6d9 | 58 | Conflicts: fontconfig <= 1:2.2.98-1 |
70aeb29b | 59 | Obsoletes: XFree86-fontconfig |
2084b6d9 JB |
60 | |
61 | %description libs | |
62 | Fontconfig is designed to locate fonts within the system and select | |
63 | them according to requirements specified by applications. | |
64 | ||
0fe8c3eb JR |
65 | %description libs -l pl.UTF-8 |
66 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
67 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
2084b6d9 | 68 | |
0fe8c3eb JR |
69 | %description libs -l pt_BR.UTF-8 |
70 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
2084b6d9 JB |
71 | a fontes. |
72 | ||
7fed9776 AM |
73 | %package devel |
74 | Summary: Font configuration and customization library - development files | |
0fe8c3eb JR |
75 | Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów |
76 | Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento | |
a2ca8118 | 77 | Group: Development/Libraries |
6bccae59 | 78 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
a025902e | 79 | Requires: expat-devel |
613b8d3f | 80 | Requires: freetype-devel >= 2.1.5 |
a025902e | 81 | Provides: XFree86-fontconfig-devel |
ef58052a | 82 | Obsoletes: XFree86-fontconfig-devel |
542fe095 | 83 | |
84 | %description devel | |
85 | Fontconfig is designed to locate fonts within the system and select | |
86 | them according to requirements specified by applications. | |
87 | ||
88 | This package contains the header files needed to develop programs that | |
89 | use these fontconfig. | |
90 | ||
0fe8c3eb JR |
91 | %description devel -l pl.UTF-8 |
92 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
93 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
542fe095 | 94 | |
0fe8c3eb JR |
95 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania |
96 | programów korzystających z biblioteki fontconfig. | |
542fe095 | 97 | |
0fe8c3eb JR |
98 | %description devel -l pt_BR.UTF-8 |
99 | Fontconfig é uma biblioteca para configuração e customização do acesso | |
e625f5c6 | 100 | a fontes. |
101 | ||
0fe8c3eb JR |
102 | Este pacote contém arquivos de desenvolvimento necessários à criação |
103 | de extensões baseadas na biblioteca fontconfig. | |
48dec51f | 104 | |
a025902e JB |
105 | %package static |
106 | Summary: Static font configuration and customization library | |
0fe8c3eb JR |
107 | Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów |
108 | Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes | |
a025902e | 109 | Group: Development/Libraries |
613b8d3f | 110 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
a025902e JB |
111 | Provides: XFree86-fontconfig-static |
112 | Obsoletes: XFree86-fontconfig-static | |
113 | ||
114 | %description static | |
115 | This package contains static version of fontconfig library. | |
116 | ||
0fe8c3eb JR |
117 | %description static -l pl.UTF-8 |
118 | Ten pakiet zawiera statyczną wersję biblioteki fontconfig. | |
a025902e | 119 | |
0fe8c3eb JR |
120 | %description static -l pt_BR.UTF-8 |
121 | Este pacote contém a biblioteca estática do fontconfig | |
48dec51f | 122 | |
542fe095 | 123 | %prep |
061f6061 | 124 | %setup -q |
f7c0bd55 | 125 | %patch0 -p1 |
a8c0e865 | 126 | %if %{with bytecode} |
3ef12d15 | 127 | %patch1 -p1 |
a8c0e865 | 128 | %endif |
8a1d19fc | 129 | |
542fe095 | 130 | %build |
e625f5c6 | 131 | %{__libtoolize} |
132 | %{__aclocal} | |
542fe095 | 133 | %{__autoconf} |
1898f128 | 134 | %{__autoheader} |
e625f5c6 | 135 | %{__automake} |
cc3e4384 | 136 | %configure \ |
4d2ac7f9 KK |
137 | --disable-docs \ |
138 | %{!?with_static_libs:--disable-static} | |
f7c0bd55 | 139 | %{__make} |
542fe095 | 140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
7fed9776 | 143 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig} |
542fe095 | 144 | |
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
cc3e4384 AM |
148 | install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 |
149 | install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
542fe095 | 150 | |
36a8ce6e JB |
151 | cp -f conf.d/README README.confd |
152 | ||
542fe095 | 153 | %clean |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
17ff777e | 156 | %post |
1b300991 | 157 | umask 022 |
23fb93ae | 158 | HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || : |
17ff777e | 159 | |
1c88da95 JB |
160 | %post libs -p /sbin/ldconfig |
161 | %postun libs -p /sbin/ldconfig | |
542fe095 | 162 | |
163 | %files | |
164 | %defattr(644,root,root,755) | |
36a8ce6e | 165 | %doc AUTHORS COPYING ChangeLog README README.confd |
542fe095 | 166 | %attr(755,root,root) %{_bindir}/fc-* |
ca6f293f | 167 | %{_mandir}/man1/*.1* |
78cb2e6e | 168 | %{_mandir}/man5/*.5* |
7fed9776 | 169 | /var/cache/fontconfig |
542fe095 | 170 | |
2084b6d9 JB |
171 | %files libs |
172 | %defattr(644,root,root,755) | |
173 | %dir %{_sysconfdir}/fonts | |
174 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf | |
2084b6d9 | 175 | %{_sysconfdir}/fonts/fonts.dtd |
dd71a74b JB |
176 | %dir %{_sysconfdir}/fonts/conf.avail |
177 | %{_sysconfdir}/fonts/conf.avail/*.conf | |
178 | %{_sysconfdir}/fonts/conf.avail/README | |
36a8ce6e | 179 | %dir %{_sysconfdir}/fonts/conf.d |
cfe5197f | 180 | %config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf |
2084b6d9 JB |
181 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
182 | ||
542fe095 | 183 | %files devel |
184 | %defattr(644,root,root,755) | |
cc3e4384 | 185 | %doc doc/fontconfig-devel/*.html |
a025902e | 186 | %attr(755,root,root) %{_libdir}/lib*.so |
78cb2e6e | 187 | %{_libdir}/lib*.la |
a025902e | 188 | %{_includedir}/fontconfig |
542fe095 | 189 | %{_pkgconfigdir}/fontconfig.pc |
ca6f293f | 190 | %{_mandir}/man3/*.3* |
a025902e | 191 | |
4d2ac7f9 | 192 | %if %{with static_libs} |
a025902e JB |
193 | %files static |
194 | %defattr(644,root,root,755) | |
195 | %{_libdir}/lib*.a | |
4d2ac7f9 | 196 | %endif |