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