]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without libthai # don't build thai-lang module | |
5 | %bcond_without static_libs # don't build static library | |
6 | # | |
7 | Summary: System for layout and rendering of internationalized text | |
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 | |
10 | Name: pango | |
11 | Version: 1.32.0 | |
12 | Release: 1 | |
13 | Epoch: 1 | |
14 | License: LGPL v2+ | |
15 | Group: X11/Libraries | |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.32/%{name}-%{version}.tar.xz | |
17 | # Source0-md5: 2c2dee1d490d27da8f1c683917000ad8 | |
18 | Patch0: %{name}-arch_confdir.patch | |
19 | URL: http://www.pango.org/ | |
20 | BuildRequires: autoconf >= 2.59-9 | |
21 | BuildRequires: automake >= 1:1.9 | |
22 | BuildRequires: cairo-devel >= 1.7.6 | |
23 | BuildRequires: cairo-gobject-devel | |
24 | BuildRequires: docbook-dtd412-xml | |
25 | BuildRequires: docbook-style-xsl | |
26 | BuildRequires: fontconfig-devel >= 1:2.5.0 | |
27 | BuildRequires: freetype-devel >= 2.1.7 | |
28 | BuildRequires: glib2-devel >= 1:2.33.12 | |
29 | BuildRequires: gobject-introspection-devel >= 0.9.5 | |
30 | %if %{with apidocs} | |
31 | BuildRequires: gtk-doc >= 1.8 | |
32 | BuildRequires: gtk-doc-automake >= 1.8 | |
33 | %endif | |
34 | BuildRequires: harfbuzz-devel >= 0.9.3 | |
35 | # opentype code uses C++ internally | |
36 | BuildRequires: libstdc++-devel | |
37 | %{?with_libthai:BuildRequires: libthai-devel >= 0.1.9} | |
38 | BuildRequires: libtool >= 2:1.5 | |
39 | BuildRequires: perl-base | |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: python-modules | |
42 | BuildRequires: rpmbuild(macros) >= 1.197 | |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: xorg-lib-libX11-devel | |
45 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 | |
46 | BuildRequires: xz | |
47 | Requires: cairo >= 1.7.6 | |
48 | Requires: fontconfig-libs >= 1:2.5.0 | |
49 | Requires: freetype >= 2.1.7 | |
50 | Requires: glib2 >= 1:2.33.12 | |
51 | Obsoletes: libpango24 | |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
53 | ||
54 | %if "%{_lib}" != "lib" | |
55 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
56 | %define _sysconfdir /etc/%{name}%{libext} | |
57 | %define pqext -%{libext} | |
58 | %else | |
59 | %define _sysconfdir /etc/%{name} | |
60 | %define pqext %{nil} | |
61 | %endif | |
62 | ||
63 | %description | |
64 | System for layout and rendering of internationalized text. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | System obsługi i renderowania międzynarodowego tekstu. | |
68 | ||
69 | %description -l pt_BR.UTF-8 | |
70 | Pango é um sistema para layout e renderização de texto | |
71 | internacionalizado. | |
72 | ||
73 | %package view | |
74 | Summary: Pango text viewer | |
75 | Summary(pl.UTF-8): Przeglądarka tekstu pango | |
76 | Group: X11/Applications | |
77 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
78 | ||
79 | %description view | |
80 | Pango text viewer. | |
81 | ||
82 | %description view -l pl.UTF-8 | |
83 | Przeglądarka tekstu pango. | |
84 | ||
85 | %package devel | |
86 | Summary: System for layout and rendering of internationalized text | |
87 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu | |
88 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
89 | Group: X11/Development/Libraries | |
90 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
91 | Requires: cairo-devel >= 1.7.6 | |
92 | Requires: fontconfig-devel >= 1:2.5.0 | |
93 | Requires: freetype-devel >= 2.1.7 | |
94 | Requires: glib2-devel >= 1:2.33.12 | |
95 | Requires: xorg-lib-libX11-devel | |
96 | Requires: xorg-lib-libXft-devel >= 2.1.0 | |
97 | Obsoletes: libpango24-devel | |
98 | ||
99 | %description devel | |
100 | Developer files for pango. | |
101 | ||
102 | %description devel -l pl.UTF-8 | |
103 | Pliki developerskie pango. | |
104 | ||
105 | %description devel -l pt_BR.UTF-8 | |
106 | Pango é um sistema para layout e renderização de texto | |
107 | internacionalizado. | |
108 | ||
109 | %package static | |
110 | Summary: Static pango libraries | |
111 | Summary(pl.UTF-8): Biblioteki statyczne pango | |
112 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
113 | Group: X11/Development/Libraries | |
114 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
115 | ||
116 | %description static | |
117 | Static pango libraries. | |
118 | ||
119 | %description static -l pl.UTF-8 | |
120 | Biblioteki statyczne pango. | |
121 | ||
122 | %description static -l pt_BR.UTF-8 | |
123 | Pango é um sistema para layout e renderização de texto | |
124 | internacionalizado. | |
125 | ||
126 | %package modules | |
127 | Summary: System for layout and rendering of internationalized text | |
128 | Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu | |
129 | Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado | |
130 | Group: X11/Development/Libraries | |
131 | Requires(post,postun): %{name} = %{epoch}:%{version}-%{release} | |
132 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
133 | %{?with_libthai:Requires: libthai >= 0.1.9} | |
134 | ||
135 | %description modules | |
136 | System for layout and rendering of internationalized text. | |
137 | ||
138 | This package contains pango modules for: arabic, bengali, devanagari, | |
139 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
140 | ||
141 | %description modules -l pl.UTF-8 | |
142 | System obsługi i renderowania międzynarodowego tekstu. | |
143 | ||
144 | Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari, | |
145 | gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai. | |
146 | ||
147 | %description modules -l pt_BR.UTF-8 | |
148 | Pango é um sistema para layout e renderização de texto | |
149 | internacionalizado. | |
150 | ||
151 | %package apidocs | |
152 | Summary: Pango API documentation | |
153 | Summary(pl.UTF-8): Dokumentacja API pango | |
154 | Group: Documentation | |
155 | Requires: gtk-doc-common | |
156 | ||
157 | %description apidocs | |
158 | Pango API documentation. | |
159 | ||
160 | %description apidocs -l pl.UTF-8 | |
161 | Dokumentacja API pango. | |
162 | ||
163 | %package examples | |
164 | Summary: pango - example programs | |
165 | Summary(pl.UTF-8): pango - przykładowe programy | |
166 | Group: X11/Development/Libraries | |
167 | ||
168 | %description examples | |
169 | pango - example programs. | |
170 | ||
171 | %description examples -l pl.UTF-8 | |
172 | pango - przykładowe programy. | |
173 | ||
174 | %prep | |
175 | %setup -q | |
176 | %patch0 -p1 | |
177 | ||
178 | %build | |
179 | %{?with_apidocs:%{__gtkdocize}} | |
180 | %{__libtoolize} | |
181 | %{__aclocal} | |
182 | %{__autoheader} | |
183 | %{__autoconf} | |
184 | %{__automake} | |
185 | %configure \ | |
186 | --disable-silent-rules \ | |
187 | --enable-debug=%{?debug:yes}%{!?debug:minimum} \ | |
188 | %{__enable_disable apidocs gtk-doc} \ | |
189 | --enable-man \ | |
190 | %{__enable_disable static_libs static} \ | |
191 | --with-html-dir=%{_gtkdocdir} | |
192 | ||
193 | # some generator script requires access to newely created .pc files | |
194 | export PKG_CONFIG_PATH="$PWD" | |
195 | ||
196 | %{__make} | |
197 | ||
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ | |
201 | $RPM_BUILD_ROOT%{_sysconfdir} | |
202 | ||
203 | %{__make} install \ | |
204 | DESTDIR=$RPM_BUILD_ROOT \ | |
205 | pkgconfigdir=%{_pkgconfigdir} | |
206 | ||
207 | > $RPM_BUILD_ROOT%{_sysconfdir}/pango.modules | |
208 | ||
209 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
210 | ||
211 | %if "%{_lib}" != "lib" | |
212 | # We need to have 32-bit and 64-bit pango-querymodules binaries | |
213 | # as they have hardcoded LIBDIR. | |
214 | # (needed when multilib is used) | |
215 | mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules{,%{pqext}} | |
216 | # fix man page too | |
217 | mv $RPM_BUILD_ROOT%{_mandir}/man1/pango-querymodules{,%{pqext}}.1 | |
218 | %endif | |
219 | ||
220 | # useless (modules loaded through libgmodule) | |
221 | %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.8.0/modules/*.{la,a} | |
222 | ||
223 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
224 | ||
225 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/pango} | |
226 | ||
227 | %clean | |
228 | rm -rf $RPM_BUILD_ROOT | |
229 | ||
230 | %post | |
231 | /sbin/ldconfig | |
232 | umask 022 | |
233 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules | |
234 | exit 0 | |
235 | ||
236 | %postun -p /sbin/ldconfig | |
237 | ||
238 | %post modules | |
239 | umask 022 | |
240 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules | |
241 | exit 0 | |
242 | ||
243 | %postun modules | |
244 | umask 022 | |
245 | %{_bindir}/pango-querymodules%{pqext} > %{_sysconfdir}/pango.modules | |
246 | exit 0 | |
247 | ||
248 | %files | |
249 | %defattr(644,root,root,755) | |
250 | %doc AUTHORS ChangeLog HACKING NEWS README THANKS | |
251 | %attr(755,root,root) %{_bindir}/pango-querymodules%{pqext} | |
252 | %attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libpango-1.0.so.0 | |
254 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.* | |
255 | %attr(755,root,root) %ghost %{_libdir}/libpangocairo-1.0.so.0 | |
256 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.* | |
257 | %attr(755,root,root) %ghost %{_libdir}/libpangoft2-1.0.so.0 | |
258 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.* | |
259 | %attr(755,root,root) %ghost %{_libdir}/libpangoxft-1.0.so.0 | |
260 | %dir %{_libdir}/pango | |
261 | %dir %{_libdir}/pango/1.8.0 | |
262 | %dir %{_libdir}/pango/1.8.0/modules | |
263 | %attr(755,root,root) %{_libdir}/pango/1.8.0/modules/pango-basic-fc.so | |
264 | %{_libdir}/girepository-1.0/Pango*-1.0.typelib | |
265 | %dir %{_sysconfdir} | |
266 | %ghost %{_sysconfdir}/pango.modules | |
267 | %{_mandir}/man1/pango-querymodules%{pqext}.1* | |
268 | ||
269 | %files view | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_bindir}/pango-view | |
272 | %{_mandir}/man1/pango-view.1* | |
273 | ||
274 | %files devel | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libpango-1.0.so | |
277 | %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so | |
278 | %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so | |
279 | %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so | |
280 | %{_pkgconfigdir}/pango.pc | |
281 | %{_pkgconfigdir}/pangocairo.pc | |
282 | %{_pkgconfigdir}/pangoft2.pc | |
283 | %{_pkgconfigdir}/pangoxft.pc | |
284 | %{_includedir}/pango-1.0 | |
285 | %{_datadir}/gir-1.0/Pango*-1.0.gir | |
286 | ||
287 | %if %{with static_libs} | |
288 | %files static | |
289 | %defattr(644,root,root,755) | |
290 | %{_libdir}/libpango-1.0.a | |
291 | %{_libdir}/libpangocairo-1.0.a | |
292 | %{_libdir}/libpangoft2-1.0.a | |
293 | %{_libdir}/libpangoxft-1.0.a | |
294 | %endif | |
295 | ||
296 | %files modules | |
297 | %defattr(644,root,root,755) | |
298 | %attr(755,root,root) %{_libdir}/pango/1.8.0/modules/pango-arabic-lang.so | |
299 | %attr(755,root,root) %{_libdir}/pango/1.8.0/modules/pango-indic-lang.so | |
300 | %if %{with libthai} | |
301 | %attr(755,root,root) %{_libdir}/pango/1.8.0/modules/pango-thai-lang.so | |
302 | %endif | |
303 | %exclude %{_libdir}/pango/1.8.0/modules/pango-basic-fc.so | |
304 | ||
305 | %if %{with apidocs} | |
306 | %files apidocs | |
307 | %defattr(644,root,root,755) | |
308 | %{_gtkdocdir}/pango | |
309 | %endif | |
310 | ||
311 | %files examples | |
312 | %defattr(644,root,root,755) | |
313 | %{_examplesdir}/%{name}-%{version} |