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