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