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