]>
Commit | Line | Data |
---|---|---|
df6da6cb MB |
1 | # TODO |
2 | # - solve this: | |
3 | #| /tmp/gtk+2-2.12.8-root-glen $ find -type f|xargs file|grep -i python | |
4 | #| ./usr/bin/gtk-builder-convert: a python script text executable | |
5 | #| /tmp/gtk+2-2.12.8-root-glen $ head -n 1 ./usr/bin/gtk-builder-convert | |
6 | #| !/usr/bin/env python | |
7 | # | |
8 | # Conditional build: | |
9 | %bcond_without apidocs # disable gtk-doc | |
10 | %bcond_without cups # disable CUPS support | |
11 | %bcond_without static_libs # don't build static library | |
12 | # | |
13 | Summary: The GIMP Toolkit | |
14 | Summary(cs.UTF-8): Sada nástrojů pro GIMP | |
15 | Summary(de.UTF-8): Der GIMP-Toolkit | |
16 | Summary(fi.UTF-8): GIMP-työkalukokoelma | |
17 | Summary(fr.UTF-8): Le toolkit de GIMP | |
18 | Summary(it.UTF-8): Il toolkit per GIMP | |
19 | Summary(pl.UTF-8): GIMP Toolkit | |
20 | Summary(tr.UTF-8): GIMP ToolKit arayüz kitaplığı | |
21 | Name: gtk+3 | |
b53848b1 | 22 | Version: 2.91.2 |
df6da6cb MB |
23 | Release: 1 |
24 | License: LGPL v2+ | |
25 | Group: X11/Libraries | |
b53848b1 MB |
26 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.91/gtk+-%{version}.tar.bz2 |
27 | # Source0-md5: f76a7627f016b5516e264ec043d912ce | |
df6da6cb MB |
28 | URL: http://www.gtk.org/ |
29 | BuildRequires: atk-devel >= 1:1.30.0 | |
30 | BuildRequires: autoconf >= 2.62 | |
31 | BuildRequires: automake >= 1:1.11 | |
b53848b1 | 32 | BuildRequires: cairo-gobject-devel >= 1.10.0 |
df6da6cb MB |
33 | %{?with_cups:BuildRequires: cups-devel} |
34 | BuildRequires: docbook-dtd412-xml | |
35 | BuildRequires: docbook-style-xsl | |
090f43b6 | 36 | BuildRequires: gdk-pixbuf2-devel >= 2.21.0 |
df6da6cb | 37 | BuildRequires: gettext-devel |
b53848b1 MB |
38 | BuildRequires: glib2-devel >= 1:2.27.1 |
39 | BuildRequires: gobject-introspection-devel >= 0.9.3 | |
df6da6cb MB |
40 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.11} |
41 | BuildRequires: gtk-doc-automake >= 1.11 | |
df6da6cb MB |
42 | BuildRequires: libtool >= 1:1.4.2-9 |
43 | BuildRequires: libxml2-progs >= 1:2.6.31 | |
44 | BuildRequires: libxslt-progs >= 1.1.20 | |
45 | BuildRequires: pango-devel >= 1:1.26.0 | |
46 | BuildRequires: perl-base | |
47 | BuildRequires: pkgconfig | |
48 | BuildRequires: rpm-pythonprov | |
49 | BuildRequires: rpmbuild(macros) >= 1.197 | |
50 | BuildRequires: xorg-lib-libX11-devel | |
51 | BuildRequires: xorg-lib-libXcomposite-devel | |
52 | BuildRequires: xorg-lib-libXcursor-devel | |
53 | BuildRequires: xorg-lib-libXdamage-devel | |
54 | BuildRequires: xorg-lib-libXext-devel | |
55 | BuildRequires: xorg-lib-libXfixes-devel | |
56 | BuildRequires: xorg-lib-libXft-devel | |
57 | BuildRequires: xorg-lib-libXi-devel | |
58 | BuildRequires: xorg-lib-libXinerama-devel | |
59 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3.0 | |
60 | BuildRequires: xorg-lib-libXrender-devel | |
b53848b1 | 61 | Requires(post,postun): glib2 >= 1:2.27.1 |
df6da6cb | 62 | Requires: atk >= 1:1.30.0 |
b53848b1 | 63 | Requires: cairo-gobject >= 1.10.0 |
090f43b6 | 64 | Requires: gdk-pixbuf2 >= 2.21.0 |
b53848b1 | 65 | Requires: glib2 >= 1:2.27.1 |
df6da6cb MB |
66 | Requires: pango >= 1:1.26.0 |
67 | Requires: xorg-lib-libXrandr >= 1.3.0 | |
68 | %if %{with cups} | |
69 | # cups is used by default if gtk+ is built with cups | |
70 | Suggests: %{name}-cups = %{version}-%{release} | |
71 | %endif | |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
73 | ||
74 | %define abivers 3.0.0 | |
75 | ||
76 | %if "%{_lib}" != "lib" | |
77 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
df6da6cb MB |
78 | %define pqext -%{libext} |
79 | %else | |
df6da6cb MB |
80 | %define pqext %{nil} |
81 | %endif | |
82 | ||
83 | %description | |
84 | GTK+, which stands for the GIMP ToolKit, is a library for creating | |
85 | graphical user interfaces for the X Window System. It is designed to | |
86 | be small, efficient, and flexible. GTK+ is written in C with a very | |
87 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit | |
88 | which provides a thin layer over Xlib to help automate things like | |
89 | dealing with different color depths, and GTK is a widget set for | |
90 | creating user interfaces. | |
91 | ||
92 | %description -l cs.UTF-8 | |
93 | Knihovny X původně psané pro GIMP, které nyní používá také řada jiných | |
94 | programů. | |
95 | ||
96 | %description -l da.UTF-8 | |
97 | X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere | |
98 | forskellige programmer. | |
99 | ||
100 | %description -l de.UTF-8 | |
101 | Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und | |
102 | mittlerweile für eine ganze Reihe anderer Programme benutzt werden. | |
103 | ||
104 | %description -l fr.UTF-8 | |
105 | X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita | |
106 | käytetään nyt myös useissa muissakin ohjelmissa. | |
107 | ||
108 | %description -l it.UTF-8 | |
109 | Libreria X scritta per GIMP. Viene usata da diversi programmi. | |
110 | ||
111 | %description -l pl.UTF-8 | |
112 | GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera | |
113 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. | |
114 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
115 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
116 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK | |
117 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na | |
118 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
119 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
120 | ||
121 | %description -l tr.UTF-8 | |
122 | Başlangıçta GIMP için yazılmış X kitaplıkları. Şu anda başka | |
123 | programlarca da kullanılmaktadır. | |
124 | ||
125 | %package devel | |
126 | Summary: GTK+ header files and development documentation | |
127 | Summary(cs.UTF-8): Sada nástrojů GIMP a kreslící kit GIMP | |
128 | Summary(da.UTF-8): GIMP Toolkit og GIMP Tegnings-værktøj | |
129 | Summary(de.UTF-8): GIMP Toolkit und GIMP Drawing Kit | |
130 | Summary(fi.UTF-8): Gimp-työkalukokoelma ja Gimp-piirtotyökalut | |
131 | Summary(fr.UTF-8): Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK) | |
132 | Summary(it.UTF-8): GIMP Toolkit and GIMP Drawing Kit | |
133 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GTK+ | |
134 | Summary(tr.UTF-8): GIMP araç takımı ve çizim takımı | |
135 | Group: X11/Development/Libraries | |
136 | Requires: %{name} = %{version}-%{release} | |
137 | Requires: atk-devel >= 1:1.30.0 | |
090f43b6 | 138 | Requires: gdk-pixbuf2-devel >= 2.21.0 |
b53848b1 | 139 | Requires: glib2-devel >= 1:2.27.1 |
df6da6cb MB |
140 | Requires: pango-devel >= 1:1.26.0 |
141 | Requires: shared-mime-info | |
142 | Requires: xorg-lib-libX11-devel | |
143 | Requires: xorg-lib-libXcomposite-devel | |
144 | Requires: xorg-lib-libXcursor-devel | |
145 | Requires: xorg-lib-libXdamage-devel | |
146 | Requires: xorg-lib-libXext-devel | |
147 | Requires: xorg-lib-libXfixes-devel | |
148 | Requires: xorg-lib-libXft-devel | |
149 | Requires: xorg-lib-libXi-devel | |
150 | Requires: xorg-lib-libXinerama-devel | |
151 | Requires: xorg-lib-libXrandr-devel >= 1.3.0 | |
152 | Requires: xorg-lib-libXrender-devel | |
153 | ||
154 | %description devel | |
155 | Header files and development documentation for the GTK+ libraries. | |
156 | ||
157 | %description devel -l pl.UTF-8 | |
158 | Pliki nagłówkowe i dokumentacja do bibliotek GTK+. | |
159 | ||
160 | %package static | |
161 | Summary: GTK+ static libraries | |
162 | Summary(pl.UTF-8): Biblioteki statyczne GTK+ | |
163 | Group: X11/Development/Libraries | |
164 | Requires: %{name}-devel = %{version}-%{release} | |
165 | ||
166 | %description static | |
167 | GTK+ static libraries. | |
168 | ||
169 | %description static -l pl.UTF-8 | |
170 | Biblioteki statyczne GTK+ | |
171 | ||
172 | %package apidocs | |
173 | Summary: GTK+ API documentation | |
174 | Summary(pl.UTF-8): Dokumentacja API GTK+ | |
175 | Group: Documentation | |
176 | Requires: gtk-doc-common | |
177 | ||
178 | %description apidocs | |
179 | GTK+ API documentation. | |
180 | ||
181 | %description apidocs -l pl.UTF-8 | |
182 | Dokumentacja API GTK+. | |
183 | ||
184 | %package examples | |
185 | Summary: GTK+ - example programs | |
186 | Summary(pl.UTF-8): GTK+ - programy przykładowe | |
187 | Group: X11/Development/Libraries | |
188 | Requires: %{name}-devel = %{version}-%{release} | |
189 | ||
190 | %description examples | |
191 | GTK+ - example programs. | |
192 | ||
193 | %description examples -l pl.UTF-8 | |
194 | GTK+ - przykładowe programy. | |
195 | ||
196 | %package cups | |
197 | Summary: CUPS printing module for GTK+ | |
198 | Summary(pl.UTF-8): Moduł GTK+ do drukowania przez CUPS | |
199 | Group: X11/Libraries | |
200 | Requires: %{name} = %{version}-%{release} | |
201 | ||
202 | %description cups | |
203 | CUPS printing module for GTK+. | |
204 | ||
205 | %description cups -l pl.UTF-8 | |
206 | Moduł GTK+ do drukowania przez CUPS. | |
207 | ||
208 | %prep | |
209 | %setup -q -n gtk+-%{version} | |
df6da6cb MB |
210 | |
211 | %build | |
212 | rm m4/introspection.m4 | |
213 | %{?with_apidocs:%{__gtkdocize}} | |
214 | %{__libtoolize} | |
215 | %{__aclocal} -I m4 | |
216 | %{__autoheader} | |
217 | %{__autoconf} | |
218 | %{__automake} | |
219 | %configure \ | |
b53848b1 | 220 | --disable-silent-rules \ |
df6da6cb MB |
221 | %{!?with_cups:ac_cv_path_CUPS_CONFIG=no} \ |
222 | %{?debug:--enable-debug=yes} \ | |
223 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ | |
224 | --enable-man \ | |
df6da6cb MB |
225 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
226 | --with-gdktarget=x11 \ | |
227 | --with-html-dir=%{_gtkdocdir} \ | |
df6da6cb MB |
228 | --with-xinput=yes |
229 | %{__make} | |
230 | ||
231 | %install | |
232 | rm -rf $RPM_BUILD_ROOT | |
233 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
234 | ||
235 | %{__make} install \ | |
236 | DESTDIR=$RPM_BUILD_ROOT | |
237 | ||
e155be9a | 238 | touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/gtk.immodules |
df6da6cb MB |
239 | |
240 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
241 | ||
242 | # shut up check-files (static modules and *.la for modules) | |
243 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules/*.{a,la} | |
244 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.{a,la} | |
245 | ||
246 | %if "%{_lib}" != "lib" | |
247 | # We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR. | |
248 | # (needed when multilib is used) | |
df6da6cb MB |
249 | mv $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0{,%{pqext}} |
250 | %endif | |
251 | ||
252 | # unsupported by glibc | |
253 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{az_IR,io} | |
254 | ||
255 | %find_lang %{name} --all-name | |
256 | ||
090f43b6 | 257 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/{gdk3,gtk3}} |
df6da6cb MB |
258 | |
259 | %clean | |
260 | rm -rf $RPM_BUILD_ROOT | |
261 | ||
262 | %post | |
263 | /sbin/ldconfig | |
264 | umask 022 | |
e155be9a | 265 | %{_bindir}/gtk-query-immodules-3.0%{pqext} --update-cache |
b53848b1 | 266 | %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas |
df6da6cb MB |
267 | exit 0 |
268 | ||
269 | %postun | |
270 | /sbin/ldconfig | |
271 | if [ "$1" != "0" ]; then | |
272 | umask 022 | |
e155be9a | 273 | %{_bindir}/gtk-query-immodules-3.0%{pqext} --update-cache |
b53848b1 MB |
274 | else |
275 | %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas | |
df6da6cb MB |
276 | fi |
277 | exit 0 | |
278 | ||
279 | %files -f %{name}.lang | |
280 | %defattr(644,root,root,755) | |
281 | %doc AUTHORS NEWS README | |
df6da6cb MB |
282 | %attr(755,root,root) %{_bindir}/gtk-query-immodules-3.0%{pqext} |
283 | %attr(755,root,root) %{_bindir}/gtk-update-icon-cache-3.0 | |
284 | %attr(755,root,root) %{_bindir}/gtk3-demo | |
285 | %attr(755,root,root) %{_libdir}/libgailutil-3.0.so.*.*.* | |
e155be9a | 286 | %attr(755,root,root) %ghost %{_libdir}/libgailutil-3.0.so.0 |
df6da6cb MB |
287 | %attr(755,root,root) %{_libdir}/libgdk-x11-3.0.so.*.*.* |
288 | %attr(755,root,root) %ghost %{_libdir}/libgdk-x11-3.0.so.0 | |
df6da6cb MB |
289 | %attr(755,root,root) %{_libdir}/libgtk-x11-3.0.so.*.*.* |
290 | %attr(755,root,root) %ghost %{_libdir}/libgtk-x11-3.0.so.0 | |
291 | ||
292 | %dir %{_libdir}/gtk-3.0 | |
293 | %dir %{_libdir}/gtk-3.0/modules | |
294 | %dir %{_libdir}/gtk-3.0/%{abivers} | |
295 | %dir %{_libdir}/gtk-3.0/%{abivers}/engines | |
296 | %dir %{_libdir}/gtk-3.0/%{abivers}/immodules | |
df6da6cb MB |
297 | %dir %{_libdir}/gtk-3.0/%{abivers}/printbackends |
298 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libferret.so | |
299 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libgail.so | |
e155be9a | 300 | %ghost %{_libdir}/gtk-3.0/%{abivers}/gtk.immodules |
df6da6cb MB |
301 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/engines/libpixmap.so |
302 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-*.so | |
df6da6cb MB |
303 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-file.so |
304 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-lpr.so | |
305 | %{_libdir}/girepository-1.0/Gdk-3.0.typelib | |
e155be9a | 306 | %{_libdir}/girepository-1.0/GdkX11-3.0.typelib |
df6da6cb MB |
307 | %{_libdir}/girepository-1.0/Gtk-3.0.typelib |
308 | ||
309 | ## XXX: just demo data - move to examples? | |
310 | %{_datadir}/gtk-3.0 | |
311 | ||
e155be9a MB |
312 | %dir %{_sysconfdir}/gtk-3.0 |
313 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gtk-3.0/im-multipress.conf | |
b53848b1 | 314 | %{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml |
df6da6cb MB |
315 | %dir %{_datadir}/themes/Default/gtk-* |
316 | %{_datadir}/themes/Default/gtk-*/gtkrc | |
317 | %dir %{_datadir}/themes/Emacs | |
318 | %dir %{_datadir}/themes/Emacs/gtk-* | |
319 | %{_datadir}/themes/Emacs/gtk-*/gtkrc | |
320 | %dir %{_datadir}/themes/Raleigh | |
321 | %dir %{_datadir}/themes/Raleigh/gtk-* | |
322 | %{_datadir}/themes/Raleigh/gtk-*/gtkrc | |
df6da6cb MB |
323 | %{_mandir}/man1/gtk-query-immodules-3.0.1* |
324 | %{_mandir}/man1/gtk-update-icon-cache-3.0.1* | |
325 | ||
326 | %files devel | |
327 | %defattr(644,root,root,755) | |
328 | %doc ChangeLog | |
df6da6cb MB |
329 | %attr(755,root,root) %{_bindir}/gtk-builder-convert-3.0 |
330 | %attr(755,root,root) %{_libdir}/libgailutil-3.0.so | |
331 | %attr(755,root,root) %{_libdir}/libgdk-x11-3.0.so | |
df6da6cb MB |
332 | %attr(755,root,root) %{_libdir}/libgtk-x11-3.0.so |
333 | %{_libdir}/libgailutil-3.0.la | |
334 | %{_libdir}/libgdk-x11-3.0.la | |
df6da6cb MB |
335 | %{_libdir}/libgtk-x11-3.0.la |
336 | %{_includedir}/gail-3.0 | |
337 | %{_includedir}/gtk-3.0 | |
e155be9a | 338 | %{_aclocaldir}/gtk-3.0.m4 |
df6da6cb MB |
339 | %{_libdir}/gtk-3.0/include |
340 | %{_pkgconfigdir}/gail-3.0.pc | |
341 | %{_pkgconfigdir}/gdk-3.0.pc | |
df6da6cb MB |
342 | %{_pkgconfigdir}/gdk-x11-3.0.pc |
343 | %{_pkgconfigdir}/gtk+-3.0.pc | |
344 | %{_pkgconfigdir}/gtk+-unix-print-3.0.pc | |
345 | %{_pkgconfigdir}/gtk+-x11-3.0.pc | |
df6da6cb MB |
346 | %{_mandir}/man1/gtk-builder-convert-3.0.1* |
347 | %{_datadir}/gir-1.0/Gdk-3.0.gir | |
e155be9a | 348 | %{_datadir}/gir-1.0/GdkX11-3.0.gir |
df6da6cb MB |
349 | %{_datadir}/gir-1.0/Gtk-3.0.gir |
350 | ||
351 | %if %{with static_libs} | |
352 | %files static | |
353 | %defattr(644,root,root,755) | |
354 | %{_libdir}/libgailutil-3.0.a | |
355 | %{_libdir}/libgdk-x11-3.0.a | |
df6da6cb MB |
356 | %{_libdir}/libgtk-x11-3.0.a |
357 | %endif | |
358 | ||
359 | %if %{with apidocs} | |
360 | %files apidocs | |
361 | %defattr(644,root,root,755) | |
362 | %{_gtkdocdir}/gail-libgail-util3 | |
363 | %{_gtkdocdir}/gdk3 | |
df6da6cb MB |
364 | %{_gtkdocdir}/gtk3 |
365 | %endif | |
366 | ||
367 | %files examples | |
368 | %defattr(644,root,root,755) | |
369 | %{_examplesdir}/%{name}-%{version} | |
370 | ||
371 | %if %{with cups} | |
372 | %files cups | |
373 | %defattr(644,root,root,755) | |
374 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-cups.so | |
375 | %endif |