]> git.pld-linux.org Git - packages/pango.git/blame - pango.spec
- converted to UTF-8
[packages/pango.git] / pango.spec
CommitLineData
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 10Summary: System for layout and rendering of internationalized text
22bfacc6
JR
11Summary(pl.UTF-8): System renderowania międzynarodowego tekstu
12Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado
22c8cfb6 13Name: pango
4312ae64 14Version: 1.14.10
1b1357f9 15Release: 1
fe0b7782 16Epoch: 1
22c8cfb6 17License: LGPL
712888e1 18Group: X11/Libraries
775e528b 19Source0: http://ftp.gnome.org/pub/gnome/sources/pango/1.14/%{name}-%{version}.tar.bz2
4312ae64 20# Source0-md5: e9fc2f8168e74e2fa0aa8238ee0e9c06
63327410 21Patch0: %{name}-xfonts.patch
10f70466 22Patch1: %{name}-arch_confdir.patch
22c8cfb6 23URL: http://www.pango.org/
d58e4b98 24BuildRequires: autoconf >= 2.59-9
a5153cef 25BuildRequires: automake >= 1:1.7
f6adc73c 26BuildRequires: cairo-devel >= 1.2.4
6d53487d 27BuildRequires: docbook-dtd412-xml
28BuildRequires: docbook-style-xsl
08f039cf 29BuildRequires: fontconfig-devel >= 1:2.4.0
6d53487d 30BuildRequires: freetype-devel >= 2.1.7
4312ae64 31BuildRequires: glib2-devel >= 1:2.12.9
e614af76 32%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
33BuildRequires: gtk-doc-automake >= 1.7
dc501d35 34BuildRequires: libtool >= 1:1.4.2-9
9526067d 35BuildRequires: perl-base
fc102159 36BuildRequires: pkgconfig
7aad84ab 37BuildRequires: rpmbuild(macros) >= 1.197
b726bca4
JB
38BuildRequires: xorg-lib-libX11-devel
39BuildRequires: xorg-lib-libXft-devel >= 2.1.0
f6adc73c 40Requires: cairo >= 1.2.4
6d53487d 41Requires: freetype >= 2.1.7
4312ae64 42Requires: glib2 >= 1:2.12.9
54fdbbf8 43Obsoletes: libpango24
f28958a9 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a6b89e6e 45
a6b89e6e 46%description
47System for layout and rendering of internationalized text.
48
22bfacc6
JR
49%description -l pl.UTF-8
50System obsługi i renderowania międzynarodowego tekstu.
a6bc9fc7 51
22bfacc6
JR
52%description -l pt_BR.UTF-8
53Pango é um sistema para layout e renderização de texto
ce4a83d9 54internacionalizado.
55
a6b89e6e 56%package devel
22c8cfb6 57Summary: System for layout and rendering of internationalized text
22bfacc6
JR
58Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu
59Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado
712888e1 60Group: X11/Development/Libraries
fe0b7782 61Requires: %{name} = %{epoch}:%{version}-%{release}
f6adc73c 62Requires: cairo-devel >= 1.2.4
6d53487d 63Requires: freetype-devel >= 2.1.7
4312ae64 64Requires: glib2-devel >= 1:2.12.9
b726bca4
JB
65Requires: xorg-lib-libX11-devel
66Requires: xorg-lib-libXft-devel >= 2.1.0
54fdbbf8 67Obsoletes: libpango24-devel
a6b89e6e 68
69%description devel
a6bc9fc7
AM
70Developer files for pango.
71
22bfacc6 72%description devel -l pl.UTF-8
a6bc9fc7 73Pliki developerskie pango.
a6b89e6e 74
22bfacc6
JR
75%description devel -l pt_BR.UTF-8
76Pango é um sistema para layout e renderização de texto
ce4a83d9 77internacionalizado.
78
89bc8f01 79%package static
73d98c3b 80Summary: Static pango libraries
22bfacc6
JR
81Summary(pl.UTF-8): Biblioteki statyczne pango
82Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado
712888e1 83Group: X11/Development/Libraries
fe0b7782 84Requires: %{name}-devel = %{epoch}:%{version}-%{release}
89bc8f01 85
86%description static
73d98c3b 87Static pango libraries.
89bc8f01 88
22bfacc6 89%description static -l pl.UTF-8
73d98c3b 90Biblioteki statyczne pango.
89bc8f01 91
22bfacc6
JR
92%description static -l pt_BR.UTF-8
93Pango é um sistema para layout e renderização de texto
ce4a83d9 94internacionalizado.
95
518211d5 96%package modules
97Summary: System for layout and rendering of internationalized text
22bfacc6
JR
98Summary(pl.UTF-8): System obsługi i renderowania międzynarodowego tekstu
99Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado
518211d5 100Group: X11/Development/Libraries
f7e43318 101Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
fe0b7782 102Requires: %{name} = %{epoch}:%{version}-%{release}
518211d5 103
104%description modules
105System for layout and rendering of internationalized text.
106
107This package contains pango modules for: arabic, bengali, devanagari,
108gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
109
22bfacc6
JR
110%description modules -l pl.UTF-8
111System obsługi i renderowania międzynarodowego tekstu.
518211d5 112
22bfacc6 113Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari,
518211d5 114gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
115
22bfacc6
JR
116%description modules -l pt_BR.UTF-8
117Pango é um sistema para layout e renderização de texto
518211d5 118internacionalizado.
119
21e03050
JB
120%package apidocs
121Summary: Pango API documentation
22bfacc6 122Summary(pl.UTF-8): Dokumentacja API pango
21e03050
JB
123Group: Documentation
124Requires: gtk-doc-common
125
126%description apidocs
127Pango API documentation.
128
22bfacc6 129%description apidocs -l pl.UTF-8
21e03050
JB
130Dokumentacja 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
154rm -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 163rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.5.0/modules/*.{la,a}
bfee300a 164
a6b89e6e 165%clean
166rm -rf $RPM_BUILD_ROOT
167
168%post
0b53ddd6 169/sbin/ldconfig
35f8c7dd 170umask 022
2c74dbc4 171%{_bindir}/pango-querymodules > %{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules
6d53487d 172exit 0
a6b89e6e 173
0b53ddd6 174%postun -p /sbin/ldconfig
fc102159 175
518211d5 176%post modules
177umask 022
2c74dbc4 178%{_bindir}/pango-querymodules > %{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules
6d53487d 179exit 0
518211d5 180
181%postun modules
182umask 022
2c74dbc4 183%{_bindir}/pango-querymodules > %{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules
6d53487d 184exit 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
This page took 0.107891 seconds and 4 git commands to generate.