1 Summary: The Gimp Toolkit - Ming32 cross version
2 Summary(pl.UTF-8): Gimp Toolkit - wersja skrośna dla Ming32
3 Name: crossmingw32-gtk+2
7 Group: Development/Libraries
8 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/gtk+-%{version}.tar.bz2
9 # Source0-md5: c46f34addc2fe3ea6756055d59fb8856
10 Patch0: %{name}-libtool.patch
11 URL: http://www.gtk.org/
12 BuildRequires: crossmingw32-atk >= 1.20.0
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: crossmingw32-glib2 >= 2.14.0
15 BuildRequires: crossmingw32-libjpeg
16 BuildRequires: crossmingw32-libpng
17 BuildRequires: crossmingw32-libtiff
18 BuildRequires: crossmingw32-pango >= 1.18.1
19 BuildRequires: pkgconfig >= 1:0.15
20 Requires: crossmingw32-atk >= 1.20.0
21 Requires: crossmingw32-glib2 >= 2.14.0
22 Requires: crossmingw32-pango >= 1.18.1
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define abivers 2.10.0
27 %define no_install_post_strip 1
29 %define target i386-mingw32
30 %define target_platform i386-pc-mingw32
32 %define _sysprefix /usr
33 %define _prefix %{_sysprefix}/%{target}
34 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
35 %define _dlldir /usr/share/wine/windows/system
36 %define __cc %{target}-gcc
37 %define __cxx %{target}-g++
39 %define filterout_ld (-Wl,)?-as-needed.*
42 GTK+, which stands for the Gimp ToolKit, is a library for creating
43 graphical user interfaces for the X Window System. It is designed to
44 be small, efficient, and flexible. GTK+ is written in C with a very
45 object-oriented approach. GDK (part of GTK+) is a drawing toolkit
46 which provides a thin layer over Xlib to help automate things like
47 dealing with different color depths, and GTK is a widget set for
48 creating user interfaces.
50 This package contains the cross version for Win32.
52 %description -l pl.UTF-8
53 GTK+, która to biblioteka stała się podstawą programu Gimp, zawiera
54 funkcje do tworzenia graficznego interfejsu użytkownika pod X Window.
55 Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+
56 jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK
57 (część GTK+) jest warstwą pośrednią pomiędzy Xlib i resztą toolkitu
58 zapewniającą pracę niezależnie od głębi koloru (ilości bitów na
59 piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego
60 rodzaju kontrolek służących do tworzenia interfejsu użytkownika.
62 Ten pakiet zawiera wersję skrośną dla Win32.
65 Summary: DLL GTK+ libraries for Windows
66 Summary(pl.UTF-8): Biblioteki DLL GTK+ dla Windows
67 Group: Applications/Emulators
68 Requires: crossmingw32-atk-dll >= 1.20.0
69 Requires: crossmingw32-glib2-dll >= 2.14.0
70 Requires: crossmingw32-pango-dll >= 1.18.1
74 DLL GTK+ libraries for Windows.
76 %description dll -l pl.UTF-8
77 Biblioteki DLL GTK+ dla Windows.
80 %setup -q -n gtk+-%{version}
84 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
91 ac_cv_path_CUPS_CONFIG=no \
98 --with-gdk-target=win32 \
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_dlldir}
111 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
114 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
115 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
118 # remove unsupported locale scheme
119 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,man,themes}
120 # shut up check-files (static modules and *.la for modules)
121 rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-*/2.*/*/*.{a,la}
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %{_libdir}/libg[dt]k*.dll.a
129 %{_libdir}/libg[dt]k*.la
130 %{_libdir}/g[dt]k*.def
131 %dir %{_libdir}/gtk-2.0
132 %{_libdir}/gtk-2.0/include
133 %{_includedir}/gtk-2.0
134 %{_includedir}/gtk-unix-print-2.0
135 %{_pkgconfigdir}/*.pc
138 %defattr(644,root,root,755)
139 %{_dlldir}/libg[dt]k*.dll