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