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