]>
Commit | Line | Data |
---|---|---|
68fb726e | 1 | Summary: The Gimp Toolkit - Ming32 cross version |
a15333ae | 2 | Summary(pl.UTF-8): Gimp Toolkit - wersja skrośna dla Ming32 |
7fdc3553 | 3 | Name: crossmingw32-gtk+2 |
b4ace773 | 4 | Version: 2.12.0 |
8ceeecf3 | 5 | Release: 1 |
ebdd473f | 6 | License: LGPL v2+ |
48d19c97 | 7 | Group: Development/Libraries |
b4ace773 JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/gtk+-%{version}.tar.bz2 |
9 | # Source0-md5: e9c280afec29b11772af5a7c807abf41 | |
ebdd473f | 10 | Patch0: %{name}-libtool.patch |
68fb726e | 11 | URL: http://www.gtk.org/ |
b4ace773 | 12 | BuildRequires: crossmingw32-atk >= 1.20.0 |
c344952f | 13 | BuildRequires: crossmingw32-gcc |
b4ace773 | 14 | BuildRequires: crossmingw32-glib2 >= 2.14.0 |
75332778 | 15 | BuildRequires: crossmingw32-libjpeg |
16 | BuildRequires: crossmingw32-libpng | |
17 | BuildRequires: crossmingw32-libtiff | |
b4ace773 | 18 | BuildRequires: crossmingw32-pango >= 1.18.1 |
696c8b6e | 19 | BuildRequires: pkgconfig >= 1:0.15 |
b4ace773 JB |
20 | Requires: crossmingw32-atk >= 1.20.0 |
21 | Requires: crossmingw32-glib2 >= 2.14.0 | |
22 | Requires: crossmingw32-pango >= 1.18.1 | |
8ceeecf3 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68fb726e | 24 | |
75332778 | 25 | %define abivers 2.10.0 |
26 | ||
68fb726e | 27 | %define no_install_post_strip 1 |
28 | ||
29 | %define target i386-mingw32 | |
30 | %define target_platform i386-pc-mingw32 | |
68fb726e | 31 | |
75332778 | 32 | %define _sysprefix /usr |
33 | %define _prefix %{_sysprefix}/%{target} | |
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 | ||
75332778 | 39 | %define filterout_ld (-Wl,)?-as-needed.* |
40 | ||
68fb726e | 41 | %description |
86060e18 | 42 | GTK+, which stands for the Gimp ToolKit, is a library for creating |
68fb726e | 43 | graphical user interfaces for the X Window System. It is designed to |
86060e18 | 44 | be small, efficient, and flexible. GTK+ is written in C with a very |
75c7a1f8 | 45 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit |
68fb726e | 46 | which provides a thin layer over Xlib to help automate things like |
75c7a1f8 | 47 | dealing with different color depths, and GTK is a widget set for |
68fb726e | 48 | creating user interfaces. |
49 | ||
c344952f | 50 | This package contains the cross version for Win32. |
68fb726e | 51 | |
03785f8d JR |
52 | %description -l pl.UTF-8 |
53 | GTK+, która to biblioteka stała się podstawą programu Gimp, zawiera | |
54 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. | |
55 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
56 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
57 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib i resztą toolkitu | |
58 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na | |
59 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
60 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
61 | ||
c344952f JB |
62 | Ten pakiet zawiera wersję skrośną dla Win32. |
63 | ||
64 | %package dll | |
65 | Summary: DLL GTK+ libraries for Windows | |
66 | Summary(pl.UTF-8): Biblioteki DLL GTK+ dla Windows | |
67 | Group: Applications/Emulators | |
b4ace773 JB |
68 | Requires: crossmingw32-atk-dll >= 1.20.0 |
69 | Requires: crossmingw32-glib2-dll >= 2.14.0 | |
70 | Requires: crossmingw32-pango-dll >= 1.18.1 | |
c344952f JB |
71 | Requires: wine |
72 | ||
73 | %description dll | |
74 | DLL GTK+ libraries for Windows. | |
03785f8d | 75 | |
c344952f JB |
76 | %description dll -l pl.UTF-8 |
77 | Biblioteki DLL GTK+ dla Windows. | |
68fb726e | 78 | |
79 | %prep | |
75332778 | 80 | %setup -q -n gtk+-%{version} |
ebdd473f | 81 | %patch0 -p1 |
75332778 | 82 | |
83 | %build | |
696c8b6e | 84 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
75332778 | 85 | %{__libtoolize} |
86 | %{__aclocal} | |
87 | %{__autoheader} | |
88 | %{__autoconf} | |
89 | %{__automake} | |
90 | %configure \ | |
b4ace773 | 91 | ac_cv_path_CUPS_CONFIG=no \ |
75332778 | 92 | --target=%{target} \ |
93 | --host=%{target} \ | |
94 | --disable-gtk-doc \ | |
95 | --disable-man \ | |
96 | --disable-modules \ | |
97 | --disable-xkb \ | |
98 | --with-gdk-target=win32 \ | |
99 | --without-x \ | |
c344952f | 100 | --without-xinput |
75332778 | 101 | |
102 | %{__make} | |
68fb726e | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
75332778 | 106 | |
107 | %{__make} install \ | |
c344952f JB |
108 | DESTDIR=$RPM_BUILD_ROOT |
109 | ||
110 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
111 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
75332778 | 112 | |
c344952f JB |
113 | %if 0%{!?debug:1} |
114 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
115 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
116 | %endif | |
75332778 | 117 | |
118 | # remove unsupported locale scheme | |
c344952f | 119 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,man,themes} |
75332778 | 120 | # shut up check-files (static modules and *.la for modules) |
121 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-*/2.*/*/*.{a,la} | |
122 | ||
68fb726e | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %files | |
a05b8fdb | 127 | %defattr(644,root,root,755) |
c344952f JB |
128 | %{_libdir}/libg[dt]k*.dll.a |
129 | %{_libdir}/libg[dt]k*.la | |
130 | %{_libdir}/g[dt]k*.def | |
75332778 | 131 | %dir %{_libdir}/gtk-2.0 |
c344952f JB |
132 | %{_libdir}/gtk-2.0/include |
133 | %{_includedir}/gtk-2.0 | |
134 | %{_includedir}/gtk-unix-print-2.0 | |
75332778 | 135 | %{_pkgconfigdir}/*.pc |
c344952f JB |
136 | |
137 | %files dll | |
138 | %defattr(644,root,root,755) | |
139 | %{_dlldir}/libg[dt]k*.dll |