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