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