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