]> git.pld-linux.org Git - packages/gtk+.git/blob - gtk+.spec
- [Gg]tk+ -> GTK+
[packages/gtk+.git] / gtk+.spec
1 Summary:        The Gimp Toolkit
2 Summary(cs):    Sada nástrojù pro Gimp
3 Summary(de):    Der Gimp-Toolkit
4 Summary(es):    Conjunto de herramientas Gimp
5 Summary(fi):    Gimp-työkalukokoelma
6 Summary(fr):    Le toolkit de Gimp
7 Summary(it):    Il toolkit per Gimp
8 Summary(pl):    Gimp Toolkit
9 Summary(pt_BR): Kit de ferramentas Gimp
10 Summary(tr):    Gimp ToolKit arayüz kitaplýðý
11 Name:           gtk+
12 Version:        1.2.10
13 Release:        16
14 Epoch:          1
15 License:        LGPL
16 Group:          X11/Libraries
17 # Source0-md5:  4d5cb2fc7fb7830e4af9747a36bfce20
18 Source0:        ftp://ftp.gtk.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz
19 # Source1-md5:  b80957f7e3148dc3b540fba0c88e51e5
20 Source1:        http://developer.gnome.org/doc/API/gdk-docs.tar.gz
21 # Source2-md5:  ae1d6638d1c4799a4a328f27f62aa224
22 Source2:        http://developer.gnome.org/doc/API/gtk-docs.tar.gz
23 Patch0:         %{name}-info.patch
24 Patch1:         %{name}-ahiguti.patch
25 Patch2:         %{name}-strip.patch
26 Patch3:         %{name}-pkgconfig.patch
27 Patch4:         %{name}-focus.patch
28 Patch5:         %{name}-am_fix.patch
29 Patch6:         %{name}-ac_fix.patch
30 Patch7:         %{name}-localenames.patch
31 Patch8:         %{name}-link.patch
32 Patch9:         %{name}-am18.patch
33 URL:            http://www.gtk.org/
34 Icon:           gtk+.xpm
35 BuildRequires:  XFree86-devel
36 BuildRequires:  autoconf >= 2.53
37 BuildRequires:  automake >= 1.7
38 BuildRequires:  gettext-devel
39 BuildRequires:  glib-devel >= %{version}
40 BuildRequires:  libtool >= 1.4.2-9
41 Requires:       glib >= %{version}
42 Requires:       iconv
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Obsoletes:      libgtk+1.2
45
46 %description
47 GTK+, which stands for the Gimp ToolKit, is a library for creating
48 graphical user interfaces for the X Window System. It is designed to
49 be small, efficient, and flexible. GTK+ is written in C with a very
50 object-oriented approach. Gdk (part of GTK+) is a drawing toolkit
51 which provides a thin layer over Xlib to help automate things like
52 dealing with different color depths, and GTK is a widget set for
53 creating user interfaces.
54
55 %description -l cs
56 Knihovny X pùvodnì psané pro GIMP, které nyní pou¾ívá také øada jiných
57 programù.
58
59 %description -l da
60 X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere
61 forskellige programmer.
62
63 %description -l de
64 Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und
65 mittlerweile für eine ganze Reihe anderer Programme benutzt werden.
66
67 %description -l fr
68 X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita
69 käytetään nyt myös useissa muissakin ohjelmissa.
70
71 %description -l it
72 Libreria X scritta per GIMP. Viene usata da diversi programmi.
73
74 %description -l pl
75 GTK+, która to biblioteka sta³a siê podstaw± programu Gimp, zawiera
76 funkcje do tworzenia graficznego interfejsu u¿ytkownika pod X Window.
77 By³a tworzona z za³o¿eniem ¿eby by³a ma³a, efektywna i wygodna. GTK+
78 jest napisane w C z podej¶ciem zorientowanym bardzo obiektowo. Gdk
79 (czê¶æ GTK+) jest warstw± po¶redni± pomiêdzy Xlib i reszt± toolkitu
80 zapewniaj±c± pracê niezale¿nie od g³êbi koloru (ilo¶ci bitów na
81 piksel). GTK (druga czê¶æ GTK+) jest natomiast ju¿ zbiorem ró¿nego
82 rodzaju kontrolek s³u¿±cych do tworzenia interfejsu u¿ytkownika.
83
84 %description -l pt_BR
85 Bibliotecas X originalmente escritas para o GIMP, que agora estão
86 sendo também usadas por vários outros programas.
87
88 %description -l tr
89 Baþlangýçta GIMP için yazýlmýþ X kitaplýklarý. Þu anda baþka
90 programlarca da kullanýlmaktadýr.
91
92 %package devel
93 Summary:        GTK+ header files and development documentation
94 Summary(cs):    Sada nástrojù GIMP a kreslící kit GIMP
95 Summary(da):    GIMP Toolkit og GIMP Tegnings-værktøj
96 Summary(de):    GIMP Toolkit und GIMP Drawing Kit
97 Summary(es):    Conjunto de herramienta y conjunto de diseño GIMP
98 Summary(fi):    Gimp-työkalukokoelma ja Gimp-piirtotyökalut
99 Summary(fr):    Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK)
100 Summary(it):    GIMP Toolkit and GIMP Drawing Kit
101 Summary(pl):    Pliki nag³ówkowe i dokumentacja do GTK+
102 Summary(pt_BR): Kit de ferramenta e kit de desenho GIMP
103 Summary(tr):    GIMP araç takýmý ve çizim takýmý
104 Group:          X11/Development/Libraries
105 Requires:       %{name} = %{epoch}:%{version}-%{release}
106 Requires:       glib-devel >= %{version}
107 # Every program using GTK+ should get a list of libraries to link with by
108 # executing `gtk-config --libs`. All libraries listed below are returned by
109 # this call, so they are required by every program compiled with GTK+.
110 Requires:       XFree86-devel
111 Requires:       glib-devel
112 Obsoletes:      libgtk+1.2-devel
113 Conflicts:      autoconf < 2.13
114 Conflicts:      automake < 1.4
115 Conflicts:      libtool < 1.3.2
116
117 %description devel
118 Libraries and header files for the GIMP's X libraries, which are
119 available as public libraries. GLIB includes generally useful data
120 structures, GDK is a drawing toolkit which provides a thin layer over
121 Xlib to help automate things like dealing with different color depths,
122 and GTK is a widget set for creating user interfaces.
123
124 %description devel -l es
125 Bibliotecas y archivos de inclusión del GIMP, que están disponibles
126 como bibliotecas públicas. GLIB incluye estructuras de datos útiles; e
127 GDK es un kit de herramientas que provee una camada sobre Xlib para
128 ayudar a automatizar cosas como el uso de diferentes profundidades de
129 color; y GTK es un conjunto de widgets para crear interfaces de
130 usuario.
131
132 %description devel -l pl
133 Pliki nag³ówkowe i dokumentacja do bibliotek GTK+.
134
135 %description devel -l pt_BR
136 Bibliotecas e arquivos de inclusão do GIMP, que estão disponíveis como
137 bibliotecas públicas. A GLIB inclui estruturas de dados úteis; o GDK é
138 um kit de ferramentas que provê uma camada sobre a Xlib para ajudar a
139 automatizar coisas como o uso de diferentes profundidades de cor; e
140 GTK é um conjunto de widgets para criar interfaces de usuário.
141
142 %package static
143 Summary:        GTK+ static libraries
144 Summary(es):    Bibliotecas estáticas del GIMP
145 Summary(pl):    Biblioteki statyczne GTK+
146 Summary(pt_BR): Bibliotecas estáticas do GIMP
147 Group:          X11/Development/Libraries
148 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
149
150 %description static
151 Static libraries for the GIMP's X libraries, which are available as
152 public libraries.
153
154 %description static -l es
155 Bibliotecas estáticas del GIMP, que están disponibles como bibliotecas
156 públicas.
157
158 %description static -l pl
159 Biblioteki statyczne GTK+.
160
161 %description static -l pt_BR
162 Bibliotecas estáticas do GIMP, que estão disponíveis como bibliotecas
163 públicas.
164
165 %prep
166 %setup -q
167 %patch0 -p1
168 %patch1 -p1
169 %patch2 -p1
170 %patch3 -p1
171 %patch4 -p1
172 %patch5 -p1
173 %patch6 -p1
174 %patch7 -p1
175 %patch8 -p1
176 %patch9 -p1
177
178 mv -f po/{no,nb}.po
179 mv -f po/{sr,sr@Latn}.po
180 mv -f po/{sp,sr}.po
181 mv -f po/{zh_CN.GB2312,zh_CN}.po
182 mv -f po/{zh_TW.Big5,zh_TW}.po
183 rm -f po/{no,sp,sr,zh*}.gmo
184
185 mkdir gtk-doc
186 tar xzf %{SOURCE1} -C gtk-doc
187 tar xzf %{SOURCE2} -C gtk-doc
188
189 %build
190 rm -f missing aclocal.m4 acinclude.m4
191 %{__libtoolize}
192 %{__gettextize}
193 %{__aclocal}
194 %{__autoconf}
195 %{__automake}
196 %configure \
197         --enable-debug=no \
198         --enable-shm \
199         --with-x \
200         --with-xinput=xfree
201
202 %{__make} m4datadir=%{_aclocaldir}
203
204 %install
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_libdir}/gtk/themes/engines
207
208 %{__make} install \
209         DESTDIR=$RPM_BUILD_ROOT \
210         m4datadir=%{_aclocaldir} \
211         pkgconfigdir=%{_pkgconfigdir}
212
213 %find_lang %{name}
214
215 %clean
216 rm -rf $RPM_BUILD_ROOT
217
218 %post   -p /sbin/ldconfig
219 %postun -p /sbin/ldconfig
220
221 %post devel
222 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
223
224 %postun devel
225 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
226
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc AUTHORS NEWS README TODO
230 %attr(755,root,root) %{_libdir}/lib*.so.*.*
231
232 %dir %{_sysconfdir}/gtk
233 %lang(az) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.az
234 %lang(be) %{_sysconfdir}/gtk/gtkrc.be
235 %lang(bg) %{_sysconfdir}/gtk/gtkrc.bg*
236 %lang(cs) %{_sysconfdir}/gtk/gtkrc.cs
237 %lang(cy) %{_sysconfdir}/gtk/gtkrc.cy
238 %lang(el) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.el
239 %lang(eo) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.eo
240 %lang(et) %{_sysconfdir}/gtk/gtkrc.et
241 %lang(ga) %{_sysconfdir}/gtk/gtkrc.ga
242 %lang(he) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.he
243 %lang(he) %{_sysconfdir}/gtk/gtkrc.he_*
244 %lang(hr) %{_sysconfdir}/gtk/gtkrc.hr
245 %lang(hu) %{_sysconfdir}/gtk/gtkrc.hu
246 %lang(hy) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.hy
247 %lang(ja) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ja
248 %lang(ka) %{_sysconfdir}/gtk/gtkrc.ka*
249 %lang(ko) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ko
250 %lang(lt) %{_sysconfdir}/gtk/gtkrc.lt
251 %lang(lv) %{_sysconfdir}/gtk/gtkrc.lv
252 %lang(mi) %{_sysconfdir}/gtk/gtkrc.mi
253 %lang(mk) %{_sysconfdir}/gtk/gtkrc.mk
254 %lang(pl) %{_sysconfdir}/gtk/gtkrc.pl
255 %lang(ro) %{_sysconfdir}/gtk/gtkrc.ro
256 %lang(ru) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ru
257 %lang(ru) %{_sysconfdir}/gtk/gtkrc.ru_RU.iso88595
258 %lang(sk) %{_sysconfdir}/gtk/gtkrc.sk
259 %lang(sl) %{_sysconfdir}/gtk/gtkrc.sl
260 # "sp" was meant to be "sr@cyrillic"
261 %lang(sr) %{_sysconfdir}/gtk/gtkrc.sp
262 %lang(sq) %{_sysconfdir}/gtk/gtkrc.sq
263 %lang(sr) %{_sysconfdir}/gtk/gtkrc.sr
264 %lang(th) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.th
265 %lang(tr) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.tr
266 %lang(uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.uk
267 %lang(vi) %{_sysconfdir}/gtk/gtkrc.vi
268 %lang(vi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.vi_VN.tcvn
269 %lang(vi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.vi_VN.viscii
270 %lang(vi) %{_sysconfdir}/gtk/gtkrc.vi_VN.viscii111
271 %lang(yi) %{_sysconfdir}/gtk/gtkrc.yi
272 %lang(zh) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.zh_CN
273 %lang(zh) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.zh_TW.big5
274 %lang(be,bg,mk,ru,sr,uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.cp1251
275 %lang(he,yi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.cp1255
276 %lang(cs,hr,hu,pl,ro,sk,sl,sq,sr) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-2
277 %lang(bg,mk,ru,sr,uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-5
278 %lang(et,lt,lv) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-13
279 %lang(br,cy,ga) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-14
280 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-15
281
282 %dir %{_libdir}/gtk
283 %dir %{_libdir}/gtk/themes
284 %dir %{_libdir}/gtk/themes/engines
285
286 %{_datadir}/themes/Default/gtk
287
288 %files devel
289 %defattr(644,root,root,755)
290 %doc ChangeLog gtk-doc/{gdk,gtk}
291 %{_libdir}/lib*.la
292 %attr(755,root,root) %{_libdir}/lib*.so
293 %attr(755,root,root) %{_bindir}/*
294 %{_pkgconfigdir}/*
295 %{_includedir}/*
296 %{_infodir}/*.info*
297 %{_aclocaldir}/*.m4
298 %{_mandir}/man1/gtk-config.1*
299
300 %files static
301 %defattr(644,root,root,755)
302 %{_libdir}/lib*.a
This page took 0.15256 seconds and 3 git commands to generate.