]> git.pld-linux.org Git - packages/pango.git/blob - pango.spec
- added libthai as a R: for -devel; rel. 2
[packages/pango.git] / pango.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  libthai         # don't build thai-lang module
5 %bcond_without  static_libs     # don't build static library
6 #
7 Summary:        System for layout and rendering of internationalized text
8 Summary(pl.UTF-8):      System renderowania międzynarodowego tekstu
9 Summary(pt_BR.UTF-8):   Sistema para layout e renderização de texto internacionalizado
10 Name:           pango
11 Version:        1.38.0
12 Release:        2
13 Epoch:          1
14 License:        LGPL v2+
15 Group:          X11/Libraries
16 Source0:        http://ftp.gnome.org/pub/GNOME/sources/pango/1.38/%{name}-%{version}.tar.xz
17 # Source0-md5:  5a358e5afbb6b2e82cf2cb02ca9cce86
18 URL:            http://www.pango.org/
19 BuildRequires:  autoconf >= 2.59-9
20 BuildRequires:  automake >= 1:1.9
21 BuildRequires:  cairo-devel >= 1.12.10
22 BuildRequires:  cairo-gobject-devel >= 1.12.10
23 BuildRequires:  docbook-dtd412-xml
24 BuildRequires:  docbook-style-xsl
25 BuildRequires:  fontconfig-devel >= 1:2.10.91
26 BuildRequires:  freetype-devel >= 2.1.7
27 BuildRequires:  glib2-devel >= 1:2.33.12
28 BuildRequires:  gobject-introspection-devel >= 0.9.5
29 %if %{with apidocs}
30 BuildRequires:  gtk-doc >= 1.8
31 BuildRequires:  gtk-doc-automake >= 1.8
32 %endif
33 BuildRequires:  harfbuzz-devel >= 0.9.9
34 %{?with_libthai:BuildRequires:  libthai-devel >= 0.1.9}
35 BuildRequires:  libtool >= 2:1.5
36 BuildRequires:  perl-base
37 BuildRequires:  pkgconfig
38 BuildRequires:  python-modules
39 BuildRequires:  rpmbuild(macros) >= 1.197
40 BuildRequires:  tar >= 1:1.22
41 BuildRequires:  xorg-lib-libX11-devel
42 BuildRequires:  xorg-lib-libXft-devel >= 2.1.0
43 BuildRequires:  xz
44 Requires:       cairo >= 1.12.10
45 Requires:       fontconfig-libs >= 1:2.10.91
46 Requires:       freetype >= 2.1.7
47 Requires:       glib2 >= 1:2.33.12
48 Requires:       harfbuzz >= 0.9.9
49 Obsoletes:      libpango24
50 Obsoletes:      pango-modules < 1:1.38.0-1
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %description
54 System for layout and rendering of internationalized text.
55
56 %description -l pl.UTF-8
57 System obsługi i renderowania międzynarodowego tekstu.
58
59 %description -l pt_BR.UTF-8
60 Pango é um sistema para layout e renderização de texto
61 internacionalizado.
62
63 %package view
64 Summary:        Pango text viewer
65 Summary(pl.UTF-8):      Przeglądarka tekstu pango
66 Group:          X11/Applications
67 Requires:       %{name} = %{epoch}:%{version}-%{release}
68
69 %description view
70 Pango text viewer.
71
72 %description view -l pl.UTF-8
73 Przeglądarka tekstu pango.
74
75 %package devel
76 Summary:        Header files for Pango libraries
77 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Pango
78 Group:          X11/Development/Libraries
79 Requires:       %{name} = %{epoch}:%{version}-%{release}
80 Requires:       cairo-devel >= 1.12.10
81 Requires:       fontconfig-devel >= 1:2.10.91
82 Requires:       freetype-devel >= 2.1.7
83 Requires:       glib2-devel >= 1:2.33.12
84 Requires:       harfbuzz-devel >= 0.9.9
85 %{?with_libthai:BuildRequires:  libthai-devel >= 0.1.9}
86 Requires:       xorg-lib-libX11-devel
87 Requires:       xorg-lib-libXft-devel >= 2.1.0
88 Obsoletes:      libpango24-devel
89
90 %description devel
91 Header files for Pango libraries.
92
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe bibliotek Pango.
95
96 %package static
97 Summary:        Static pango libraries
98 Summary(pl.UTF-8):      Biblioteki statyczne pango
99 Group:          X11/Development/Libraries
100 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
101
102 %description static
103 Static pango libraries.
104
105 %description static -l pl.UTF-8
106 Biblioteki statyczne pango.
107
108 %package modules
109 Summary:        Pango modules for various scripts
110 Summary(pl.UTF-8):      Moduły Pango dla różnych systemów pisma
111 Group:          X11/Development/Libraries
112 Requires(post,postun):  %{name} = %{epoch}:%{version}-%{release}
113 Requires:       %{name} = %{epoch}:%{version}-%{release}
114 %{?with_libthai:Requires:       libthai >= 0.1.9}
115
116 %description modules
117 Pango is a system for layout and rendering of internationalized text.
118
119 This package contains pango modules for: arabic, bengali, devanagari,
120 gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
121
122 %description modules -l pl.UTF-8
123 Pango to system obsługi i renderowania międzynarodowego tekstu.
124
125 Pakiet zawiera moduły pango dla języków: arabic, bengali, devanagari,
126 gujarati, gurmukhi, hangul, hebrew, indic, myanmar, tamil, thai.
127
128 %package apidocs
129 Summary:        Pango API documentation
130 Summary(pl.UTF-8):      Dokumentacja API pango
131 Group:          Documentation
132 Requires:       gtk-doc-common
133
134 %description apidocs
135 Pango API documentation.
136
137 %description apidocs -l pl.UTF-8
138 Dokumentacja API pango.
139
140 %package examples
141 Summary:        pango - example programs
142 Summary(pl.UTF-8):      pango - przykładowe programy
143 Group:          X11/Development/Libraries
144
145 %description examples
146 pango - example programs.
147
148 %description examples -l pl.UTF-8
149 pango - przykładowe programy.
150
151 %prep
152 %setup -q
153
154 %build
155 %{?with_apidocs:%{__gtkdocize}}
156 %{__libtoolize}
157 %{__aclocal}
158 %{__autoheader}
159 %{__autoconf}
160 %{__automake}
161 %configure \
162         --disable-silent-rules \
163         --enable-debug=%{?debug:yes}%{!?debug:minimum} \
164         %{__enable_disable apidocs gtk-doc} \
165         --enable-man \
166         %{__enable_disable static_libs static} \
167         --with-html-dir=%{_gtkdocdir}
168
169 # some generator script requires access to newely created .pc files
170 export PKG_CONFIG_PATH="$PWD"
171
172 %{__make}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
177
178 %{__make} install \
179         DESTDIR=$RPM_BUILD_ROOT \
180         pkgconfigdir=%{_pkgconfigdir}
181
182 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
183
184 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/pango}
185
186 %clean
187 rm -rf $RPM_BUILD_ROOT
188
189 %post -p /sbin/ldconfig
190 %postun -p /sbin/ldconfig
191
192 %files
193 %defattr(644,root,root,755)
194 %doc AUTHORS ChangeLog HACKING NEWS README THANKS
195 %attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/libpango-1.0.so.0
197 %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.*
198 %attr(755,root,root) %ghost %{_libdir}/libpangocairo-1.0.so.0
199 %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.*
200 %attr(755,root,root) %ghost %{_libdir}/libpangoft2-1.0.so.0
201 %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.*
202 %attr(755,root,root) %ghost %{_libdir}/libpangoxft-1.0.so.0
203 %{_libdir}/girepository-1.0/Pango*-1.0.typelib
204
205 %files view
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_bindir}/pango-view
208 %{_mandir}/man1/pango-view.1*
209
210 %files devel
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/libpango-1.0.so
213 %attr(755,root,root) %{_libdir}/libpangocairo-1.0.so
214 %attr(755,root,root) %{_libdir}/libpangoft2-1.0.so
215 %attr(755,root,root) %{_libdir}/libpangoxft-1.0.so
216 %{_libdir}/libpango-1.0.la
217 %{_libdir}/libpangocairo-1.0.la
218 %{_libdir}/libpangoft2-1.0.la
219 %{_libdir}/libpangoxft-1.0.la
220 %{_pkgconfigdir}/pango.pc
221 %{_pkgconfigdir}/pangocairo.pc
222 %{_pkgconfigdir}/pangoft2.pc
223 %{_pkgconfigdir}/pangoxft.pc
224 %{_includedir}/pango-1.0
225 %{_datadir}/gir-1.0/Pango*-1.0.gir
226
227 %if %{with static_libs}
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/libpango-1.0.a
231 %{_libdir}/libpangocairo-1.0.a
232 %{_libdir}/libpangoft2-1.0.a
233 %{_libdir}/libpangoxft-1.0.a
234 %endif
235
236 %if %{with apidocs}
237 %files apidocs
238 %defattr(644,root,root,755)
239 %{_gtkdocdir}/pango
240 %endif
241
242 %files examples
243 %defattr(644,root,root,755)
244 %{_examplesdir}/%{name}-%{version}
This page took 0.067312 seconds and 4 git commands to generate.