]> git.pld-linux.org Git - packages/pango.git/blob - pango.spec
a9d8e7d6818c98a90f32cfa102951d3ac4a51283
[packages/pango.git] / pango.spec
1 #
2 # Conditional build:
3 %bcond_with     xlibs           # use pkgconfig to find libX11 CFLAGS
4 %bcond_without  apidocs         # disable gtk-doc
5 %bcond_without  static_libs     # don't build static library
6 #
7 Summary:        System for layout and rendering of internationalized text
8 Summary(pl):    System renderowania miêdzynarodowego tekstu
9 Summary(pt_BR): Sistema para layout e renderização de texto internacionalizado
10 Name:           pango
11 Version:        1.10.1
12 Release:        1
13 Epoch:          1
14 License:        LGPL
15 Group:          X11/Libraries
16 Source0:        ftp://ftp.gtk.org/pub/gtk/v2.8/%{name}-%{version}.tar.bz2
17 # Source0-md5:  1ff4c96982f61ea6f390d09a4febdf18
18 Patch0:         %{name}-xfonts.patch
19 Patch1:         %{name}-xlibs.patch
20 URL:            http://www.pango.org/
21 %{!?with_xlibs:BuildRequires:   XFree86-devel}
22 BuildRequires:  autoconf >= 2.54
23 BuildRequires:  automake >= 1:1.7
24 BuildRequires:  cairo-devel >= 1.0.0
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  docbook-style-xsl
27 BuildRequires:  fontconfig-devel >= 1.0.1
28 BuildRequires:  freetype-devel >= 2.1.7
29 BuildRequires:  glib2-devel >= 1:2.8.0
30 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.0}
31 BuildRequires:  gtk-doc-automake >= 1.0
32 %{?with_xlibs:BuildRequires:    libX11-devel}
33 BuildRequires:  libtool >= 1:1.4.2-9
34 BuildRequires:  perl-base
35 BuildRequires:  pkgconfig
36 BuildRequires:  rpmbuild(macros) >= 1.197
37 BuildRequires:  xft-devel >= 2.1.0
38 Requires(post): /sbin/ldconfig
39 Requires:       cairo >= 1.0.0
40 Requires:       freetype >= 2.1.7
41 Requires:       glib2 >= 1:2.8.0
42 Obsoletes:      libpango24
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 System for layout and rendering of internationalized text.
47
48 %description -l pl
49 System obs³ugi i renderowania miêdzynarodowego tekstu.
50
51 %description -l pt_BR
52 Pango é um sistema para layout e renderização de texto
53 internacionalizado.
54
55 %package devel
56 Summary:        System for layout and rendering of internationalized text
57 Summary(pl):    System obs³ugi i renderowania miêdzynarodowego tekstu
58 Summary(pt_BR): Sistema para layout e renderização de texto internacionalizado
59 Group:          X11/Development/Libraries
60 Requires:       %{name} = %{epoch}:%{version}-%{release}
61 %{!?with_xlibs:Requires:        XFree86-devel}
62 Requires:       cairo-devel >= 1.0.0
63 Requires:       freetype-devel >= 2.1.7
64 Requires:       glib2-devel >= 1:2.8.0
65 Requires:       gtk-doc-common
66 %{?with_xlibs:Requires: libX11-devel}
67 Requires:       xft-devel >= 2.1.0
68 Obsoletes:      libpango24-devel
69
70 %description devel
71 Developer files for pango.
72
73 %description devel -l pl
74 Pliki developerskie pango.
75
76 %description devel -l pt_BR
77 Pango é um sistema para layout e renderização de texto
78 internacionalizado.
79
80 %package static
81 Summary:        Static pango libraries
82 Summary(pl):    Biblioteki statyczne pango
83 Summary(pt_BR): Sistema para layout e renderização de texto internacionalizado
84 Group:          X11/Development/Libraries
85 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
86
87 %description static
88 Static pango libraries.
89
90 %description static -l pl
91 Biblioteki statyczne pango.
92
93 %description static -l pt_BR
94 Pango é um sistema para layout e renderização de texto
95 internacionalizado.
96
97 %package modules
98 Summary:        System for layout and rendering of internationalized text
99 Summary(pl):    System obs³ugi i renderowania miêdzynarodowego tekstu
100 Summary(pt_BR): Sistema para layout e renderização de texto internacionalizado
101 Group:          X11/Development/Libraries
102 Requires(post,postun):  %{name} = %{epoch}:%{version}-%{release}
103 Requires:       %{name} = %{epoch}:%{version}-%{release}
104
105 %description modules
106 System for layout and rendering of internationalized text.
107
108 This package contains pango modules for: arabic, bengali, devanagari,
109 gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
110
111 %description modules -l pl
112 System obs³ugi i renderowania miêdzynarodowego tekstu.
113
114 Pakiet zawiera modu³y pango dla jêzyków: arabic, bengali, devanagari,
115 gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
116
117 %description modules -l pt_BR
118 Pango é um sistema para layout e renderização de texto
119 internacionalizado.
120
121 %prep
122 %setup -q
123 %patch0 -p1
124 %{?with_xlibs:%patch1 -p1}
125
126 %build
127 %{?with_apidocs:%{__gtkdocize}}
128 %{__libtoolize}
129 %{__aclocal}
130 %{__autoheader}
131 %{__autoconf}
132 %{__automake}
133 %configure \
134         --with-fribidi \
135         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
136         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
137         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
138         --enable-debug=%{?debug:yes}%{!?debug:minimum} \
139         --enable-man
140 %{__make}
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT \
147         pkgconfigdir=%{_pkgconfigdir}
148
149 > $RPM_BUILD_ROOT%{_sysconfdir}/pango/pango.modules
150
151 # useless (modules loaded through libgmodule)
152 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.4.0/modules/*.{la,a}
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %post
158 /sbin/ldconfig
159 umask 022
160 %{_bindir}/pango-querymodules > %{_sysconfdir}/pango/pango.modules
161 exit 0
162
163 %postun -p /sbin/ldconfig
164
165 %post modules
166 umask 022
167 %{_bindir}/pango-querymodules > %{_sysconfdir}/pango/pango.modules
168 exit 0
169
170 %postun modules
171 umask 022
172 %{_bindir}/pango-querymodules > %{_sysconfdir}/pango/pango.modules
173 exit 0
174
175 %files
176 %defattr(644,root,root,755)
177 %doc AUTHORS NEWS README examples/HELLO.utf8
178 %attr(755,root,root) %{_bindir}/pango-querymodules
179 %attr(755,root,root) %{_libdir}/lib*.so.*.*
180 %dir %{_libdir}/pango
181 %dir %{_libdir}/pango/1.4.0
182 %dir %{_libdir}/pango/1.4.0/modules
183 %attr(755,root,root) %{_libdir}/pango/1.4.0/modules/*basic*.so
184 %dir %{_sysconfdir}/pango
185 %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/pango/pangox.aliases
186 %ghost %{_sysconfdir}/pango/pango.modules
187 %{_mandir}/man1/*
188
189 %files devel
190 %defattr(644,root,root,755)
191 %doc ChangeLog TODO
192 %attr(755,root,root) %{_libdir}/libpango*.so
193 %{_libdir}/libpango*.la
194 %{_pkgconfigdir}/*
195 %{_includedir}/*
196 %{?with_apidocs:%{_gtkdocdir}/pango}
197
198 %if %{with static_libs}
199 %files static
200 %defattr(644,root,root,755)
201 %{_libdir}/libpango*.a
202 %endif
203
204 %files modules
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/pango/1.4.0/modules/*.so
207 %exclude %{_libdir}/pango/1.4.0/modules/*basic*.so
This page took 0.038202 seconds and 3 git commands to generate.