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