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