]>
Commit | Line | Data |
---|---|---|
fd8baf2d | 1 | %define realname wxWidgets |
420fdfd4 JB |
2 | Summary: wxWidgets library - MinGW32 cross version |
3 | Summary(pl.UTF-8): Biblioteka wxWidgets - wersja skrośna dla MinGW32 | |
fd8baf2d | 4 | Name: crossmingw32-%{realname} |
52286129 | 5 | Version: 3.2.4 |
fd8baf2d | 6 | Release: 1 |
f85a8810 | 7 | License: wxWidgets Library Licence 3.1 (LGPL v2+ with exception) |
fd8baf2d | 8 | Group: Development/Libraries |
52286129 JB |
9 | #Source0Download: https://github.com/wxWidgets/wxWidgets/releases |
10 | Source0: https://github.com/wxWidgets/wxWidgets/releases/download/v%{version}/%{realname}-%{version}.tar.bz2 | |
11 | # Source0-md5: 8eada508f5bdf390eeec5b0e0af38f71 | |
fd8baf2d | 12 | Patch0: %{realname}-samples.patch |
87144d8f | 13 | Patch1: %{realname}-ac.patch |
f85a8810 | 14 | Patch2: %{realname}-gifdelay.patch |
52286129 | 15 | URL: https://www.wxWidgets.org/ |
87144d8f | 16 | BuildRequires: autoconf >= 2.58 |
fd8baf2d | 17 | BuildRequires: automake |
52286129 | 18 | #BuildRequires: bakefile >= 0.2.12 |
f85a8810 | 19 | BuildRequires: crossmingw32-expat |
fd8baf2d | 20 | BuildRequires: crossmingw32-gcc-c++ |
21 | BuildRequires: crossmingw32-libjpeg | |
22 | BuildRequires: crossmingw32-libpng | |
420fdfd4 | 23 | BuildRequires: crossmingw32-libtiff |
f85a8810 JB |
24 | BuildRequires: crossmingw32-w32api |
25 | BuildRequires: crossmingw32-zlib >= 1.1.4 | |
fd8baf2d | 26 | BuildRequires: libtool |
f85a8810 | 27 | Requires: crossmingw32-expat |
fd8baf2d | 28 | Requires: crossmingw32-libjpeg |
29 | Requires: crossmingw32-libpng | |
420fdfd4 | 30 | Requires: crossmingw32-libtiff |
f85a8810 | 31 | Requires: crossmingw32-w32api |
52286129 | 32 | Obsoletes: crossmingw32-wxMSW < 2.5 |
fd8baf2d | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
52286129 | 35 | %define _enable_debug_packages 0 |
fd8baf2d | 36 | %define no_install_post_strip 1 |
37 | ||
777cad41 JB |
38 | %define target i386-mingw32 |
39 | %define target_platform i386-pc-mingw32 | |
fd8baf2d | 40 | |
777cad41 JB |
41 | %define _sysprefix /usr |
42 | %define _sysbindir %{_sysprefix}/bin | |
43 | %define _prefix %{_sysprefix}/%{target} | |
bd25379e | 44 | %define _libdir %{_prefix}/lib |
777cad41 JB |
45 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
46 | %define _dlldir /usr/share/wine/windows/system | |
47 | %define __cc %{target}-gcc | |
48 | %define __cxx %{target}-g++ | |
fd8baf2d | 49 | |
777cad41 JB |
50 | %ifnarch %{ix86} |
51 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
fd8baf2d | 52 | %define optflags -O2 |
53 | %endif | |
f85a8810 JB |
54 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
55 | %define filterout_ld -Wl,-z,.* | |
56 | %define filterout_c -f[-a-z0-9=]* | |
57 | %define filterout_cxx -f[-a-z0-9=]* | |
fd8baf2d | 58 | |
fd8baf2d | 59 | %description |
60 | wxWidgets is a free C++ library for cross-platform GUI development. | |
61 | With wxWidgets, you can create applications for different GUIs (GTK+, | |
62 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
63 | ||
b35f38d5 JR |
64 | %description -l pl.UTF-8 |
65 | wxWidgets to wolnodostępna biblioteka napisana w C++ umożliwiająca | |
66 | rozwijanie wieloplatformowych programów GUI. Przy użyciu wxWidgets | |
67 | można tworzyć aplikacje dla różnych GUI (GTK+, Motif/LessTif, MS | |
68 | Windows, Mac) z tego samego kodu źródłowego. | |
fd8baf2d | 69 | |
70 | %package dll | |
71 | Summary: %{realname} - DLL library for Windows | |
c8d76d75 | 72 | Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows |
fd8baf2d | 73 | Group: Applications/Emulators |
f85a8810 | 74 | Requires: crossmingw32-expat-dll |
420fdfd4 JB |
75 | Requires: crossmingw32-libjpeg-dll |
76 | Requires: crossmingw32-libpng-dll | |
77 | Requires: crossmingw32-libtiff-dll | |
f85a8810 | 78 | Requires: crossmingw32-zlib-dll >= 1.1.4 |
fd8baf2d | 79 | |
80 | %description dll | |
81 | %{realname} - DLL libraries for Windows. | |
82 | ||
b35f38d5 | 83 | %description dll -l pl.UTF-8 |
fd8baf2d | 84 | %{realname} - biblioteki DLL dla Windows. |
85 | ||
86 | %prep | |
87 | %setup -q -n %{realname}-%{version} | |
88 | %patch0 -p1 | |
89 | %patch1 -p1 | |
90 | %patch2 -p1 | |
91 | ||
92 | %build | |
87144d8f | 93 | cp -f /usr/share/automake/config.sub . |
73e1d714 | 94 | %{__aclocal} -I build/aclocal |
fd8baf2d | 95 | %{__autoconf} |
96 | ||
97 | %configure \ | |
420fdfd4 JB |
98 | --host=%{target} \ |
99 | --target=%{target} \ | |
73e1d714 | 100 | --disable-precomp-headers \ |
f85a8810 | 101 | --enable-calendar \ |
420fdfd4 | 102 | --enable-controls \ |
f85a8810 | 103 | --enable-plugins \ |
fd8baf2d | 104 | --enable-std-iostreams \ |
f85a8810 JB |
105 | --enable-vendor=pld \ |
106 | --with-msw \ | |
107 | --with-opengl | |
fd8baf2d | 108 | |
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
420fdfd4 | 113 | install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysbindir}} |
fd8baf2d | 114 | |
73e1d714 JB |
115 | %{__make} install \ |
116 | DESTDIR=$RPM_BUILD_ROOT | |
fd8baf2d | 117 | |
52286129 | 118 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/*.dll $RPM_BUILD_ROOT%{_dlldir} |
fd8baf2d | 119 | |
120 | %if 0%{!?debug:1} | |
777cad41 | 121 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
fd8baf2d | 122 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
123 | %endif | |
124 | ||
52286129 | 125 | ln -sf %{_libdir}/wx/config/i386-mingw32-msw-unicode-3.2 $RPM_BUILD_ROOT%{_sysbindir}/i386-mingw32-wx-msw-unicode-config |
f85a8810 JB |
126 | |
127 | # use from native wxWidgets if needed | |
128 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,bakefile,locale} | |
fd8baf2d | 129 | |
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
f85a8810 | 135 | %attr(755,root,root) %{_sysbindir}/i386-mingw32-wx-msw-unicode-config |
52286129 JB |
136 | %{_libdir}/libwx_baseu-3.2-i386-mingw32.dll.a |
137 | %{_libdir}/libwx_baseu_net-3.2-i386-mingw32.dll.a | |
138 | %{_libdir}/libwx_baseu_xml-3.2-i386-mingw32.dll.a | |
139 | %{_libdir}/libwx_mswu_adv-3.2-i386-mingw32.dll.a | |
140 | %{_libdir}/libwx_mswu_aui-3.2-i386-mingw32.dll.a | |
141 | %{_libdir}/libwx_mswu_core-3.2-i386-mingw32.dll.a | |
142 | %{_libdir}/libwx_mswu_gl-3.2-i386-mingw32.dll.a | |
143 | %{_libdir}/libwx_mswu_html-3.2-i386-mingw32.dll.a | |
144 | %{_libdir}/libwx_mswu_media-3.2-i386-mingw32.dll.a | |
145 | %{_libdir}/libwx_mswu_propgrid-3.2-i386-mingw32.dll.a | |
146 | %{_libdir}/libwx_mswu_qa-3.2-i386-mingw32.dll.a | |
147 | %{_libdir}/libwx_mswu_ribbon-3.2-i386-mingw32.dll.a | |
148 | %{_libdir}/libwx_mswu_richtext-3.2-i386-mingw32.dll.a | |
149 | %{_libdir}/libwx_mswu_stc-3.2-i386-mingw32.dll.a | |
150 | %{_libdir}/libwx_mswu_webview-3.2-i386-mingw32.dll.a | |
151 | %{_libdir}/libwx_mswu_xrc-3.2-i386-mingw32.dll.a | |
777cad41 JB |
152 | %dir %{_libdir}/wx |
153 | %dir %{_libdir}/wx/config | |
52286129 | 154 | %attr(755,root,root) %{_libdir}/wx/config/i386-mingw32-msw-unicode-3.2 |
777cad41 | 155 | %{_libdir}/wx/include |
52286129 | 156 | %{_includedir}/wx-3.2 |
fd8baf2d | 157 | |
158 | %files dll | |
159 | %defattr(644,root,root,755) | |
52286129 JB |
160 | %{_dlldir}/wxbase32u_gcc_pld.dll |
161 | %{_dlldir}/wxbase32u_net_gcc_pld.dll | |
162 | %{_dlldir}/wxbase32u_xml_gcc_pld.dll | |
163 | %{_dlldir}/wxmsw32u_adv_gcc_pld.dll | |
164 | %{_dlldir}/wxmsw32u_aui_gcc_pld.dll | |
165 | %{_dlldir}/wxmsw32u_core_gcc_pld.dll | |
166 | %{_dlldir}/wxmsw32u_gl_gcc_pld.dll | |
167 | %{_dlldir}/wxmsw32u_html_gcc_pld.dll | |
168 | %{_dlldir}/wxmsw32u_media_gcc_pld.dll | |
169 | %{_dlldir}/wxmsw32u_propgrid_gcc_pld.dll | |
170 | %{_dlldir}/wxmsw32u_qa_gcc_pld.dll | |
171 | %{_dlldir}/wxmsw32u_ribbon_gcc_pld.dll | |
172 | %{_dlldir}/wxmsw32u_richtext_gcc_pld.dll | |
173 | %{_dlldir}/wxmsw32u_stc_gcc_pld.dll | |
174 | %{_dlldir}/wxmsw32u_webview_gcc_pld.dll | |
175 | %{_dlldir}/wxmsw32u_xrc_gcc_pld.dll |