]>
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 |
8b1c8047 | 5 | %bcond_without static_libs # don't build static library |
77eb1db2 | 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 |
5932fede | 11 | Version: 1.38.0 |
709a58c8 | 12 | Release: 2 |
fe0b7782 | 13 | Epoch: 1 |
4c82e71c | 14 | License: LGPL v2+ |
712888e1 | 15 | Group: X11/Libraries |
5932fede MB |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.38/%{name}-%{version}.tar.xz |
17 | # Source0-md5: 5a358e5afbb6b2e82cf2cb02ca9cce86 | |
22c8cfb6 | 18 | URL: http://www.pango.org/ |
d58e4b98 | 19 | BuildRequires: autoconf >= 2.59-9 |
21f2d1ad | 20 | BuildRequires: automake >= 1:1.9 |
5d95bfd7 JB |
21 | BuildRequires: cairo-devel >= 1.12.10 |
22 | BuildRequires: cairo-gobject-devel >= 1.12.10 | |
6d53487d | 23 | BuildRequires: docbook-dtd412-xml |
24 | BuildRequires: docbook-style-xsl | |
0d70e594 | 25 | BuildRequires: fontconfig-devel >= 1:2.10.91 |
6d53487d | 26 | BuildRequires: freetype-devel >= 2.1.7 |
e60318cb | 27 | BuildRequires: glib2-devel >= 1:2.33.12 |
10174948 | 28 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
c5af4488 ŁK |
29 | %if %{with apidocs} |
30 | BuildRequires: gtk-doc >= 1.8 | |
21f2d1ad | 31 | BuildRequires: gtk-doc-automake >= 1.8 |
c5af4488 | 32 | %endif |
02e9548f | 33 | BuildRequires: harfbuzz-devel >= 0.9.9 |
2477e965 | 34 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} |
ba7ac69f | 35 | BuildRequires: libtool >= 2:1.5 |
9526067d | 36 | BuildRequires: perl-base |
fc102159 | 37 | BuildRequires: pkgconfig |
1ad2b379 | 38 | BuildRequires: python-modules |
7aad84ab | 39 | BuildRequires: rpmbuild(macros) >= 1.197 |
8a548634 | 40 | BuildRequires: tar >= 1:1.22 |
f67517b7 ER |
41 | BuildRequires: xorg-lib-libX11-devel |
42 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 | |
8a548634 | 43 | BuildRequires: xz |
5d95bfd7 | 44 | Requires: cairo >= 1.12.10 |
0d70e594 | 45 | Requires: fontconfig-libs >= 1:2.10.91 |
6d53487d | 46 | Requires: freetype >= 2.1.7 |
e60318cb | 47 | Requires: glib2 >= 1:2.33.12 |
02e9548f | 48 | Requires: harfbuzz >= 0.9.9 |
54fdbbf8 | 49 | Obsoletes: libpango24 |
5932fede | 50 | Obsoletes: pango-modules < 1:1.38.0-1 |
f28958a9 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6b89e6e | 52 | |
a6b89e6e | 53 | %description |
54 | System for layout and rendering of internationalized text. | |
55 | ||
22bfacc6 JR |
56 | %description -l pl.UTF-8 |
57 | System obsługi i renderowania międzynarodowego tekstu. | |
a6bc9fc7 | 58 | |
22bfacc6 JR |
59 | %description -l pt_BR.UTF-8 |
60 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 61 | internacionalizado. |
62 | ||
a15f5a43 JR |
63 | %package view |
64 | Summary: Pango text viewer | |
65 | Summary(pl.UTF-8): Przeglądarka tekstu pango | |
66 | Group: X11/Applications | |
67 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68 | ||
69 | %description view | |
70 | Pango text viewer. | |
71 | ||
72 | %description view -l pl.UTF-8 | |
73 | Przeglądarka tekstu pango. | |
74 | ||
a6b89e6e | 75 | %package devel |
01a1eef9 JB |
76 | Summary: Header files for Pango libraries |
77 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Pango | |
712888e1 | 78 | Group: X11/Development/Libraries |
fe0b7782 | 79 | Requires: %{name} = %{epoch}:%{version}-%{release} |
5d95bfd7 | 80 | Requires: cairo-devel >= 1.12.10 |
0d70e594 | 81 | Requires: fontconfig-devel >= 1:2.10.91 |
6d53487d | 82 | Requires: freetype-devel >= 2.1.7 |
e60318cb | 83 | Requires: glib2-devel >= 1:2.33.12 |
02e9548f | 84 | Requires: harfbuzz-devel >= 0.9.9 |
709a58c8 | 85 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} |
f67517b7 ER |
86 | Requires: xorg-lib-libX11-devel |
87 | Requires: xorg-lib-libXft-devel >= 2.1.0 | |
54fdbbf8 | 88 | Obsoletes: libpango24-devel |
a6b89e6e | 89 | |
90 | %description devel | |
01a1eef9 | 91 | Header files for Pango libraries. |
a6bc9fc7 | 92 | |
22bfacc6 | 93 | %description devel -l pl.UTF-8 |
01a1eef9 | 94 | Pliki nagłówkowe bibliotek Pango. |
ce4a83d9 | 95 | |
89bc8f01 | 96 | %package static |
73d98c3b | 97 | Summary: Static pango libraries |
f5b08396 | 98 | Summary(pl.UTF-8): Biblioteki statyczne pango |
712888e1 | 99 | Group: X11/Development/Libraries |
fe0b7782 | 100 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
89bc8f01 | 101 | |
102 | %description static | |
73d98c3b | 103 | Static pango libraries. |
89bc8f01 | 104 | |
22bfacc6 | 105 | %description static -l pl.UTF-8 |
73d98c3b | 106 | Biblioteki statyczne pango. |
89bc8f01 | 107 | |
518211d5 | 108 | %package modules |
01a1eef9 JB |
109 | Summary: Pango modules for various scripts |
110 | Summary(pl.UTF-8): Moduły Pango dla różnych systemów pisma | |
518211d5 | 111 | Group: X11/Development/Libraries |
f7e43318 | 112 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} |
fe0b7782 | 113 | Requires: %{name} = %{epoch}:%{version}-%{release} |
75372f11 | 114 | %{?with_libthai:Requires: libthai >= 0.1.9} |
518211d5 | 115 | |
116 | %description modules | |
01a1eef9 | 117 | Pango is a system for layout and rendering of internationalized text. |
518211d5 | 118 | |
119 | This package contains pango modules for: arabic, bengali, devanagari, | |
120 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
121 | ||
22bfacc6 | 122 | %description modules -l pl.UTF-8 |
01a1eef9 | 123 | Pango to system obsługi i renderowania międzynarodowego tekstu. |
518211d5 | 124 | |
22bfacc6 | 125 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, |
518211d5 | 126 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. |
127 | ||
21e03050 JB |
128 | %package apidocs |
129 | Summary: Pango API documentation | |
f5b08396 | 130 | Summary(pl.UTF-8): Dokumentacja API pango |
21e03050 JB |
131 | Group: Documentation |
132 | Requires: gtk-doc-common | |
133 | ||
134 | %description apidocs | |
135 | Pango API documentation. | |
136 | ||
22bfacc6 | 137 | %description apidocs -l pl.UTF-8 |
21e03050 JB |
138 | Dokumentacja API pango. |
139 | ||
9b50e132 MB |
140 | %package examples |
141 | Summary: pango - example programs | |
142 | Summary(pl.UTF-8): pango - przykładowe programy | |
143 | Group: X11/Development/Libraries | |
144 | ||
145 | %description examples | |
146 | pango - example programs. | |
147 | ||
148 | %description examples -l pl.UTF-8 | |
149 | pango - przykładowe programy. | |
150 | ||
a6b89e6e | 151 | %prep |
a08120ab | 152 | %setup -q |
a6b89e6e | 153 | |
154 | %build | |
af50b274 | 155 | %{?with_apidocs:%{__gtkdocize}} |
712888e1 | 156 | %{__libtoolize} |
edaf2e5e | 157 | %{__aclocal} |
6d53487d | 158 | %{__autoheader} |
80dcac95 | 159 | %{__autoconf} |
160 | %{__automake} | |
910f71d7 | 161 | %configure \ |
13bcfc82 | 162 | --disable-silent-rules \ |
2474e1fa | 163 | --enable-debug=%{?debug:yes}%{!?debug:minimum} \ |
c5af4488 | 164 | %{__enable_disable apidocs gtk-doc} \ |
2474e1fa | 165 | --enable-man \ |
c5af4488 | 166 | %{__enable_disable static_libs static} \ |
2474e1fa | 167 | --with-html-dir=%{_gtkdocdir} |
e9dfac64 | 168 | |
169 | # some generator script requires access to newely created .pc files | |
170 | export PKG_CONFIG_PATH="$PWD" | |
171 | ||
5b1dbc1c | 172 | %{__make} |
a6b89e6e | 173 | |
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
5932fede | 176 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a6bc9fc7 | 177 | |
910f71d7 AM |
178 | %{__make} install \ |
179 | DESTDIR=$RPM_BUILD_ROOT \ | |
dc501d35 JB |
180 | pkgconfigdir=%{_pkgconfigdir} |
181 | ||
9b50e132 MB |
182 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
183 | ||
81fb499f ER |
184 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/pango} |
185 | ||
a6b89e6e | 186 | %clean |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
5932fede | 189 | %post -p /sbin/ldconfig |
0b53ddd6 | 190 | %postun -p /sbin/ldconfig |
fc102159 | 191 | |
a6b89e6e | 192 | %files |
22c8cfb6 | 193 | %defattr(644,root,root,755) |
21f2d1ad | 194 | %doc AUTHORS ChangeLog HACKING NEWS README 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 |
6aeb5d7b | 203 | %{_libdir}/girepository-1.0/Pango*-1.0.typelib |
a15f5a43 JR |
204 | |
205 | %files view | |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_bindir}/pango-view | |
5f9c4bf0 | 208 | %{_mandir}/man1/pango-view.1* |
910f71d7 | 209 | |
a6b89e6e | 210 | %files devel |
22c8cfb6 | 211 | %defattr(644,root,root,755) |
21f2d1ad MB |
212 | %attr(755,root,root) %{_libdir}/libpango-1.0.so |
213 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
214 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
21f2d1ad | 215 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so |
407e2db6 ŁK |
216 | %{_libdir}/libpango-1.0.la |
217 | %{_libdir}/libpangocairo-1.0.la | |
218 | %{_libdir}/libpangoft2-1.0.la | |
219 | %{_libdir}/libpangoxft-1.0.la | |
21f2d1ad MB |
220 | %{_pkgconfigdir}/pango.pc |
221 | %{_pkgconfigdir}/pangocairo.pc | |
222 | %{_pkgconfigdir}/pangoft2.pc | |
21f2d1ad MB |
223 | %{_pkgconfigdir}/pangoxft.pc |
224 | %{_includedir}/pango-1.0 | |
6aeb5d7b | 225 | %{_datadir}/gir-1.0/Pango*-1.0.gir |
89bc8f01 | 226 | |
7b311967 | 227 | %if %{with static_libs} |
89bc8f01 | 228 | %files static |
229 | %defattr(644,root,root,755) | |
21f2d1ad MB |
230 | %{_libdir}/libpango-1.0.a |
231 | %{_libdir}/libpangocairo-1.0.a | |
232 | %{_libdir}/libpangoft2-1.0.a | |
21f2d1ad | 233 | %{_libdir}/libpangoxft-1.0.a |
7b311967 | 234 | %endif |
518211d5 | 235 | |
21e03050 JB |
236 | %if %{with apidocs} |
237 | %files apidocs | |
238 | %defattr(644,root,root,755) | |
239 | %{_gtkdocdir}/pango | |
240 | %endif | |
9b50e132 MB |
241 | |
242 | %files examples | |
243 | %defattr(644,root,root,755) | |
244 | %{_examplesdir}/%{name}-%{version} |