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