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