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