]>
Commit | Line | Data |
---|---|---|
4548a4b0 | 1 | # |
77eb1db2 | 2 | # Conditional build: |
8b1c8047 | 3 | %bcond_without apidocs # disable gtk-doc |
784f3728 | 4 | %bcond_without libthai # don't build thai-lang module |
8b1c8047 | 5 | %bcond_without static_libs # don't build static library |
77eb1db2 | 6 | # |
22c8cfb6 | 7 | Summary: System for layout and rendering of internationalized text |
f5b08396 ER |
8 | Summary(pl.UTF-8): System renderowania międzynarodowego tekstu |
9 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
22c8cfb6 | 10 | Name: pango |
fbd6b515 | 11 | Version: 1.20.2 |
4da5ed51 | 12 | Release: 1 |
fe0b7782 | 13 | Epoch: 1 |
4c82e71c | 14 | License: LGPL v2+ |
712888e1 | 15 | Group: X11/Libraries |
0cafb066 | 16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.20/%{name}-%{version}.tar.bz2 |
fbd6b515 | 17 | # Source0-md5: b90d82bb5a92c7dd346c1eac97285e37 |
63327410 | 18 | Patch0: %{name}-xfonts.patch |
10f70466 | 19 | Patch1: %{name}-arch_confdir.patch |
b7f89dff | 20 | Patch2: %{name}-lt.patch |
22c8cfb6 | 21 | URL: http://www.pango.org/ |
d58e4b98 | 22 | BuildRequires: autoconf >= 2.59-9 |
21f2d1ad | 23 | BuildRequires: automake >= 1:1.9 |
2477e965 | 24 | BuildRequires: cairo-devel >= 1.4.10 |
6d53487d | 25 | BuildRequires: docbook-dtd412-xml |
26 | BuildRequires: docbook-style-xsl | |
08f039cf | 27 | BuildRequires: fontconfig-devel >= 1:2.4.0 |
6d53487d | 28 | BuildRequires: freetype-devel >= 2.1.7 |
4da5ed51 | 29 | BuildRequires: glib2-devel >= 1:2.16.3 |
21f2d1ad MB |
30 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
31 | BuildRequires: gtk-doc-automake >= 1.8 | |
2477e965 | 32 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} |
dc501d35 | 33 | BuildRequires: libtool >= 1:1.4.2-9 |
9526067d | 34 | BuildRequires: perl-base |
fc102159 | 35 | BuildRequires: pkgconfig |
7aad84ab | 36 | BuildRequires: rpmbuild(macros) >= 1.197 |
f67517b7 ER |
37 | BuildRequires: xorg-lib-libX11-devel |
38 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 | |
2477e965 | 39 | Requires: cairo >= 1.4.10 |
6d53487d | 40 | Requires: freetype >= 2.1.7 |
4da5ed51 | 41 | Requires: glib2 >= 1:2.16.3 |
54fdbbf8 | 42 | Obsoletes: libpango24 |
f28958a9 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6b89e6e | 44 | |
634277e1 | 45 | %if "%{_lib}" != "lib" |
76097e70 | 46 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) |
ea049355 JB |
47 | %define _sysconfdir /etc/%{name}%{libext} |
48 | %define pqext -%{libext} | |
634277e1 ER |
49 | %else |
50 | %define _sysconfdir /etc/%{name} | |
ea049355 | 51 | %define pqext %{nil} |
634277e1 ER |
52 | %endif |
53 | ||
a6b89e6e | 54 | %description |
55 | System for layout and rendering of internationalized text. | |
56 | ||
22bfacc6 JR |
57 | %description -l pl.UTF-8 |
58 | System obsługi i renderowania międzynarodowego tekstu. | |
a6bc9fc7 | 59 | |
22bfacc6 JR |
60 | %description -l pt_BR.UTF-8 |
61 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 62 | internacionalizado. |
63 | ||
a6b89e6e | 64 | %package devel |
22c8cfb6 | 65 | Summary: System for layout and rendering of internationalized text |
f5b08396 ER |
66 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu |
67 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
712888e1 | 68 | Group: X11/Development/Libraries |
fe0b7782 | 69 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2477e965 | 70 | Requires: cairo-devel >= 1.4.10 |
6d53487d | 71 | Requires: freetype-devel >= 2.1.7 |
4da5ed51 | 72 | Requires: glib2-devel >= 1:2.16.3 |
f67517b7 ER |
73 | Requires: xorg-lib-libX11-devel |
74 | Requires: xorg-lib-libXft-devel >= 2.1.0 | |
54fdbbf8 | 75 | Obsoletes: libpango24-devel |
a6b89e6e | 76 | |
77 | %description devel | |
a6bc9fc7 AM |
78 | Developer files for pango. |
79 | ||
22bfacc6 | 80 | %description devel -l pl.UTF-8 |
a6bc9fc7 | 81 | Pliki developerskie pango. |
a6b89e6e | 82 | |
22bfacc6 JR |
83 | %description devel -l pt_BR.UTF-8 |
84 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 85 | internacionalizado. |
86 | ||
89bc8f01 | 87 | %package static |
73d98c3b | 88 | Summary: Static pango libraries |
f5b08396 ER |
89 | Summary(pl.UTF-8): Biblioteki statyczne pango |
90 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
712888e1 | 91 | Group: X11/Development/Libraries |
fe0b7782 | 92 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
89bc8f01 | 93 | |
94 | %description static | |
73d98c3b | 95 | Static pango libraries. |
89bc8f01 | 96 | |
22bfacc6 | 97 | %description static -l pl.UTF-8 |
73d98c3b | 98 | Biblioteki statyczne pango. |
89bc8f01 | 99 | |
22bfacc6 JR |
100 | %description static -l pt_BR.UTF-8 |
101 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 102 | internacionalizado. |
103 | ||
518211d5 | 104 | %package modules |
105 | Summary: System for layout and rendering of internationalized text | |
f5b08396 ER |
106 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu |
107 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
518211d5 | 108 | Group: X11/Development/Libraries |
f7e43318 | 109 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} |
fe0b7782 | 110 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2477e965 | 111 | %{?with_libthai:Requires: libthai >= 0.1.9} |
518211d5 | 112 | |
113 | %description modules | |
114 | System for layout and rendering of internationalized text. | |
115 | ||
116 | This package contains pango modules for: arabic, bengali, devanagari, | |
117 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
118 | ||
22bfacc6 JR |
119 | %description modules -l pl.UTF-8 |
120 | System obsługi i renderowania międzynarodowego tekstu. | |
518211d5 | 121 | |
22bfacc6 | 122 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, |
518211d5 | 123 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. |
124 | ||
22bfacc6 JR |
125 | %description modules -l pt_BR.UTF-8 |
126 | Pango é um sistema para layout e renderização de texto | |
518211d5 | 127 | internacionalizado. |
128 | ||
21e03050 JB |
129 | %package apidocs |
130 | Summary: Pango API documentation | |
f5b08396 | 131 | Summary(pl.UTF-8): Dokumentacja API pango |
21e03050 JB |
132 | Group: Documentation |
133 | Requires: gtk-doc-common | |
134 | ||
135 | %description apidocs | |
136 | Pango API documentation. | |
137 | ||
22bfacc6 | 138 | %description apidocs -l pl.UTF-8 |
21e03050 JB |
139 | Dokumentacja API pango. |
140 | ||
9b50e132 MB |
141 | %package examples |
142 | Summary: pango - example programs | |
143 | Summary(pl.UTF-8): pango - przykładowe programy | |
144 | Group: X11/Development/Libraries | |
145 | ||
146 | %description examples | |
147 | pango - example programs. | |
148 | ||
149 | %description examples -l pl.UTF-8 | |
150 | pango - przykładowe programy. | |
151 | ||
a6b89e6e | 152 | %prep |
a08120ab | 153 | %setup -q |
63327410 | 154 | %patch0 -p1 |
634277e1 | 155 | %patch1 -p1 |
b7f89dff | 156 | %patch2 -p1 |
a6b89e6e | 157 | |
158 | %build | |
af50b274 | 159 | %{?with_apidocs:%{__gtkdocize}} |
712888e1 | 160 | %{__libtoolize} |
edaf2e5e | 161 | %{__aclocal} |
6d53487d | 162 | %{__autoheader} |
80dcac95 | 163 | %{__autoconf} |
164 | %{__automake} | |
910f71d7 | 165 | %configure \ |
6d53487d | 166 | --with-fribidi \ |
6a098db5 | 167 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
81fb499f | 168 | --with-html-dir=%{_gtkdocdir} \ |
6a098db5 | 169 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
96c1d115 | 170 | --enable-debug=%{?debug:yes}%{!?debug:minimum} \ |
6d53487d | 171 | --enable-man |
5b1dbc1c | 172 | %{__make} |
a6b89e6e | 173 | |
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
9b50e132 | 176 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a6bc9fc7 | 177 | |
910f71d7 AM |
178 | %{__make} install \ |
179 | DESTDIR=$RPM_BUILD_ROOT \ | |
dc501d35 JB |
180 | pkgconfigdir=%{_pkgconfigdir} |
181 | ||
634277e1 | 182 | > $RPM_BUILD_ROOT%{_sysconfdir}/pango.modules |
7893a0d3 | 183 | |
9b50e132 MB |
184 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
185 | ||
ab43d7c1 | 186 | %if "%{_lib}" != "lib" |
97e8a32e MB |
187 | # We need to have 32-bit and 64-bit pango-querymodules binaries |
188 | # as they have hardcoded LIBDIR. | |
189 | # (needed when multilib is used) | |
ea049355 | 190 | mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules{,%{pqext}} |
97e8a32e | 191 | # fix man page too |
ea049355 | 192 | mv $RPM_BUILD_ROOT%{_mandir}/man1/pango-querymodules{,%{pqext}}.1 |
ab43d7c1 | 193 | %endif |
97e8a32e | 194 | |
63327410 | 195 | # useless (modules loaded through libgmodule) |
21f2d1ad | 196 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a} |
bfee300a | 197 | |
81fb499f ER |
198 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/pango} |
199 | ||
a6b89e6e | 200 | %clean |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %post | |
0b53ddd6 | 204 | /sbin/ldconfig |
35f8c7dd | 205 | umask 022 |
ea049355 | 206 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules |
6d53487d | 207 | exit 0 |
a6b89e6e | 208 | |
0b53ddd6 | 209 | %postun -p /sbin/ldconfig |
fc102159 | 210 | |
518211d5 | 211 | %post modules |
212 | umask 022 | |
ea049355 | 213 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules |
6d53487d | 214 | exit 0 |
518211d5 | 215 | |
216 | %postun modules | |
217 | umask 022 | |
ea049355 | 218 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules |
6d53487d | 219 | exit 0 |
518211d5 | 220 | |
a6b89e6e | 221 | %files |
22c8cfb6 | 222 | %defattr(644,root,root,755) |
21f2d1ad | 223 | %doc AUTHORS ChangeLog HACKING NEWS README THANKS |
ea049355 | 224 | %attr(755,root,root) %{_bindir}/pango-querymodules%{pqext} |
21e03050 | 225 | %attr(755,root,root) %{_bindir}/pango-view |
21f2d1ad | 226 | %attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.* |
ea049355 | 227 | %attr(755,root,root) %ghost %{_libdir}/libpango-1.0.so.0 |
21f2d1ad | 228 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.* |
ea049355 | 229 | %attr(755,root,root) %ghost %{_libdir}/libpangocairo-1.0.so.0 |
21f2d1ad | 230 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.* |
ea049355 | 231 | %attr(755,root,root) %ghost %{_libdir}/libpangoft2-1.0.so.0 |
21f2d1ad | 232 | %attr(755,root,root) %{_libdir}/libpangox-1.0.so.*.*.* |
ea049355 | 233 | %attr(755,root,root) %ghost %{_libdir}/libpangox-1.0.so.0 |
21f2d1ad | 234 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.* |
ea049355 | 235 | %attr(755,root,root) %ghost %{_libdir}/libpangoxft-1.0.so.0 |
7893a0d3 | 236 | %dir %{_libdir}/pango |
21f2d1ad MB |
237 | %dir %{_libdir}/pango/1.6.0 |
238 | %dir %{_libdir}/pango/1.6.0/modules | |
239 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-basic-fc.so | |
240 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-basic-x.so | |
634277e1 ER |
241 | %dir %{_sysconfdir} |
242 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pangox.aliases | |
243 | %ghost %{_sysconfdir}/pango.modules | |
ea049355 | 244 | %{_mandir}/man1/pango-querymodules%{pqext}.1* |
910f71d7 | 245 | |
a6b89e6e | 246 | %files devel |
22c8cfb6 | 247 | %defattr(644,root,root,755) |
21f2d1ad MB |
248 | %attr(755,root,root) %{_libdir}/libpango-1.0.so |
249 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
250 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
251 | %attr(755,root,root) %{_libdir}/libpangox-1.0.so | |
252 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so | |
253 | %{_libdir}/libpango-1.0.la | |
254 | %{_libdir}/libpangocairo-1.0.la | |
255 | %{_libdir}/libpangoft2-1.0.la | |
256 | %{_libdir}/libpangox-1.0.la | |
257 | %{_libdir}/libpangoxft-1.0.la | |
258 | %{_pkgconfigdir}/pango.pc | |
259 | %{_pkgconfigdir}/pangocairo.pc | |
260 | %{_pkgconfigdir}/pangoft2.pc | |
261 | %{_pkgconfigdir}/pangox.pc | |
262 | %{_pkgconfigdir}/pangoxft.pc | |
263 | %{_includedir}/pango-1.0 | |
89bc8f01 | 264 | |
7b311967 | 265 | %if %{with static_libs} |
89bc8f01 | 266 | %files static |
267 | %defattr(644,root,root,755) | |
21f2d1ad MB |
268 | %{_libdir}/libpango-1.0.a |
269 | %{_libdir}/libpangocairo-1.0.a | |
270 | %{_libdir}/libpangoft2-1.0.a | |
271 | %{_libdir}/libpangox-1.0.a | |
272 | %{_libdir}/libpangoxft-1.0.a | |
7b311967 | 273 | %endif |
518211d5 | 274 | |
275 | %files modules | |
276 | %defattr(644,root,root,755) | |
21f2d1ad MB |
277 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-arabic-fc.so |
278 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-arabic-lang.so | |
279 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-hangul-fc.so | |
280 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-hebrew-fc.so | |
281 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-indic-fc.so | |
282 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-indic-lang.so | |
283 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-khmer-fc.so | |
284 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-syriac-fc.so | |
285 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-thai-fc.so | |
784f3728 JB |
286 | %if %{with libthai} |
287 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-thai-lang.so | |
288 | %endif | |
21f2d1ad MB |
289 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-tibetan-fc.so |
290 | %exclude %{_libdir}/pango/1.6.0/modules/pango-basic-fc.so | |
291 | %exclude %{_libdir}/pango/1.6.0/modules/pango-basic-x.so | |
21e03050 JB |
292 | |
293 | %if %{with apidocs} | |
294 | %files apidocs | |
295 | %defattr(644,root,root,755) | |
296 | %{_gtkdocdir}/pango | |
297 | %endif | |
9b50e132 MB |
298 | |
299 | %files examples | |
300 | %defattr(644,root,root,755) | |
301 | %{_examplesdir}/%{name}-%{version} |