]>
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 |
f0681315 | 4 | Version: 2.24.25 |
6771a37d | 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 |
f0681315 | 9 | # Source0-md5: 612350704dd3aacb95355a4981930c6f |
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 | |
104 | %build | |
696c8b6e | 105 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
75332778 | 106 | %{__libtoolize} |
107 | %{__aclocal} | |
75332778 | 108 | %{__autoconf} |
5153e7ad | 109 | %{__autoheader} |
75332778 | 110 | %{__automake} |
cbd6a8cd JB |
111 | # starting with 2.24.14 gtk+ uses Windows 5.0 features |
112 | CPPFLAGS="%{rpmcppflags} -DWINVER=0x0500" | |
75332778 | 113 | %configure \ |
114 | --target=%{target} \ | |
115 | --host=%{target} \ | |
4905614a | 116 | --disable-cups \ |
75332778 | 117 | --disable-gtk-doc \ |
118 | --disable-man \ | |
75332778 | 119 | --disable-xkb \ |
c94e0076 | 120 | --with-gdktarget=win32 \ |
75332778 | 121 | --without-x \ |
c344952f | 122 | --without-xinput |
75332778 | 123 | |
124 | %{__make} | |
68fb726e | 125 | |
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
75332778 | 128 | |
d335792d JB |
129 | # .def installation is not parallel-compliant |
130 | %{__make} -j1 install \ | |
c344952f JB |
131 | DESTDIR=$RPM_BUILD_ROOT |
132 | ||
133 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
134 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
75332778 | 135 | |
c344952f JB |
136 | %if 0%{!?debug:1} |
137 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
138 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
139 | %endif | |
75332778 | 140 | |
141 | # remove unsupported locale scheme | |
78a22d44 | 142 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,themes} |
75332778 | 143 | # shut up check-files (static modules and *.la for modules) |
d335792d JB |
144 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la} |
145 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/*/*.{a,la} | |
75332778 | 146 | |
68fb726e | 147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %files | |
a05b8fdb | 151 | %defattr(644,root,root,755) |
65efc79a | 152 | %{_libdir}/libgailutil.dll.a |
390b4263 | 153 | %{_libdir}/libgdk-win32-2.0.dll.a |
390b4263 | 154 | %{_libdir}/libgtk-win32-2.0.dll.a |
65efc79a | 155 | %{_libdir}/libgailutil.la |
390b4263 | 156 | %{_libdir}/libgdk-win32-2.0.la |
390b4263 | 157 | %{_libdir}/libgtk-win32-2.0.la |
61695393 | 158 | %{_libdir}/gailutil.def |
390b4263 | 159 | %{_libdir}/gdk-win32-2.0.def |
390b4263 | 160 | %{_libdir}/gtk-win32-2.0.def |
75332778 | 161 | %dir %{_libdir}/gtk-2.0 |
c344952f | 162 | %{_libdir}/gtk-2.0/include |
65efc79a | 163 | %{_includedir}/gail-1.0 |
c344952f | 164 | %{_includedir}/gtk-2.0 |
65efc79a | 165 | %{_pkgconfigdir}/gail.pc |
390b4263 | 166 | %{_pkgconfigdir}/gdk-2.0.pc |
390b4263 JB |
167 | %{_pkgconfigdir}/gdk-win32-2.0.pc |
168 | %{_pkgconfigdir}/gtk+-2.0.pc | |
169 | %{_pkgconfigdir}/gtk+-win32-2.0.pc | |
c344952f JB |
170 | |
171 | %files dll | |
172 | %defattr(644,root,root,755) | |
65efc79a | 173 | %{_dlldir}/libgailutil-*.dll |
390b4263 | 174 | %{_dlldir}/libgdk-win32-2.0-*.dll |
390b4263 | 175 | %{_dlldir}/libgtk-win32-2.0-*.dll |
61695393 JB |
176 | %dir %{_libdir}/gtk-2.0 |
177 | %dir %{_libdir}/gtk-2.0/2.10.0 | |
178 | %dir %{_libdir}/gtk-2.0/2.10.0/engines | |
179 | %{_libdir}/gtk-2.0/2.10.0/engines/libpixmap.dll | |
180 | %{_libdir}/gtk-2.0/2.10.0/engines/libwimp.dll | |
181 | %dir %{_libdir}/gtk-2.0/2.10.0/immodules | |
182 | %{_libdir}/gtk-2.0/2.10.0/immodules/im-*.dll | |
61695393 JB |
183 | %dir %{_libdir}/gtk-2.0/modules |
184 | %{_libdir}/gtk-2.0/modules/libgail.dll |