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