]> git.pld-linux.org Git - packages/gtk+.git/blob - gtk+.spec
8fe903de83708787361f47d422e2896e6c74149b
[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:        15
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}
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}
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
184 mkdir gtk-doc
185 tar xzf %{SOURCE1} -C gtk-doc
186 tar xzf %{SOURCE2} -C gtk-doc
187
188 %build
189 rm -f missing aclocal.m4 acinclude.m4
190 %{__libtoolize}
191 %{__gettextize}
192 %{__aclocal}
193 %{__autoconf}
194 %{__automake}
195 %configure \
196         --enable-debug=no \
197         --enable-shm \
198         --with-xinput=xfree
199
200 %{__make} m4datadir=%{_aclocaldir}
201
202 %install
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT%{_libdir}/gtk/themes/engines
205
206 %{__make} install \
207         DESTDIR=$RPM_BUILD_ROOT \
208         m4datadir=%{_aclocaldir} \
209         pkgconfigdir=%{_pkgconfigdir}
210
211 %find_lang %{name}
212
213 %clean
214 rm -rf $RPM_BUILD_ROOT
215
216 %post   -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
218
219 %post devel
220 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
221
222 %postun devel
223 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
224
225 %files -f %{name}.lang
226 %defattr(644,root,root,755)
227 %doc AUTHORS NEWS README TODO
228 %attr(755,root,root) %{_libdir}/lib*.so.*.*
229
230 %dir %{_sysconfdir}/gtk
231 %lang(az) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.az
232 %lang(be) %{_sysconfdir}/gtk/gtkrc.be
233 %lang(bg) %{_sysconfdir}/gtk/gtkrc.bg*
234 %lang(cs) %{_sysconfdir}/gtk/gtkrc.cs
235 %lang(cy) %{_sysconfdir}/gtk/gtkrc.cy
236 %lang(el) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.el
237 %lang(eo) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.eo
238 %lang(et) %{_sysconfdir}/gtk/gtkrc.et
239 %lang(ga) %{_sysconfdir}/gtk/gtkrc.ga
240 %lang(he) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.he
241 %lang(he) %{_sysconfdir}/gtk/gtkrc.he_*
242 %lang(hr) %{_sysconfdir}/gtk/gtkrc.hr
243 %lang(hu) %{_sysconfdir}/gtk/gtkrc.hu
244 %lang(hy) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.hy
245 %lang(ja) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ja
246 %lang(ka) %{_sysconfdir}/gtk/gtkrc.ka*
247 %lang(ko) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ko
248 %lang(lt) %{_sysconfdir}/gtk/gtkrc.lt
249 %lang(lv) %{_sysconfdir}/gtk/gtkrc.lv
250 %lang(mi) %{_sysconfdir}/gtk/gtkrc.mi
251 %lang(mk) %{_sysconfdir}/gtk/gtkrc.mk
252 %lang(pl) %{_sysconfdir}/gtk/gtkrc.pl
253 %lang(ro) %{_sysconfdir}/gtk/gtkrc.ro
254 %lang(ru) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.ru
255 %lang(ru) %{_sysconfdir}/gtk/gtkrc.ru_RU.iso88595
256 %lang(sk) %{_sysconfdir}/gtk/gtkrc.sk
257 %lang(sl) %{_sysconfdir}/gtk/gtkrc.sl
258 # "sp" was meant to be "sr@cyrillic"
259 %lang(sr) %{_sysconfdir}/gtk/gtkrc.sp
260 %lang(sq) %{_sysconfdir}/gtk/gtkrc.sq
261 %lang(sr) %{_sysconfdir}/gtk/gtkrc.sr
262 %lang(th) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.th
263 %lang(tr) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.tr
264 %lang(uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.uk
265 %lang(vi) %{_sysconfdir}/gtk/gtkrc.vi
266 %lang(vi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.vi_VN.tcvn
267 %lang(vi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.vi_VN.viscii
268 %lang(vi) %{_sysconfdir}/gtk/gtkrc.vi_VN.viscii111
269 %lang(yi) %{_sysconfdir}/gtk/gtkrc.yi
270 %lang(zh) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.zh_CN
271 %lang(zh) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.zh_TW.big5
272 %lang(be,bg,mk,ru,sr,uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.cp1251
273 %lang(he,yi) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.cp1255
274 %lang(cs,hr,hu,pl,ro,sk,sl,sq,sr) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-2
275 %lang(bg,mk,ru,sr,uk) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-5
276 %lang(et,lt,lv) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-13
277 %lang(br,cy,ga) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-14
278 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gtk/gtkrc.iso-8859-15
279
280 %dir %{_libdir}/gtk
281 %dir %{_libdir}/gtk/themes
282 %dir %{_libdir}/gtk/themes/engines
283
284 %{_datadir}/themes/Default/gtk
285
286 %files devel
287 %defattr(644,root,root,755)
288 %doc ChangeLog gtk-doc/{gdk,gtk}
289 %{_libdir}/lib*.la
290 %attr(755,root,root) %{_libdir}/lib*.so
291 %attr(755,root,root) %{_bindir}/*
292 %{_pkgconfigdir}/*
293 %{_includedir}/*
294 %{_infodir}/*.info*
295 %{_aclocaldir}/*.m4
296 %{_mandir}/man1/gtk-config.1*
297
298 %files static
299 %defattr(644,root,root,755)
300 %{_libdir}/lib*.a
This page took 0.042731 seconds and 2 git commands to generate.