]>
Commit | Line | Data |
---|---|---|
77eb1db2 | 1 | # Conditional build: |
8b1c8047 JB |
2 | %bcond_without apidocs # disable gtk-doc |
3 | %bcond_without static_libs # don't build static library | |
77eb1db2 | 4 | # |
22c8cfb6 | 5 | Summary: System for layout and rendering of internationalized text |
f5b08396 ER |
6 | Summary(pl.UTF-8): System renderowania międzynarodowego tekstu |
7 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
22c8cfb6 | 8 | Name: pango |
1b0dc6e6 | 9 | Version: 1.16.4 |
634277e1 | 10 | Release: 2 |
fe0b7782 | 11 | Epoch: 1 |
22c8cfb6 | 12 | License: LGPL |
712888e1 | 13 | Group: X11/Libraries |
21f2d1ad | 14 | Source0: http://ftp.gnome.org/pub/gnome/sources/pango/1.16/%{name}-%{version}.tar.bz2 |
1b0dc6e6 | 15 | # Source0-md5: 025e2ac5e40cac163aae4653aeef559c |
63327410 | 16 | Patch0: %{name}-xfonts.patch |
10f70466 | 17 | Patch1: %{name}-arch_confdir.patch |
22c8cfb6 | 18 | URL: http://www.pango.org/ |
634277e1 | 19 | BuildRequires: XFree86-devel |
d58e4b98 | 20 | BuildRequires: autoconf >= 2.59-9 |
21f2d1ad | 21 | BuildRequires: automake >= 1:1.9 |
5dbfe372 | 22 | BuildRequires: cairo-devel >= 1.4.0 |
6d53487d | 23 | BuildRequires: docbook-dtd412-xml |
24 | BuildRequires: docbook-style-xsl | |
08f039cf | 25 | BuildRequires: fontconfig-devel >= 1:2.4.0 |
6d53487d | 26 | BuildRequires: freetype-devel >= 2.1.7 |
5dbfe372 | 27 | BuildRequires: glib2-devel >= 1:2.12.11 |
21f2d1ad MB |
28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
29 | BuildRequires: gtk-doc-automake >= 1.8 | |
dc501d35 | 30 | BuildRequires: libtool >= 1:1.4.2-9 |
9526067d | 31 | BuildRequires: perl-base |
fc102159 | 32 | BuildRequires: pkgconfig |
7aad84ab | 33 | BuildRequires: rpmbuild(macros) >= 1.197 |
634277e1 | 34 | BuildRequires: xft-devel >= 2.1.0 |
5dbfe372 | 35 | Requires: cairo >= 1.4.0 |
6d53487d | 36 | Requires: freetype >= 2.1.7 |
5dbfe372 | 37 | Requires: glib2 >= 1:2.12.11 |
54fdbbf8 | 38 | Obsoletes: libpango24 |
f28958a9 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6b89e6e | 40 | |
634277e1 ER |
41 | %if "%{_lib}" != "lib" |
42 | %define _sysconfdir /etc/%{name}64 | |
43 | %else | |
44 | %define _sysconfdir /etc/%{name} | |
45 | %endif | |
46 | ||
a6b89e6e | 47 | %description |
48 | System for layout and rendering of internationalized text. | |
49 | ||
22bfacc6 JR |
50 | %description -l pl.UTF-8 |
51 | System obsługi i renderowania międzynarodowego tekstu. | |
a6bc9fc7 | 52 | |
22bfacc6 JR |
53 | %description -l pt_BR.UTF-8 |
54 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 55 | internacionalizado. |
56 | ||
a6b89e6e | 57 | %package devel |
22c8cfb6 | 58 | Summary: System for layout and rendering of internationalized text |
f5b08396 ER |
59 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu |
60 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
712888e1 | 61 | Group: X11/Development/Libraries |
fe0b7782 | 62 | Requires: %{name} = %{epoch}:%{version}-%{release} |
634277e1 | 63 | Requires: XFree86-devel |
5dbfe372 | 64 | Requires: cairo-devel >= 1.4.0 |
6d53487d | 65 | Requires: freetype-devel >= 2.1.7 |
5dbfe372 | 66 | Requires: glib2-devel >= 1:2.12.11 |
634277e1 | 67 | Requires: xft-devel >= 2.1.0 |
54fdbbf8 | 68 | Obsoletes: libpango24-devel |
a6b89e6e | 69 | |
70 | %description devel | |
a6bc9fc7 AM |
71 | Developer files for pango. |
72 | ||
22bfacc6 | 73 | %description devel -l pl.UTF-8 |
a6bc9fc7 | 74 | Pliki developerskie pango. |
a6b89e6e | 75 | |
22bfacc6 JR |
76 | %description devel -l pt_BR.UTF-8 |
77 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 78 | internacionalizado. |
79 | ||
89bc8f01 | 80 | %package static |
73d98c3b | 81 | Summary: Static pango libraries |
f5b08396 ER |
82 | Summary(pl.UTF-8): Biblioteki statyczne pango |
83 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
712888e1 | 84 | Group: X11/Development/Libraries |
fe0b7782 | 85 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
89bc8f01 | 86 | |
87 | %description static | |
73d98c3b | 88 | Static pango libraries. |
89bc8f01 | 89 | |
22bfacc6 | 90 | %description static -l pl.UTF-8 |
73d98c3b | 91 | Biblioteki statyczne pango. |
89bc8f01 | 92 | |
22bfacc6 JR |
93 | %description static -l pt_BR.UTF-8 |
94 | Pango é um sistema para layout e renderização de texto | |
ce4a83d9 | 95 | internacionalizado. |
96 | ||
518211d5 | 97 | %package modules |
98 | Summary: System for layout and rendering of internationalized text | |
f5b08396 ER |
99 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu |
100 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
518211d5 | 101 | Group: X11/Development/Libraries |
f7e43318 | 102 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} |
fe0b7782 | 103 | Requires: %{name} = %{epoch}:%{version}-%{release} |
518211d5 | 104 | |
105 | %description modules | |
106 | System for layout and rendering of internationalized text. | |
107 | ||
108 | This package contains pango modules for: arabic, bengali, devanagari, | |
109 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
110 | ||
22bfacc6 JR |
111 | %description modules -l pl.UTF-8 |
112 | System obsługi i renderowania międzynarodowego tekstu. | |
518211d5 | 113 | |
22bfacc6 | 114 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, |
518211d5 | 115 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. |
116 | ||
22bfacc6 JR |
117 | %description modules -l pt_BR.UTF-8 |
118 | Pango é um sistema para layout e renderização de texto | |
518211d5 | 119 | internacionalizado. |
120 | ||
21e03050 JB |
121 | %package apidocs |
122 | Summary: Pango API documentation | |
f5b08396 | 123 | Summary(pl.UTF-8): Dokumentacja API pango |
21e03050 JB |
124 | Group: Documentation |
125 | Requires: gtk-doc-common | |
126 | ||
127 | %description apidocs | |
128 | Pango API documentation. | |
129 | ||
22bfacc6 | 130 | %description apidocs -l pl.UTF-8 |
21e03050 JB |
131 | Dokumentacja API pango. |
132 | ||
a6b89e6e | 133 | %prep |
a08120ab | 134 | %setup -q |
63327410 | 135 | %patch0 -p1 |
634277e1 | 136 | %patch1 -p1 |
a6b89e6e | 137 | |
138 | %build | |
af50b274 | 139 | %{?with_apidocs:%{__gtkdocize}} |
712888e1 | 140 | %{__libtoolize} |
edaf2e5e | 141 | %{__aclocal} |
6d53487d | 142 | %{__autoheader} |
80dcac95 | 143 | %{__autoconf} |
144 | %{__automake} | |
910f71d7 | 145 | %configure \ |
6d53487d | 146 | --with-fribidi \ |
6a098db5 | 147 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
148 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
149 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ | |
96c1d115 | 150 | --enable-debug=%{?debug:yes}%{!?debug:minimum} \ |
6d53487d | 151 | --enable-man |
5b1dbc1c | 152 | %{__make} |
a6b89e6e | 153 | |
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
a6bc9fc7 | 156 | |
910f71d7 AM |
157 | %{__make} install \ |
158 | DESTDIR=$RPM_BUILD_ROOT \ | |
dc501d35 JB |
159 | pkgconfigdir=%{_pkgconfigdir} |
160 | ||
634277e1 | 161 | > $RPM_BUILD_ROOT%{_sysconfdir}/pango.modules |
7893a0d3 | 162 | |
63327410 | 163 | # useless (modules loaded through libgmodule) |
21f2d1ad | 164 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a} |
bfee300a | 165 | |
a6b89e6e | 166 | %clean |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %post | |
0b53ddd6 | 170 | /sbin/ldconfig |
35f8c7dd | 171 | umask 022 |
634277e1 | 172 | %{_bindir}/pango-querymodules > %{_sysconfdir}/pango.modules |
6d53487d | 173 | exit 0 |
a6b89e6e | 174 | |
0b53ddd6 | 175 | %postun -p /sbin/ldconfig |
fc102159 | 176 | |
518211d5 | 177 | %post modules |
178 | umask 022 | |
634277e1 | 179 | %{_bindir}/pango-querymodules > %{_sysconfdir}/pango.modules |
6d53487d | 180 | exit 0 |
518211d5 | 181 | |
182 | %postun modules | |
183 | umask 022 | |
634277e1 | 184 | %{_bindir}/pango-querymodules > %{_sysconfdir}/pango.modules |
6d53487d | 185 | exit 0 |
518211d5 | 186 | |
a6b89e6e | 187 | %files |
22c8cfb6 | 188 | %defattr(644,root,root,755) |
21f2d1ad | 189 | %doc AUTHORS ChangeLog HACKING NEWS README THANKS |
9d5bf753 | 190 | %attr(755,root,root) %{_bindir}/pango-querymodules |
21e03050 | 191 | %attr(755,root,root) %{_bindir}/pango-view |
21f2d1ad MB |
192 | %attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.* |
193 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.* | |
194 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.* | |
195 | %attr(755,root,root) %{_libdir}/libpangox-1.0.so.*.*.* | |
196 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.* | |
7893a0d3 | 197 | %dir %{_libdir}/pango |
21f2d1ad MB |
198 | %dir %{_libdir}/pango/1.6.0 |
199 | %dir %{_libdir}/pango/1.6.0/modules | |
200 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-basic-fc.so | |
201 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-basic-x.so | |
634277e1 ER |
202 | %dir %{_sysconfdir} |
203 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pangox.aliases | |
204 | %ghost %{_sysconfdir}/pango.modules | |
21f2d1ad | 205 | %{_mandir}/man1/pango-querymodules.1* |
910f71d7 | 206 | |
a6b89e6e | 207 | %files devel |
22c8cfb6 | 208 | %defattr(644,root,root,755) |
21f2d1ad MB |
209 | %attr(755,root,root) %{_libdir}/libpango-1.0.so |
210 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
211 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
212 | %attr(755,root,root) %{_libdir}/libpangox-1.0.so | |
213 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so | |
214 | %{_libdir}/libpango-1.0.la | |
215 | %{_libdir}/libpangocairo-1.0.la | |
216 | %{_libdir}/libpangoft2-1.0.la | |
217 | %{_libdir}/libpangox-1.0.la | |
218 | %{_libdir}/libpangoxft-1.0.la | |
219 | %{_pkgconfigdir}/pango.pc | |
220 | %{_pkgconfigdir}/pangocairo.pc | |
221 | %{_pkgconfigdir}/pangoft2.pc | |
222 | %{_pkgconfigdir}/pangox.pc | |
223 | %{_pkgconfigdir}/pangoxft.pc | |
224 | %{_includedir}/pango-1.0 | |
89bc8f01 | 225 | |
7b311967 | 226 | %if %{with static_libs} |
89bc8f01 | 227 | %files static |
228 | %defattr(644,root,root,755) | |
21f2d1ad MB |
229 | %{_libdir}/libpango-1.0.a |
230 | %{_libdir}/libpangocairo-1.0.a | |
231 | %{_libdir}/libpangoft2-1.0.a | |
232 | %{_libdir}/libpangox-1.0.a | |
233 | %{_libdir}/libpangoxft-1.0.a | |
7b311967 | 234 | %endif |
518211d5 | 235 | |
236 | %files modules | |
237 | %defattr(644,root,root,755) | |
21f2d1ad MB |
238 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-arabic-fc.so |
239 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-arabic-lang.so | |
240 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-hangul-fc.so | |
241 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-hebrew-fc.so | |
242 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-indic-fc.so | |
243 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-indic-lang.so | |
244 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-khmer-fc.so | |
245 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-syriac-fc.so | |
246 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-thai-fc.so | |
247 | %attr(755,root,root) %{_libdir}/pango/1.6.0/modules/pango-tibetan-fc.so | |
248 | %exclude %{_libdir}/pango/1.6.0/modules/pango-basic-fc.so | |
249 | %exclude %{_libdir}/pango/1.6.0/modules/pango-basic-x.so | |
21e03050 JB |
250 | |
251 | %if %{with apidocs} | |
252 | %files apidocs | |
253 | %defattr(644,root,root,755) | |
254 | %{_gtkdocdir}/pango | |
255 | %endif |