]>
Commit | Line | Data |
---|---|---|
403ad31c JB |
1 | Summary: The GIMP Toolkit - MinGW32 cross version |
2 | Summary(pl.UTF-8): GIMP Toolkit - wersja skrośna dla MinGW32 | |
7fdc3553 | 3 | Name: crossmingw32-gtk+2 |
fd93a743 | 4 | Version: 2.24.30 |
d87c1638 | 5 | Release: 1 |
ebdd473f | 6 | License: LGPL v2+ |
48d19c97 | 7 | Group: Development/Libraries |
e61d6315 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.24/gtk+-%{version}.tar.xz |
fd93a743 | 9 | # Source0-md5: 04568ba5c58b75e3c7543e45628ad789 |
68fb726e | 10 | URL: http://www.gtk.org/ |
5153e7ad JB |
11 | BuildRequires: autoconf >= 2.62 |
12 | BuildRequires: automake >= 1:1.7 | |
61695393 | 13 | BuildRequires: crossmingw32-atk >= 1.30.0 |
52d1b4ed | 14 | BuildRequires: crossmingw32-cairo >= 1.6 |
c344952f | 15 | BuildRequires: crossmingw32-gcc |
5153e7ad | 16 | BuildRequires: crossmingw32-gdk-pixbuf2 >= 2.22.0 |
d335792d JB |
17 | BuildRequires: crossmingw32-glib2 >= 2.28.0 |
18 | BuildRequires: crossmingw32-pango >= 1.28.0 | |
5fbdf08a | 19 | BuildRequires: gtk-doc >= 1.17 |
5153e7ad | 20 | BuildRequires: libtool |
696c8b6e | 21 | BuildRequires: pkgconfig >= 1:0.15 |
e61d6315 JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
61695393 | 24 | Requires: crossmingw32-atk >= 1.30.0 |
52d1b4ed | 25 | Requires: crossmingw32-cairo >= 1.6 |
5153e7ad | 26 | Requires: crossmingw32-gdk-pixbuf2 >= 2.22.0 |
d335792d JB |
27 | Requires: crossmingw32-glib2 >= 2.28.0 |
28 | Requires: crossmingw32-pango >= 1.28.0 | |
8ceeecf3 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68fb726e | 30 | |
75332778 | 31 | %define abivers 2.10.0 |
32 | ||
68fb726e | 33 | %define no_install_post_strip 1 |
34 | ||
35 | %define target i386-mingw32 | |
36 | %define target_platform i386-pc-mingw32 | |
68fb726e | 37 | |
75332778 | 38 | %define _sysprefix /usr |
39 | %define _prefix %{_sysprefix}/%{target} | |
390b4263 | 40 | %define _libdir %{_prefix}/lib |
17addd2a | 41 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
c344952f | 42 | %define _dlldir /usr/share/wine/windows/system |
68fb726e | 43 | %define __cc %{target}-gcc |
44 | %define __cxx %{target}-g++ | |
9d3dd679 | 45 | %define __pkgconfig_provides %{nil} |
27f9b062 | 46 | %define __pkgconfig_requires %{nil} |
68fb726e | 47 | |
332a20bd | 48 | %define _ssp_cflags %{nil} |
65efc79a JB |
49 | %ifnarch %{ix86} |
50 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
51 | %define optflags -O2 | |
52 | %endif | |
68f3ee9b | 53 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
65efc79a | 54 | %define filterout_ld -Wl,-z,.* |
68f3ee9b | 55 | %define filterout_c -f[-a-z0-9=]* |
75332778 | 56 | |
68fb726e | 57 | %description |
65efc79a | 58 | GTK+, which stands for the GIMP ToolKit, is a library for creating |
68fb726e | 59 | graphical user interfaces for the X Window System. It is designed to |
86060e18 | 60 | be small, efficient, and flexible. GTK+ is written in C with a very |
75c7a1f8 | 61 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit |
68fb726e | 62 | which provides a thin layer over Xlib to help automate things like |
75c7a1f8 | 63 | dealing with different color depths, and GTK is a widget set for |
68fb726e | 64 | creating user interfaces. |
65 | ||
c344952f | 66 | This package contains the cross version for Win32. |
68fb726e | 67 | |
03785f8d | 68 | %description -l pl.UTF-8 |
65efc79a | 69 | GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera |
03785f8d JR |
70 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. |
71 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
72 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
88b4a88a | 73 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK |
03785f8d JR |
74 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na |
75 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
76 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
77 | ||
c344952f JB |
78 | Ten pakiet zawiera wersję skrośną dla Win32. |
79 | ||
80 | %package dll | |
81 | Summary: DLL GTK+ libraries for Windows | |
82 | Summary(pl.UTF-8): Biblioteki DLL GTK+ dla Windows | |
83 | Group: Applications/Emulators | |
61695393 | 84 | Requires: crossmingw32-atk-dll >= 1.30.0 |
52d1b4ed | 85 | Requires: crossmingw32-cairo-dll >= 1.6 |
531fc2c5 | 86 | Requires: crossmingw32-gdk-pixbuf2-dll >= 2.22.0 |
d335792d JB |
87 | Requires: crossmingw32-glib2-dll >= 2.28.0 |
88 | Requires: crossmingw32-pango-dll >= 1.28.0 | |
c344952f JB |
89 | Requires: wine |
90 | ||
91 | %description dll | |
92 | DLL GTK+ libraries for Windows. | |
03785f8d | 93 | |
c344952f JB |
94 | %description dll -l pl.UTF-8 |
95 | Biblioteki DLL GTK+ dla Windows. | |
68fb726e | 96 | |
97 | %prep | |
75332778 | 98 | %setup -q -n gtk+-%{version} |
fc84daf0 JB |
99 | |
100 | # avoid rebuilding builtin stock icons cache | |
101 | # (requires native gtk-update-icon-cache >= 2.24.24 < 3.0) | |
102 | touch gtk/stamp-icons gtk/gtkbuiltincache.h | |
75332778 | 103 | |
9cb2b76e JB |
104 | # -Wl, makes recent libtools pass it as linker flag before any objects, |
105 | # which is incompatible with as-needed; use plain -luuid with pass_all | |
106 | # hack below | |
107 | %{__sed} -i -e 's@-Wl,-luuid@-luuid@' configure.ac | |
108 | ||
75332778 | 109 | %build |
696c8b6e | 110 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
75332778 | 111 | %{__libtoolize} |
112 | %{__aclocal} | |
75332778 | 113 | %{__autoconf} |
5153e7ad | 114 | %{__autoheader} |
75332778 | 115 | %{__automake} |
cbd6a8cd JB |
116 | # starting with 2.24.14 gtk+ uses Windows 5.0 features |
117 | CPPFLAGS="%{rpmcppflags} -DWINVER=0x0500" | |
75332778 | 118 | %configure \ |
119 | --target=%{target} \ | |
120 | --host=%{target} \ | |
4905614a | 121 | --disable-cups \ |
75332778 | 122 | --disable-gtk-doc \ |
123 | --disable-man \ | |
75332778 | 124 | --disable-xkb \ |
c94e0076 | 125 | --with-gdktarget=win32 \ |
75332778 | 126 | --without-x \ |
c344952f | 127 | --without-xinput |
75332778 | 128 | |
9cb2b76e JB |
129 | # by default mingw32 libtool doesn't allow to embed static libraries |
130 | # in shared libraries (only import libraries are allowed); override this | |
131 | # to allow static libuuid | |
132 | %{__sed} -i -e 's/^\(deplibs_check_method\)=.*/\1="pass_all"/' libtool | |
133 | ||
75332778 | 134 | %{__make} |
68fb726e | 135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
75332778 | 138 | |
d335792d JB |
139 | # .def installation is not parallel-compliant |
140 | %{__make} -j1 install \ | |
c344952f JB |
141 | DESTDIR=$RPM_BUILD_ROOT |
142 | ||
143 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
144 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
75332778 | 145 | |
c344952f JB |
146 | %if 0%{!?debug:1} |
147 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
148 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
149 | %endif | |
75332778 | 150 | |
151 | # remove unsupported locale scheme | |
78a22d44 | 152 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,themes} |
75332778 | 153 | # shut up check-files (static modules and *.la for modules) |
d335792d JB |
154 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la} |
155 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/*/*.{a,la} | |
75332778 | 156 | |
68fb726e | 157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
160 | %files | |
a05b8fdb | 161 | %defattr(644,root,root,755) |
65efc79a | 162 | %{_libdir}/libgailutil.dll.a |
390b4263 | 163 | %{_libdir}/libgdk-win32-2.0.dll.a |
390b4263 | 164 | %{_libdir}/libgtk-win32-2.0.dll.a |
65efc79a | 165 | %{_libdir}/libgailutil.la |
390b4263 | 166 | %{_libdir}/libgdk-win32-2.0.la |
390b4263 | 167 | %{_libdir}/libgtk-win32-2.0.la |
61695393 | 168 | %{_libdir}/gailutil.def |
390b4263 | 169 | %{_libdir}/gdk-win32-2.0.def |
390b4263 | 170 | %{_libdir}/gtk-win32-2.0.def |
75332778 | 171 | %dir %{_libdir}/gtk-2.0 |
c344952f | 172 | %{_libdir}/gtk-2.0/include |
65efc79a | 173 | %{_includedir}/gail-1.0 |
c344952f | 174 | %{_includedir}/gtk-2.0 |
65efc79a | 175 | %{_pkgconfigdir}/gail.pc |
390b4263 | 176 | %{_pkgconfigdir}/gdk-2.0.pc |
390b4263 JB |
177 | %{_pkgconfigdir}/gdk-win32-2.0.pc |
178 | %{_pkgconfigdir}/gtk+-2.0.pc | |
179 | %{_pkgconfigdir}/gtk+-win32-2.0.pc | |
c344952f JB |
180 | |
181 | %files dll | |
182 | %defattr(644,root,root,755) | |
65efc79a | 183 | %{_dlldir}/libgailutil-*.dll |
390b4263 | 184 | %{_dlldir}/libgdk-win32-2.0-*.dll |
390b4263 | 185 | %{_dlldir}/libgtk-win32-2.0-*.dll |
61695393 JB |
186 | %dir %{_libdir}/gtk-2.0 |
187 | %dir %{_libdir}/gtk-2.0/2.10.0 | |
188 | %dir %{_libdir}/gtk-2.0/2.10.0/engines | |
189 | %{_libdir}/gtk-2.0/2.10.0/engines/libpixmap.dll | |
190 | %{_libdir}/gtk-2.0/2.10.0/engines/libwimp.dll | |
191 | %dir %{_libdir}/gtk-2.0/2.10.0/immodules | |
192 | %{_libdir}/gtk-2.0/2.10.0/immodules/im-*.dll | |
61695393 JB |
193 | %dir %{_libdir}/gtk-2.0/modules |
194 | %{_libdir}/gtk-2.0/modules/libgail.dll |