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