]>
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 |
bfc530a4 | 4 | Version: 2.24.8 |
4dedf4ad | 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 |
bfc530a4 | 9 | # Source0-md5: 5408d4a70ac132f7c439d7de40e83aff |
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 |
c344952f | 14 | BuildRequires: crossmingw32-gcc |
5153e7ad | 15 | BuildRequires: crossmingw32-gdk-pixbuf2 >= 2.22.0 |
d335792d JB |
16 | BuildRequires: crossmingw32-glib2 >= 2.28.0 |
17 | BuildRequires: crossmingw32-pango >= 1.28.0 | |
5fbdf08a | 18 | BuildRequires: gtk-doc >= 1.17 |
5153e7ad | 19 | BuildRequires: libtool |
696c8b6e | 20 | BuildRequires: pkgconfig >= 1:0.15 |
e61d6315 JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
61695393 | 23 | Requires: crossmingw32-atk >= 1.30.0 |
5153e7ad | 24 | Requires: crossmingw32-gdk-pixbuf2 >= 2.22.0 |
d335792d JB |
25 | Requires: crossmingw32-glib2 >= 2.28.0 |
26 | Requires: crossmingw32-pango >= 1.28.0 | |
8ceeecf3 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68fb726e | 28 | |
75332778 | 29 | %define abivers 2.10.0 |
30 | ||
68fb726e | 31 | %define no_install_post_strip 1 |
32 | ||
33 | %define target i386-mingw32 | |
34 | %define target_platform i386-pc-mingw32 | |
68fb726e | 35 | |
75332778 | 36 | %define _sysprefix /usr |
37 | %define _prefix %{_sysprefix}/%{target} | |
390b4263 | 38 | %define _libdir %{_prefix}/lib |
17addd2a | 39 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
c344952f | 40 | %define _dlldir /usr/share/wine/windows/system |
68fb726e | 41 | %define __cc %{target}-gcc |
42 | %define __cxx %{target}-g++ | |
43 | ||
65efc79a JB |
44 | #define filterout_ld (-Wl,)?-as-needed.* |
45 | ||
46 | %ifnarch %{ix86} | |
47 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
48 | %define optflags -O2 | |
49 | %endif | |
50 | # -z options are invalid for mingw linker | |
51 | %define filterout_ld -Wl,-z,.* | |
75332778 | 52 | |
68fb726e | 53 | %description |
65efc79a | 54 | GTK+, which stands for the GIMP ToolKit, is a library for creating |
68fb726e | 55 | graphical user interfaces for the X Window System. It is designed to |
86060e18 | 56 | be small, efficient, and flexible. GTK+ is written in C with a very |
75c7a1f8 | 57 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit |
68fb726e | 58 | which provides a thin layer over Xlib to help automate things like |
75c7a1f8 | 59 | dealing with different color depths, and GTK is a widget set for |
68fb726e | 60 | creating user interfaces. |
61 | ||
c344952f | 62 | This package contains the cross version for Win32. |
68fb726e | 63 | |
03785f8d | 64 | %description -l pl.UTF-8 |
65efc79a | 65 | GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera |
03785f8d JR |
66 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. |
67 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
68 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
88b4a88a | 69 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK |
03785f8d JR |
70 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na |
71 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
72 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
73 | ||
c344952f JB |
74 | Ten pakiet zawiera wersję skrośną dla Win32. |
75 | ||
76 | %package dll | |
77 | Summary: DLL GTK+ libraries for Windows | |
78 | Summary(pl.UTF-8): Biblioteki DLL GTK+ dla Windows | |
79 | Group: Applications/Emulators | |
61695393 | 80 | Requires: crossmingw32-atk-dll >= 1.30.0 |
531fc2c5 | 81 | Requires: crossmingw32-gdk-pixbuf2-dll >= 2.22.0 |
d335792d JB |
82 | Requires: crossmingw32-glib2-dll >= 2.28.0 |
83 | Requires: crossmingw32-pango-dll >= 1.28.0 | |
c344952f JB |
84 | Requires: wine |
85 | ||
86 | %description dll | |
87 | DLL GTK+ libraries for Windows. | |
03785f8d | 88 | |
c344952f JB |
89 | %description dll -l pl.UTF-8 |
90 | Biblioteki DLL GTK+ dla Windows. | |
68fb726e | 91 | |
92 | %prep | |
75332778 | 93 | %setup -q -n gtk+-%{version} |
75332778 | 94 | |
95 | %build | |
696c8b6e | 96 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
a53437bc | 97 | %{__gtkdocize} |
75332778 | 98 | %{__libtoolize} |
99 | %{__aclocal} | |
75332778 | 100 | %{__autoconf} |
5153e7ad | 101 | %{__autoheader} |
75332778 | 102 | %{__automake} |
103 | %configure \ | |
b4ace773 | 104 | ac_cv_path_CUPS_CONFIG=no \ |
75332778 | 105 | --target=%{target} \ |
106 | --host=%{target} \ | |
107 | --disable-gtk-doc \ | |
108 | --disable-man \ | |
75332778 | 109 | --disable-xkb \ |
c94e0076 | 110 | --with-gdktarget=win32 \ |
75332778 | 111 | --without-x \ |
c344952f | 112 | --without-xinput |
75332778 | 113 | |
114 | %{__make} | |
68fb726e | 115 | |
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
75332778 | 118 | |
d335792d JB |
119 | # .def installation is not parallel-compliant |
120 | %{__make} -j1 install \ | |
c344952f JB |
121 | DESTDIR=$RPM_BUILD_ROOT |
122 | ||
123 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
124 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
75332778 | 125 | |
c344952f JB |
126 | %if 0%{!?debug:1} |
127 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
128 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
129 | %endif | |
75332778 | 130 | |
131 | # remove unsupported locale scheme | |
d335792d | 132 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,man,themes} |
75332778 | 133 | # shut up check-files (static modules and *.la for modules) |
d335792d JB |
134 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la} |
135 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/*/*.{a,la} | |
75332778 | 136 | |
68fb726e | 137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %files | |
a05b8fdb | 141 | %defattr(644,root,root,755) |
65efc79a | 142 | %{_libdir}/libgailutil.dll.a |
390b4263 | 143 | %{_libdir}/libgdk-win32-2.0.dll.a |
390b4263 | 144 | %{_libdir}/libgtk-win32-2.0.dll.a |
65efc79a | 145 | %{_libdir}/libgailutil.la |
390b4263 | 146 | %{_libdir}/libgdk-win32-2.0.la |
390b4263 | 147 | %{_libdir}/libgtk-win32-2.0.la |
61695393 | 148 | %{_libdir}/gailutil.def |
390b4263 | 149 | %{_libdir}/gdk-win32-2.0.def |
390b4263 | 150 | %{_libdir}/gtk-win32-2.0.def |
75332778 | 151 | %dir %{_libdir}/gtk-2.0 |
c344952f | 152 | %{_libdir}/gtk-2.0/include |
65efc79a | 153 | %{_includedir}/gail-1.0 |
c344952f JB |
154 | %{_includedir}/gtk-2.0 |
155 | %{_includedir}/gtk-unix-print-2.0 | |
65efc79a | 156 | %{_pkgconfigdir}/gail.pc |
390b4263 | 157 | %{_pkgconfigdir}/gdk-2.0.pc |
390b4263 JB |
158 | %{_pkgconfigdir}/gdk-win32-2.0.pc |
159 | %{_pkgconfigdir}/gtk+-2.0.pc | |
160 | %{_pkgconfigdir}/gtk+-win32-2.0.pc | |
c344952f JB |
161 | |
162 | %files dll | |
163 | %defattr(644,root,root,755) | |
65efc79a | 164 | %{_dlldir}/libgailutil-*.dll |
390b4263 | 165 | %{_dlldir}/libgdk-win32-2.0-*.dll |
390b4263 | 166 | %{_dlldir}/libgtk-win32-2.0-*.dll |
61695393 JB |
167 | %dir %{_libdir}/gtk-2.0 |
168 | %dir %{_libdir}/gtk-2.0/2.10.0 | |
169 | %dir %{_libdir}/gtk-2.0/2.10.0/engines | |
170 | %{_libdir}/gtk-2.0/2.10.0/engines/libpixmap.dll | |
171 | %{_libdir}/gtk-2.0/2.10.0/engines/libwimp.dll | |
172 | %dir %{_libdir}/gtk-2.0/2.10.0/immodules | |
173 | %{_libdir}/gtk-2.0/2.10.0/immodules/im-*.dll | |
61695393 JB |
174 | %dir %{_libdir}/gtk-2.0/modules |
175 | %{_libdir}/gtk-2.0/modules/libgail.dll |