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