]>
Commit | Line | Data |
---|---|---|
1 | %define realname wxWidgets | |
2 | Summary: wxWidgets library - Mingw32 cross version | |
3 | Summary(pl.UTF-8): Biblioteka wxWidgets - wersja skrośna dla Mingw32 | |
4 | Name: crossmingw32-%{realname} | |
5 | Version: 2.8.7 | |
6 | Release: 1 | |
7 | License: wxWidgets Licence (LGPL v2+ with exception) | |
8 | Group: Development/Libraries | |
9 | Source0: http://ftp.wxwidgets.org/pub/%{version}/%{realname}-%{version}.tar.bz2 | |
10 | # Source0-md5: e3455083afdf6404a569a8bf0701cf13 | |
11 | Patch0: %{realname}-samples.patch | |
12 | Patch1: %{realname}-ac.patch | |
13 | Patch2: %{realname}-gif0delay.patch | |
14 | URL: http://www.wxWidgets.org/ | |
15 | BuildRequires: autoconf >= 2.58 | |
16 | BuildRequires: automake | |
17 | #BuildRequires: bakefile >= 0.1.9 | |
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 | ||
31 | %define target i386-mingw32 | |
32 | %define target_platform i386-pc-mingw32 | |
33 | ||
34 | %define _sysprefix /usr | |
35 | %define _sysbindir %{_sysprefix}/bin | |
36 | %define _prefix %{_sysprefix}/%{target} | |
37 | %define _libdir %{_prefix}/lib | |
38 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
39 | %define _dlldir /usr/share/wine/windows/system | |
40 | %define __cc %{target}-gcc | |
41 | %define __cxx %{target}-g++ | |
42 | ||
43 | %ifnarch %{ix86} | |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
47 | ||
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 | ||
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. | |
58 | ||
59 | %package dll | |
60 | Summary: %{realname} - DLL library for Windows | |
61 | Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows | |
62 | Group: Applications/Emulators | |
63 | ||
64 | %description dll | |
65 | %{realname} - DLL libraries for Windows. | |
66 | ||
67 | %description dll -l pl.UTF-8 | |
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 | |
77 | cp -f /usr/share/automake/config.sub . | |
78 | %{__aclocal} -I build/aclocal | |
79 | %{__autoconf} | |
80 | ||
81 | %configure \ | |
82 | --with-msw \ | |
83 | --with-opengl \ | |
84 | --disable-precomp-headers \ | |
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 | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
101 | mv -f $RPM_BUILD_ROOT%{_libdir}/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
102 | ||
103 | %if 0%{!?debug:1} | |
104 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
105 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
106 | %endif | |
107 | ||
108 | ln -s %{_libdir}/wx/config/i386-mingw32-msw-ansi-release-2.8 $RPM_BUILD_ROOT%{_sysbindir} | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
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-* | |
122 | ||
123 | %files dll | |
124 | %defattr(644,root,root,755) | |
125 | %{_dlldir}/wx*_gcc.dll |