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