]>
Commit | Line | Data |
---|---|---|
4548a4b0 | 1 | # |
77eb1db2 | 2 | # Conditional build: |
aefc3a30 | 3 | %bcond_without apidocs # gi documentation |
5f8250c9 JB |
4 | %bcond_without libthai # thai-lang module |
5 | %bcond_with sysprof # sysprof tracing support | |
239a12cd | 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 |
e48c9eb8 | 11 | Version: 1.50.5 |
3b48669b | 12 | Release: 1 |
fe0b7782 | 13 | Epoch: 1 |
4c82e71c | 14 | License: LGPL v2+ |
712888e1 | 15 | Group: X11/Libraries |
9e199643 | 16 | Source0: https://download.gnome.org/sources/pango/1.50/%{name}-%{version}.tar.xz |
e48c9eb8 | 17 | # Source0-md5: d39e73b14c9dd9bed7fc9d8db8381b1f |
57fc5620 | 18 | URL: https://pango.gnome.org/ |
f8016c2f | 19 | # cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib |
5d95bfd7 JB |
20 | BuildRequires: cairo-devel >= 1.12.10 |
21 | BuildRequires: cairo-gobject-devel >= 1.12.10 | |
6d53487d | 22 | BuildRequires: docbook-dtd412-xml |
23 | BuildRequires: docbook-style-xsl | |
9e199643 | 24 | BuildRequires: fontconfig-devel >= 1:2.13.0 |
6d53487d | 25 | BuildRequires: freetype-devel >= 2.1.7 |
6ace56b6 | 26 | BuildRequires: fribidi-devel >= 1.0.6 |
c5af4488 | 27 | %if %{with apidocs} |
aefc3a30 | 28 | BuildRequires: gi-docgen >= 2021.1 |
c5af4488 | 29 | %endif |
111cab06 | 30 | BuildRequires: glib2-devel >= 1:2.68.0 |
aefc3a30 | 31 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
c7f8ca97 | 32 | BuildRequires: harfbuzz-devel >= 2.6.0 |
7cf5e600 | 33 | BuildRequires: harfbuzz-gobject-devel >= 2.6.0 |
d9a0def0 | 34 | BuildRequires: help2man |
2477e965 | 35 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} |
8a6d1297 | 36 | BuildRequires: meson >= 0.55.3 |
21710c38 | 37 | BuildRequires: ninja >= 1.5 |
9526067d | 38 | BuildRequires: perl-base |
fc102159 | 39 | BuildRequires: pkgconfig |
1ad2b379 | 40 | BuildRequires: python-modules |
aefc3a30 | 41 | BuildRequires: rpm-build >= 4.6 |
5f8250c9 JB |
42 | BuildRequires: rpmbuild(macros) >= 1.752 |
43 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.38} | |
8a548634 | 44 | BuildRequires: tar >= 1:1.22 |
f67517b7 ER |
45 | BuildRequires: xorg-lib-libX11-devel |
46 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 | |
f8016c2f | 47 | BuildRequires: xorg-lib-libXrender-devel |
8a548634 | 48 | BuildRequires: xz |
5d95bfd7 | 49 | Requires: cairo >= 1.12.10 |
9e199643 | 50 | Requires: fontconfig-libs >= 1:2.13.0 |
6d53487d | 51 | Requires: freetype >= 2.1.7 |
6ace56b6 | 52 | Requires: fribidi >= 1.0.6 |
111cab06 | 53 | Requires: glib2 >= 1:2.68.0 |
c7f8ca97 | 54 | Requires: harfbuzz >= 2.6.0 |
54fdbbf8 | 55 | Obsoletes: libpango24 |
5932fede | 56 | Obsoletes: pango-modules < 1:1.38.0-1 |
f28958a9 | 57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6b89e6e | 58 | |
a6b89e6e | 59 | %description |
60 | System for layout and rendering of internationalized text. | |
61 | ||
22bfacc6 JR |
62 | %description -l pl.UTF-8 |
63 | System obsługi i renderowania międzynarodowego tekstu. | |
a6bc9fc7 | 64 | |
22bfacc6 JR |
65 | %description -l pt_BR.UTF-8 |
66 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 67 | internacionalizado. |
68 | ||
3d718a03 JP |
69 | %package tools |
70 | Summary: Pango tools | |
71 | Summary(pl.UTF-8): Narzędzia pango | |
a15f5a43 JR |
72 | Group: X11/Applications |
73 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b3796e2b JB |
74 | # "gm convert" optionally used in pango-view |
75 | Suggests: GraphicsMagick | |
3d718a03 | 76 | Obsoletes: pango-view < 1:1.42.2 |
a15f5a43 | 77 | |
3d718a03 JP |
78 | %description tools |
79 | Pango tools: | |
80 | - text viewer | |
81 | - list availabe fonts | |
a15f5a43 | 82 | |
3d718a03 JP |
83 | %description tools -l pl.UTF-8 |
84 | Narzędzia pango: | |
85 | - przeglądarka tekstu | |
86 | - wyświetlanie dostępnych fontów | |
a15f5a43 | 87 | |
a6b89e6e | 88 | %package devel |
01a1eef9 JB |
89 | Summary: Header files for Pango libraries |
90 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Pango | |
712888e1 | 91 | Group: X11/Development/Libraries |
fe0b7782 | 92 | Requires: %{name} = %{epoch}:%{version}-%{release} |
5d95bfd7 | 93 | Requires: cairo-devel >= 1.12.10 |
9e199643 | 94 | Requires: fontconfig-devel >= 1:2.13.0 |
6d53487d | 95 | Requires: freetype-devel >= 2.1.7 |
6ace56b6 | 96 | Requires: fribidi-devel >= 1.0.6 |
111cab06 | 97 | Requires: glib2-devel >= 1:2.68.0 |
c7f8ca97 | 98 | Requires: harfbuzz-devel >= 2.6.0 |
5abf4470 | 99 | %{?with_libthai:Requires: libthai-devel >= 0.1.9} |
f67517b7 ER |
100 | Requires: xorg-lib-libX11-devel |
101 | Requires: xorg-lib-libXft-devel >= 2.1.0 | |
54fdbbf8 | 102 | Obsoletes: libpango24-devel |
a6b89e6e | 103 | |
104 | %description devel | |
01a1eef9 | 105 | Header files for Pango libraries. |
a6bc9fc7 | 106 | |
22bfacc6 | 107 | %description devel -l pl.UTF-8 |
01a1eef9 | 108 | Pliki nagłówkowe bibliotek Pango. |
ce4a83d9 | 109 | |
89bc8f01 | 110 | %package static |
73d98c3b | 111 | Summary: Static pango libraries |
f5b08396 | 112 | Summary(pl.UTF-8): Biblioteki statyczne pango |
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 | |
518211d5 | 122 | %package modules |
01a1eef9 JB |
123 | Summary: Pango modules for various scripts |
124 | Summary(pl.UTF-8): Moduły Pango dla różnych systemów pisma | |
518211d5 | 125 | Group: X11/Development/Libraries |
f7e43318 | 126 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} |
fe0b7782 | 127 | Requires: %{name} = %{epoch}:%{version}-%{release} |
75372f11 | 128 | %{?with_libthai:Requires: libthai >= 0.1.9} |
518211d5 | 129 | |
130 | %description modules | |
01a1eef9 | 131 | Pango is a system for layout and rendering of internationalized text. |
518211d5 | 132 | |
133 | This package contains pango modules for: arabic, bengali, devanagari, | |
134 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
135 | ||
22bfacc6 | 136 | %description modules -l pl.UTF-8 |
01a1eef9 | 137 | Pango to system obsługi i renderowania międzynarodowego tekstu. |
518211d5 | 138 | |
22bfacc6 | 139 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, |
518211d5 | 140 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. |
141 | ||
21e03050 JB |
142 | %package apidocs |
143 | Summary: Pango API documentation | |
f5b08396 | 144 | Summary(pl.UTF-8): Dokumentacja API pango |
21e03050 JB |
145 | Group: Documentation |
146 | Requires: gtk-doc-common | |
75415767 | 147 | BuildArch: noarch |
21e03050 JB |
148 | |
149 | %description apidocs | |
150 | Pango API documentation. | |
151 | ||
22bfacc6 | 152 | %description apidocs -l pl.UTF-8 |
21e03050 JB |
153 | Dokumentacja API pango. |
154 | ||
9b50e132 MB |
155 | %package examples |
156 | Summary: pango - example programs | |
157 | Summary(pl.UTF-8): pango - przykładowe programy | |
158 | Group: X11/Development/Libraries | |
75415767 | 159 | BuildArch: noarch |
9b50e132 MB |
160 | |
161 | %description examples | |
162 | pango - example programs. | |
163 | ||
164 | %description examples -l pl.UTF-8 | |
165 | pango - przykładowe programy. | |
166 | ||
a6b89e6e | 167 | %prep |
a08120ab | 168 | %setup -q |
a6b89e6e | 169 | |
170 | %build | |
300b5824 | 171 | %meson build \ |
5f8250c9 JB |
172 | -Dgtk_doc=%{__true_false apidocs} \ |
173 | %{?with_sysprof:-Dsysprof=enabled} | |
300b5824 JP |
174 | |
175 | %ninja_build -C build | |
a6b89e6e | 176 | |
177 | %install | |
178 | rm -rf $RPM_BUILD_ROOT | |
5932fede | 179 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a6bc9fc7 | 180 | |
300b5824 | 181 | %ninja_install -C build |
dc501d35 | 182 | |
a79fde6b | 183 | %if %{with apidocs} |
aefc3a30 JB |
184 | # FIXME: where to package gi-docgen generated docs? |
185 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
1ab93d7d | 186 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/pango/reference/* $RPM_BUILD_ROOT%{_gtkdocdir} |
a79fde6b | 187 | %endif |
aefc3a30 | 188 | |
9b50e132 MB |
189 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
190 | ||
a6b89e6e | 191 | %clean |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
8fc43188 JB |
194 | %post -p /sbin/ldconfig |
195 | %postun -p /sbin/ldconfig | |
fc102159 | 196 | |
a6b89e6e | 197 | %files |
22c8cfb6 | 198 | %defattr(644,root,root,755) |
300b5824 | 199 | %doc NEWS README.md THANKS |
21f2d1ad | 200 | %attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.* |
ea049355 | 201 | %attr(755,root,root) %ghost %{_libdir}/libpango-1.0.so.0 |
21f2d1ad | 202 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.* |
ea049355 | 203 | %attr(755,root,root) %ghost %{_libdir}/libpangocairo-1.0.so.0 |
21f2d1ad | 204 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.* |
ea049355 | 205 | %attr(755,root,root) %ghost %{_libdir}/libpangoft2-1.0.so.0 |
21f2d1ad | 206 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.* |
ea049355 | 207 | %attr(755,root,root) %ghost %{_libdir}/libpangoxft-1.0.so.0 |
21710c38 JB |
208 | %{_libdir}/girepository-1.0/Pango-1.0.typelib |
209 | %{_libdir}/girepository-1.0/PangoCairo-1.0.typelib | |
210 | %{_libdir}/girepository-1.0/PangoFT2-1.0.typelib | |
e92618c7 JP |
211 | %{_libdir}/girepository-1.0/PangoFc-1.0.typelib |
212 | %{_libdir}/girepository-1.0/PangoOT-1.0.typelib | |
21710c38 | 213 | %{_libdir}/girepository-1.0/PangoXft-1.0.typelib |
a15f5a43 | 214 | |
3d718a03 | 215 | %files tools |
a15f5a43 | 216 | %defattr(644,root,root,755) |
3d718a03 | 217 | %attr(755,root,root) %{_bindir}/pango-list |
a2ebded1 | 218 | %attr(755,root,root) %{_bindir}/pango-segmentation |
a15f5a43 | 219 | %attr(755,root,root) %{_bindir}/pango-view |
5f9c4bf0 | 220 | %{_mandir}/man1/pango-view.1* |
910f71d7 | 221 | |
a6b89e6e | 222 | %files devel |
22c8cfb6 | 223 | %defattr(644,root,root,755) |
21f2d1ad MB |
224 | %attr(755,root,root) %{_libdir}/libpango-1.0.so |
225 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
226 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
21f2d1ad | 227 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so |
21710c38 JB |
228 | %{_datadir}/gir-1.0/Pango-1.0.gir |
229 | %{_datadir}/gir-1.0/PangoCairo-1.0.gir | |
230 | %{_datadir}/gir-1.0/PangoFT2-1.0.gir | |
e92618c7 JP |
231 | %{_datadir}/gir-1.0/PangoFc-1.0.gir |
232 | %{_datadir}/gir-1.0/PangoOT-1.0.gir | |
21710c38 JB |
233 | %{_datadir}/gir-1.0/PangoXft-1.0.gir |
234 | %{_includedir}/pango-1.0 | |
21f2d1ad MB |
235 | %{_pkgconfigdir}/pango.pc |
236 | %{_pkgconfigdir}/pangocairo.pc | |
7cf5e600 | 237 | %{_pkgconfigdir}/pangofc.pc |
21f2d1ad | 238 | %{_pkgconfigdir}/pangoft2.pc |
7cf5e600 | 239 | %{_pkgconfigdir}/pangoot.pc |
21f2d1ad | 240 | %{_pkgconfigdir}/pangoxft.pc |
89bc8f01 | 241 | |
242 | %files static | |
243 | %defattr(644,root,root,755) | |
21f2d1ad MB |
244 | %{_libdir}/libpango-1.0.a |
245 | %{_libdir}/libpangocairo-1.0.a | |
246 | %{_libdir}/libpangoft2-1.0.a | |
21f2d1ad | 247 | %{_libdir}/libpangoxft-1.0.a |
518211d5 | 248 | |
21e03050 JB |
249 | %if %{with apidocs} |
250 | %files apidocs | |
251 | %defattr(644,root,root,755) | |
aefc3a30 JB |
252 | %{_gtkdocdir}/Pango |
253 | %{_gtkdocdir}/PangoCairo | |
254 | %{_gtkdocdir}/PangoFT2 | |
255 | %{_gtkdocdir}/PangoFc | |
256 | %{_gtkdocdir}/PangoOT | |
257 | %{_gtkdocdir}/PangoXft | |
21e03050 | 258 | %endif |
9b50e132 MB |
259 | |
260 | %files examples | |
261 | %defattr(644,root,root,755) | |
262 | %{_examplesdir}/%{name}-%{version} |