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