]>
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 |
744c2323 | 10 | Version: 1.44.2 |
ae875a3e | 11 | Release: 0.1 |
fe0b7782 | 12 | Epoch: 1 |
4c82e71c | 13 | License: LGPL v2+ |
712888e1 | 14 | Group: X11/Libraries |
300b5824 | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.44/%{name}-%{version}.tar.xz |
744c2323 | 16 | # Source0-md5: d79534bf001e657250f60cbd9ab96390 |
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 |
300b5824 | 26 | BuildRequires: glib2-devel >= 1:2.59.2 |
10174948 | 27 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
c5af4488 | 28 | %if %{with apidocs} |
f8016c2f | 29 | BuildRequires: gtk-doc >= 1.15 |
c5af4488 | 30 | %endif |
300b5824 | 31 | BuildRequires: harfbuzz-devel >= 2.0.0 |
2477e965 | 32 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} |
300b5824 | 33 | BuildRequires: meson >= 0.48.0 |
21710c38 | 34 | BuildRequires: ninja >= 1.5 |
9526067d | 35 | BuildRequires: perl-base |
fc102159 | 36 | BuildRequires: pkgconfig |
1ad2b379 | 37 | BuildRequires: python-modules |
21710c38 | 38 | BuildRequires: rpmbuild(macros) >= 1.736 |
8a548634 | 39 | BuildRequires: tar >= 1:1.22 |
f67517b7 ER |
40 | BuildRequires: xorg-lib-libX11-devel |
41 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 | |
f8016c2f | 42 | BuildRequires: xorg-lib-libXrender-devel |
8a548634 | 43 | BuildRequires: xz |
5d95bfd7 | 44 | Requires: cairo >= 1.12.10 |
fe149c83 | 45 | Requires: fontconfig-libs >= 1:2.11.91 |
6d53487d | 46 | Requires: freetype >= 2.1.7 |
969bcaec | 47 | Requires: fribidi >= 0.19.7 |
300b5824 JP |
48 | Requires: glib2 >= 1:2.59.2 |
49 | Requires: harfbuzz >= 2.0.0 | |
54fdbbf8 | 50 | Obsoletes: libpango24 |
5932fede | 51 | Obsoletes: pango-modules < 1:1.38.0-1 |
f28958a9 | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6b89e6e | 53 | |
a6b89e6e | 54 | %description |
55 | System for layout and rendering of internationalized text. | |
56 | ||
22bfacc6 JR |
57 | %description -l pl.UTF-8 |
58 | System obsługi i renderowania międzynarodowego tekstu. | |
a6bc9fc7 | 59 | |
22bfacc6 JR |
60 | %description -l pt_BR.UTF-8 |
61 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 62 | internacionalizado. |
63 | ||
3d718a03 JP |
64 | %package tools |
65 | Summary: Pango tools | |
66 | Summary(pl.UTF-8): Narzędzia pango | |
a15f5a43 JR |
67 | Group: X11/Applications |
68 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
3d718a03 | 69 | Obsoletes: pango-view < 1:1.42.2 |
a15f5a43 | 70 | |
3d718a03 JP |
71 | %description tools |
72 | Pango tools: | |
73 | - text viewer | |
74 | - list availabe fonts | |
a15f5a43 | 75 | |
3d718a03 JP |
76 | %description tools -l pl.UTF-8 |
77 | Narzędzia pango: | |
78 | - przeglądarka tekstu | |
79 | - wyświetlanie dostępnych fontów | |
a15f5a43 | 80 | |
a6b89e6e | 81 | %package devel |
01a1eef9 JB |
82 | Summary: Header files for Pango libraries |
83 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Pango | |
712888e1 | 84 | Group: X11/Development/Libraries |
fe0b7782 | 85 | Requires: %{name} = %{epoch}:%{version}-%{release} |
5d95bfd7 | 86 | Requires: cairo-devel >= 1.12.10 |
fe149c83 | 87 | Requires: fontconfig-devel >= 1:2.11.91 |
6d53487d | 88 | Requires: freetype-devel >= 2.1.7 |
969bcaec | 89 | Requires: fribidi-devel >= 0.19.7 |
300b5824 JP |
90 | Requires: glib2-devel >= 1:2.59.2 |
91 | Requires: harfbuzz-devel >= 2.0.0 | |
5abf4470 | 92 | %{?with_libthai:Requires: libthai-devel >= 0.1.9} |
f67517b7 ER |
93 | Requires: xorg-lib-libX11-devel |
94 | Requires: xorg-lib-libXft-devel >= 2.1.0 | |
54fdbbf8 | 95 | Obsoletes: libpango24-devel |
a6b89e6e | 96 | |
97 | %description devel | |
01a1eef9 | 98 | Header files for Pango libraries. |
a6bc9fc7 | 99 | |
22bfacc6 | 100 | %description devel -l pl.UTF-8 |
01a1eef9 | 101 | Pliki nagłówkowe bibliotek Pango. |
ce4a83d9 | 102 | |
89bc8f01 | 103 | %package static |
73d98c3b | 104 | Summary: Static pango libraries |
f5b08396 | 105 | Summary(pl.UTF-8): Biblioteki statyczne pango |
712888e1 | 106 | Group: X11/Development/Libraries |
fe0b7782 | 107 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
89bc8f01 | 108 | |
109 | %description static | |
73d98c3b | 110 | Static pango libraries. |
89bc8f01 | 111 | |
22bfacc6 | 112 | %description static -l pl.UTF-8 |
73d98c3b | 113 | Biblioteki statyczne pango. |
89bc8f01 | 114 | |
518211d5 | 115 | %package modules |
01a1eef9 JB |
116 | Summary: Pango modules for various scripts |
117 | Summary(pl.UTF-8): Moduły Pango dla różnych systemów pisma | |
518211d5 | 118 | Group: X11/Development/Libraries |
f7e43318 | 119 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} |
fe0b7782 | 120 | Requires: %{name} = %{epoch}:%{version}-%{release} |
75372f11 | 121 | %{?with_libthai:Requires: libthai >= 0.1.9} |
518211d5 | 122 | |
123 | %description modules | |
01a1eef9 | 124 | Pango is a system for layout and rendering of internationalized text. |
518211d5 | 125 | |
126 | This package contains pango modules for: arabic, bengali, devanagari, | |
127 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
128 | ||
22bfacc6 | 129 | %description modules -l pl.UTF-8 |
01a1eef9 | 130 | Pango to system obsługi i renderowania międzynarodowego tekstu. |
518211d5 | 131 | |
22bfacc6 | 132 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, |
518211d5 | 133 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. |
134 | ||
21e03050 JB |
135 | %package apidocs |
136 | Summary: Pango API documentation | |
f5b08396 | 137 | Summary(pl.UTF-8): Dokumentacja API pango |
21e03050 JB |
138 | Group: Documentation |
139 | Requires: gtk-doc-common | |
239a12cd ER |
140 | %if "%{_rpmversion}" >= "5" |
141 | BuildArch: noarch | |
142 | %endif | |
21e03050 JB |
143 | |
144 | %description apidocs | |
145 | Pango API documentation. | |
146 | ||
22bfacc6 | 147 | %description apidocs -l pl.UTF-8 |
21e03050 JB |
148 | Dokumentacja API pango. |
149 | ||
9b50e132 MB |
150 | %package examples |
151 | Summary: pango - example programs | |
152 | Summary(pl.UTF-8): pango - przykładowe programy | |
153 | Group: X11/Development/Libraries | |
239a12cd ER |
154 | %if "%{_rpmversion}" >= "5" |
155 | BuildArch: noarch | |
156 | %endif | |
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 JP |
168 | %meson build \ |
169 | -Dgtk_doc=%{__true_false apidocs} | |
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 | |
201 | %{_libdir}/girepository-1.0/PangoXft-1.0.typelib | |
a15f5a43 | 202 | |
3d718a03 | 203 | %files tools |
a15f5a43 | 204 | %defattr(644,root,root,755) |
3d718a03 | 205 | %attr(755,root,root) %{_bindir}/pango-list |
a15f5a43 | 206 | %attr(755,root,root) %{_bindir}/pango-view |
5f9c4bf0 | 207 | %{_mandir}/man1/pango-view.1* |
910f71d7 | 208 | |
a6b89e6e | 209 | %files devel |
22c8cfb6 | 210 | %defattr(644,root,root,755) |
21f2d1ad MB |
211 | %attr(755,root,root) %{_libdir}/libpango-1.0.so |
212 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
213 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
21f2d1ad | 214 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so |
21710c38 JB |
215 | %{_datadir}/gir-1.0/Pango-1.0.gir |
216 | %{_datadir}/gir-1.0/PangoCairo-1.0.gir | |
217 | %{_datadir}/gir-1.0/PangoFT2-1.0.gir | |
218 | %{_datadir}/gir-1.0/PangoXft-1.0.gir | |
219 | %{_includedir}/pango-1.0 | |
21f2d1ad MB |
220 | %{_pkgconfigdir}/pango.pc |
221 | %{_pkgconfigdir}/pangocairo.pc | |
222 | %{_pkgconfigdir}/pangoft2.pc | |
21f2d1ad | 223 | %{_pkgconfigdir}/pangoxft.pc |
89bc8f01 | 224 | |
225 | %files static | |
226 | %defattr(644,root,root,755) | |
21f2d1ad MB |
227 | %{_libdir}/libpango-1.0.a |
228 | %{_libdir}/libpangocairo-1.0.a | |
229 | %{_libdir}/libpangoft2-1.0.a | |
21f2d1ad | 230 | %{_libdir}/libpangoxft-1.0.a |
518211d5 | 231 | |
21e03050 JB |
232 | %if %{with apidocs} |
233 | %files apidocs | |
234 | %defattr(644,root,root,755) | |
235 | %{_gtkdocdir}/pango | |
236 | %endif | |
9b50e132 MB |
237 | |
238 | %files examples | |
239 | %defattr(644,root,root,755) | |
240 | %{_examplesdir}/%{name}-%{version} |