]>
Commit | Line | Data |
---|---|---|
fd8baf2d | 1 | %define realname wxWidgets |
2 | Summary: wxWidgets library - Mingw32 cross version | |
c8d76d75 | 3 | Summary(pl.UTF-8): Biblioteka wxWidgets - wersja skrośna dla Mingw32 |
fd8baf2d | 4 | Name: crossmingw32-%{realname} |
e77e000d | 5 | Version: 2.8.7 |
fd8baf2d | 6 | Release: 1 |
777cad41 | 7 | License: wxWidgets Licence (LGPL v2+ with exception) |
fd8baf2d | 8 | Group: Development/Libraries |
c4fef24c | 9 | Source0: http://ftp.wxwidgets.org/pub/%{version}/%{realname}-%{version}.tar.bz2 |
e77e000d | 10 | # Source0-md5: e3455083afdf6404a569a8bf0701cf13 |
fd8baf2d | 11 | Patch0: %{realname}-samples.patch |
87144d8f | 12 | Patch1: %{realname}-ac.patch |
13 | Patch2: %{realname}-gif0delay.patch | |
fd8baf2d | 14 | URL: http://www.wxWidgets.org/ |
87144d8f | 15 | BuildRequires: autoconf >= 2.58 |
fd8baf2d | 16 | BuildRequires: automake |
73e1d714 | 17 | #BuildRequires: bakefile >= 0.1.9 |
fd8baf2d | 18 | BuildRequires: crossmingw32-gcc-c++ |
19 | BuildRequires: crossmingw32-libjpeg | |
20 | BuildRequires: crossmingw32-libpng | |
21 | BuildRequires: crossmingw32-runtime | |
22 | BuildRequires: libtool | |
23 | Requires: crossmingw32-libjpeg | |
24 | Requires: crossmingw32-libpng | |
25 | Requires: crossmingw32-runtime | |
26 | Obsoletes: crossmingw32-wxMSW | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %define no_install_post_strip 1 | |
30 | ||
777cad41 JB |
31 | %define target i386-mingw32 |
32 | %define target_platform i386-pc-mingw32 | |
fd8baf2d | 33 | |
777cad41 JB |
34 | %define _sysprefix /usr |
35 | %define _sysbindir %{_sysprefix}/bin | |
36 | %define _prefix %{_sysprefix}/%{target} | |
37 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
38 | %define _dlldir /usr/share/wine/windows/system | |
39 | %define __cc %{target}-gcc | |
40 | %define __cxx %{target}-g++ | |
fd8baf2d | 41 | |
777cad41 JB |
42 | %ifnarch %{ix86} |
43 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
fd8baf2d | 44 | %define optflags -O2 |
45 | %endif | |
46 | ||
fd8baf2d | 47 | %description |
48 | wxWidgets is a free C++ library for cross-platform GUI development. | |
49 | With wxWidgets, you can create applications for different GUIs (GTK+, | |
50 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
51 | ||
b35f38d5 JR |
52 | %description -l pl.UTF-8 |
53 | wxWidgets to wolnodostępna biblioteka napisana w C++ umożliwiająca | |
54 | rozwijanie wieloplatformowych programów GUI. Przy użyciu wxWidgets | |
55 | można tworzyć aplikacje dla różnych GUI (GTK+, Motif/LessTif, MS | |
56 | Windows, Mac) z tego samego kodu źródłowego. | |
fd8baf2d | 57 | |
58 | %package dll | |
59 | Summary: %{realname} - DLL library for Windows | |
c8d76d75 | 60 | Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows |
fd8baf2d | 61 | Group: Applications/Emulators |
62 | ||
63 | %description dll | |
64 | %{realname} - DLL libraries for Windows. | |
65 | ||
b35f38d5 | 66 | %description dll -l pl.UTF-8 |
fd8baf2d | 67 | %{realname} - biblioteki DLL dla Windows. |
68 | ||
69 | %prep | |
70 | %setup -q -n %{realname}-%{version} | |
71 | %patch0 -p1 | |
72 | %patch1 -p1 | |
73 | %patch2 -p1 | |
74 | ||
75 | %build | |
87144d8f | 76 | cp -f /usr/share/automake/config.sub . |
73e1d714 | 77 | %{__aclocal} -I build/aclocal |
fd8baf2d | 78 | %{__autoconf} |
79 | ||
80 | %configure \ | |
81 | --with-msw \ | |
82 | --with-opengl \ | |
73e1d714 | 83 | --disable-precomp-headers \ |
fd8baf2d | 84 | --enable-official-build \ |
85 | --enable-std-iostreams \ | |
86 | --enable-controls \ | |
87 | --enable-tabdialog \ | |
88 | --host=%{target} \ | |
89 | --target=%{target} | |
90 | ||
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
fd8baf2d | 95 | |
73e1d714 JB |
96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
fd8baf2d | 98 | |
777cad41 JB |
99 | install -d $RPM_BUILD_ROOT%{_dlldir} |
100 | mv -f $RPM_BUILD_ROOT%{_libdir}/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
fd8baf2d | 101 | |
102 | %if 0%{!?debug:1} | |
777cad41 | 103 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
fd8baf2d | 104 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
105 | %endif | |
106 | ||
777cad41 | 107 | ln -s %{_libdir}/wx/config/i386-mingw32-msw-ansi-release-2.8 $RPM_BUILD_ROOT%{_sysbindir} |
fd8baf2d | 108 | |
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
777cad41 JB |
114 | %attr(755,root,root) %{_sysbindir}/i386-mingw32-msw-ansi-release-* |
115 | %{_libdir}/libwx_*.dll.a | |
116 | %dir %{_libdir}/wx | |
117 | %dir %{_libdir}/wx/config | |
118 | %attr(755,root,root) %{_libdir}/wx/config/* | |
119 | %{_libdir}/wx/include | |
120 | %{_includedir}/wx-* | |
fd8baf2d | 121 | |
122 | %files dll | |
123 | %defattr(644,root,root,755) | |
777cad41 | 124 | %{_dlldir}/wx*_gcc.dll |