]>
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} | |
bd25379e | 37 | %define _libdir %{_prefix}/lib |
777cad41 JB |
38 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
39 | %define _dlldir /usr/share/wine/windows/system | |
40 | %define __cc %{target}-gcc | |
41 | %define __cxx %{target}-g++ | |
fd8baf2d | 42 | |
777cad41 JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
fd8baf2d | 45 | %define optflags -O2 |
46 | %endif | |
47 | ||
fd8baf2d | 48 | %description |
49 | wxWidgets is a free C++ library for cross-platform GUI development. | |
50 | With wxWidgets, you can create applications for different GUIs (GTK+, | |
51 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
52 | ||
b35f38d5 JR |
53 | %description -l pl.UTF-8 |
54 | wxWidgets to wolnodostępna biblioteka napisana w C++ umożliwiająca | |
55 | rozwijanie wieloplatformowych programów GUI. Przy użyciu wxWidgets | |
56 | można tworzyć aplikacje dla różnych GUI (GTK+, Motif/LessTif, MS | |
57 | Windows, Mac) z tego samego kodu źródłowego. | |
fd8baf2d | 58 | |
59 | %package dll | |
60 | Summary: %{realname} - DLL library for Windows | |
c8d76d75 | 61 | Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows |
fd8baf2d | 62 | Group: Applications/Emulators |
63 | ||
64 | %description dll | |
65 | %{realname} - DLL libraries for Windows. | |
66 | ||
b35f38d5 | 67 | %description dll -l pl.UTF-8 |
fd8baf2d | 68 | %{realname} - biblioteki DLL dla Windows. |
69 | ||
70 | %prep | |
71 | %setup -q -n %{realname}-%{version} | |
72 | %patch0 -p1 | |
73 | %patch1 -p1 | |
74 | %patch2 -p1 | |
75 | ||
76 | %build | |
87144d8f | 77 | cp -f /usr/share/automake/config.sub . |
73e1d714 | 78 | %{__aclocal} -I build/aclocal |
fd8baf2d | 79 | %{__autoconf} |
80 | ||
81 | %configure \ | |
82 | --with-msw \ | |
83 | --with-opengl \ | |
73e1d714 | 84 | --disable-precomp-headers \ |
fd8baf2d | 85 | --enable-official-build \ |
86 | --enable-std-iostreams \ | |
87 | --enable-controls \ | |
88 | --enable-tabdialog \ | |
89 | --host=%{target} \ | |
90 | --target=%{target} | |
91 | ||
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
fd8baf2d | 96 | |
73e1d714 JB |
97 | %{__make} install \ |
98 | DESTDIR=$RPM_BUILD_ROOT | |
fd8baf2d | 99 | |
777cad41 JB |
100 | install -d $RPM_BUILD_ROOT%{_dlldir} |
101 | mv -f $RPM_BUILD_ROOT%{_libdir}/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
fd8baf2d | 102 | |
103 | %if 0%{!?debug:1} | |
777cad41 | 104 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
fd8baf2d | 105 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
106 | %endif | |
107 | ||
777cad41 | 108 | ln -s %{_libdir}/wx/config/i386-mingw32-msw-ansi-release-2.8 $RPM_BUILD_ROOT%{_sysbindir} |
fd8baf2d | 109 | |
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
777cad41 JB |
115 | %attr(755,root,root) %{_sysbindir}/i386-mingw32-msw-ansi-release-* |
116 | %{_libdir}/libwx_*.dll.a | |
117 | %dir %{_libdir}/wx | |
118 | %dir %{_libdir}/wx/config | |
119 | %attr(755,root,root) %{_libdir}/wx/config/* | |
120 | %{_libdir}/wx/include | |
121 | %{_includedir}/wx-* | |
fd8baf2d | 122 | |
123 | %files dll | |
124 | %defattr(644,root,root,755) | |
777cad41 | 125 | %{_dlldir}/wx*_gcc.dll |