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