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