|
|
81793f3 |
%global __strip %{_mingw32_strip}
|
|
|
81793f3 |
%global __objdump %{_mingw32_objdump}
|
|
|
81793f3 |
%define __debug_install_post %{_mingw32_debug_install_post}
|
|
|
81793f3 |
|
|
|
f1c5e12 |
%global mingw_pkg_name wxWidgets
|
|
|
f1c5e12 |
|
|
|
81793f3 |
Summary: MinGW port of the wxWidgets GUI library
|
|
|
f1c5e12 |
Name: mingw-%{mingw_pkg_name}
|
|
|
81793f3 |
Version: 2.8.12
|
|
|
1c81c2e |
Release: 9%{?dist}
|
|
|
81793f3 |
License: wxWidgets
|
|
|
81793f3 |
|
|
|
81793f3 |
Group: Development/Libraries
|
|
|
81793f3 |
URL: http://wxwidgets.org
|
|
|
81793f3 |
Source: http://prdownloads.sourceforge.net/wxwindows/wxWidgets-%{version}.tar.gz
|
|
|
81793f3 |
BuildArch: noarch
|
|
|
a4ecce0 |
BuildRequires: mingw32-filesystem >= 68
|
|
|
81793f3 |
BuildRequires: mingw32-gcc-c++
|
|
|
81793f3 |
BuildRequires: mingw32-expat
|
|
|
81793f3 |
BuildRequires: mingw32-libjpeg
|
|
|
81793f3 |
BuildRequires: mingw32-libpng
|
|
|
81793f3 |
BuildRequires: mingw32-libtiff
|
|
|
81793f3 |
BuildRequires: mingw32-zlib
|
|
|
05a165f |
BuildRequires: gettext
|
|
|
81793f3 |
|
|
|
81793f3 |
%description
|
|
|
81793f3 |
wxWidgets is the C++ cross-platform GUI library, offering classes for all
|
|
|
81793f3 |
common GUI controls as well as a comprehensive set of helper classes for most
|
|
|
81793f3 |
common application tasks, ranging from networking to HTML display and image
|
|
|
81793f3 |
manipulation.
|
|
|
81793f3 |
|
|
|
f1c5e12 |
# Mingw32
|
|
|
f1c5e12 |
%package -n mingw32-%{mingw_pkg_name}
|
|
|
f1c5e12 |
Summary: %{summary}
|
|
|
f1c5e12 |
|
|
|
f1c5e12 |
%description -n mingw32-%{mingw_pkg_name}
|
|
|
f1c5e12 |
wxWidgets is the C++ cross-platform GUI library, offering classes for all
|
|
|
f1c5e12 |
common GUI controls as well as a comprehensive set of helper classes for most
|
|
|
f1c5e12 |
common application tasks, ranging from networking to HTML display and image
|
|
|
f1c5e12 |
manipulation.
|
|
|
f1c5e12 |
|
|
|
f1c5e12 |
%package -n mingw32-%{mingw_pkg_name}-static
|
|
|
f1c5e12 |
Summary: Static libraries for mingw32-%{mingw_pkg_name} development
|
|
|
81793f3 |
Group: Development/Libraries
|
|
|
f1c5e12 |
Requires: mingw32-%{mingw_pkg_name} = %{version}-%{release}
|
|
|
81793f3 |
|
|
|
f1c5e12 |
%description -n mingw32-%{mingw_pkg_name}-static
|
|
|
f1c5e12 |
The mingw32-%{mingw_pkg_name}-static package contains static library for
|
|
|
f1c5e12 |
mingw32-%{mingw_pkg_name} development.
|
|
|
81793f3 |
|
|
|
81793f3 |
%{?_mingw32_debug_package}
|
|
|
81793f3 |
|
|
|
81793f3 |
%prep
|
|
|
81793f3 |
%setup -q -n wxWidgets-%{version}
|
|
|
81793f3 |
|
|
|
81793f3 |
#==========================================
|
|
|
81793f3 |
%build
|
|
|
81793f3 |
#========= Shared Libraries ==========
|
|
|
81793f3 |
mkdir obj-shared
|
|
|
81793f3 |
cd obj-shared
|
|
|
81793f3 |
%_mingw32_configure --enable-shared \
|
|
|
81793f3 |
--with-msw \
|
|
|
81793f3 |
--with-sdl \
|
|
|
81793f3 |
--enable-unicode \
|
|
|
81793f3 |
--enable-optimise \
|
|
|
81793f3 |
--with-regex=builtin \
|
|
|
81793f3 |
--disable-rpath \
|
|
|
81793f3 |
--without-subdirs
|
|
|
81793f3 |
|
|
|
81793f3 |
make %{?_smp_mflags}
|
|
|
81793f3 |
cd ..
|
|
|
81793f3 |
#========= Static Libraries ==========
|
|
|
81793f3 |
mkdir obj-static
|
|
|
81793f3 |
cd obj-static
|
|
|
81793f3 |
%_mingw32_configure --disable-shared \
|
|
|
81793f3 |
--with-msw \
|
|
|
81793f3 |
--with-sdl \
|
|
|
81793f3 |
--enable-unicode \
|
|
|
81793f3 |
--enable-optimise \
|
|
|
81793f3 |
--with-regex=builtin \
|
|
|
81793f3 |
--disable-rpath \
|
|
|
81793f3 |
--without-subdirs
|
|
|
81793f3 |
|
|
|
81793f3 |
#TODO verify this doesn't overwrite anything from the shared build
|
|
|
81793f3 |
make %{?_smp_mflags}
|
|
|
81793f3 |
cd ..
|
|
|
81793f3 |
|
|
|
cf3e303 |
#========= Locale ====================
|
|
|
cf3e303 |
make -C locale allmo
|
|
|
cf3e303 |
|
|
|
81793f3 |
#==========================================
|
|
|
81793f3 |
%install
|
|
|
81793f3 |
make install -C obj-shared DESTDIR=$RPM_BUILD_ROOT
|
|
|
81793f3 |
make install -C obj-static DESTDIR=$RPM_BUILD_ROOT
|
|
|
81793f3 |
if ls $RPM_BUILD_ROOT%{_mingw32_libdir}/*.dll ; then
|
|
|
81793f3 |
mv $RPM_BUILD_ROOT%{_mingw32_libdir}/*.dll $RPM_BUILD_ROOT%{_mingw32_bindir}
|
|
|
81793f3 |
else
|
|
|
81793f3 |
echo "No shared libraries found."
|
|
|
81793f3 |
fi
|
|
|
81793f3 |
|
|
|
81793f3 |
# we need to modify the absolute wx-config link to be relative or rpm complains
|
|
|
81793f3 |
# (and our package wouldn't be relocatable)
|
|
|
81793f3 |
wx_config_filename=$(basename $RPM_BUILD_ROOT%{_mingw32_libdir}/wx/config/%{_mingw32_target}-*-release-[0-9]*)
|
|
|
81793f3 |
ln -sf ../lib/wx/config/$wx_config_filename $RPM_BUILD_ROOT%{_mingw32_bindir}/wx-config
|
|
|
81793f3 |
|
|
|
81793f3 |
# remove bakefiles for now until we have a working bakefile setup for mingw32
|
|
|
81793f3 |
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/bakefile
|
|
|
81793f3 |
|
|
|
6269fa4 |
# find locale files
|
|
|
6269fa4 |
%find_lang wxstd
|
|
|
2b49090 |
%find_lang wxmsw
|
|
|
81793f3 |
|
|
|
2b49090 |
%files -n mingw32-%{mingw_pkg_name} -f wxstd.lang -f wxmsw.lang
|
|
|
81793f3 |
%doc docs/licence.txt docs/licendoc.txt docs/lgpl.txt docs/gpl.txt
|
|
|
81793f3 |
%{_mingw32_bindir}/wx-config
|
|
|
81793f3 |
%{_mingw32_bindir}/wxbase28u_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxbase28u_net_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxbase28u_xml_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_adv_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_aui_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_core_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_html_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_qa_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_richtext_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_bindir}/wxmsw28u_xrc_gcc_custom.dll
|
|
|
81793f3 |
%{_mingw32_includedir}/wx-2.8
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu_net-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu_xml-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_adv-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_aui-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_core-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_html-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_qa-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_richtext-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_xrc-2.8-%{_mingw32_target}.dll.a
|
|
|
81793f3 |
%dir %{_mingw32_libdir}/wx
|
|
|
81793f3 |
%dir %{_mingw32_libdir}/wx/config
|
|
|
81793f3 |
%{_mingw32_libdir}/wx/config/%{_mingw32_target}-msw-unicode-release-2.8
|
|
|
81793f3 |
%dir %{_mingw32_libdir}/wx/include
|
|
|
81793f3 |
%{_mingw32_libdir}/wx/include/%{_mingw32_target}-msw-unicode-release-2.8
|
|
|
81793f3 |
%{_mingw32_datadir}/aclocal/wxwin.m4
|
|
|
81793f3 |
#{_mingw32_datadir}/bakefile
|
|
|
81793f3 |
#{_mingw32_datadir}/bakefile/presets
|
|
|
81793f3 |
#{_mingw32_datadir}/bakefile/presets/wx.bkl
|
|
|
81793f3 |
#{_mingw32_datadir}/bakefile/presets/wx_unix.bkl
|
|
|
81793f3 |
#{_mingw32_datadir}/bakefile/presets/wx_win32.bkl
|
|
|
81793f3 |
|
|
|
f1c5e12 |
%files -n mingw32-%{mingw_pkg_name}-static
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu_net-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_baseu_xml-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_adv-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_aui-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_core-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_html-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_qa-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_richtext-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwx_mswu_xrc-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/libwxregexu-2.8-%{_mingw32_target}.a
|
|
|
81793f3 |
%{_mingw32_libdir}/wx/config/%{_mingw32_target}-msw-unicode-release-static-2.8
|
|
|
81793f3 |
%{_mingw32_libdir}/wx/include/%{_mingw32_target}-msw-unicode-release-static-2.8
|
|
|
81793f3 |
|
|
|
81793f3 |
|
|
|
81793f3 |
%changelog
|
|
|
1c81c2e |
* Tue Feb 28 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.8.12-9
|
|
|
1c81c2e |
- Rebuild against the mingw-w64 toolchain
|
|
|
1c81c2e |
|
|
|
a4ecce0 |
* Tue Jan 31 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.8.12-8
|
|
|
a4ecce0 |
- Rebuild for libpng 1.5
|
|
|
a4ecce0 |
- Dropped the png patch
|
|
|
a4ecce0 |
- Dropped the dependency extraction overrides as that's done automatically as of RPM 4.9
|
|
|
a4ecce0 |
|
|
|
707351e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12-7
|
|
|
707351e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
707351e |
|
|
|
dd66847 |
* Wed Jun 22 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.12-6
|
|
|
dd66847 |
- reinstate italian mo file
|
|
|
dd66847 |
|
|
|
cf3e303 |
* Sun Jun 19 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.12-5
|
|
|
cf3e303 |
- build mo files (reported by Fritz Elfert)
|
|
|
cf3e303 |
|
|
Kalev Lember |
7e1f12e |
* Fri Jun 03 2011 Kalev Lember <kalev@smartlink.ee> - 2.8.12-4
|
|
Kalev Lember |
7e1f12e |
- Rebuilt with mingw32-libjpeg-turbo, dropped jpeg_boolean patch (#604702)
|
|
Kalev Lember |
7e1f12e |
|
|
|
f1c5e12 |
* Mon May 23 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.12-3
|
|
|
f1c5e12 |
- transition to new package naming scheme
|
|
|
f1c5e12 |
|
|
|
81793f3 |
* Thu May 5 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.12-2
|
|
|
81793f3 |
- include license file
|
|
|
81793f3 |
|
|
|
81793f3 |
* Wed May 4 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.12-1
|
|
|
81793f3 |
- update to 2.8.12
|
|
|
81793f3 |
- remove buildroot, defattr, clean
|
|
|
81793f3 |
|
|
|
81793f3 |
* Tue Apr 19 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.8.11-1
|
|
|
81793f3 |
- update to 2.8.11
|
|
|
81793f3 |
|
|
|
81793f3 |
* Tue Sep 8 2009 Michael Ansel <michael.ansel@gmail.com> - 2.8.10-1
|
|
|
81793f3 |
- update to 2.8.10
|
|
|
81793f3 |
|
|
|
81793f3 |
* Tue Sep 8 2009 Michael Ansel <michael.ansel@gmail.com> - 2.8.9-3
|
|
|
81793f3 |
- Adjust to Fedora packaging guidelines
|
|
|
81793f3 |
|
|
|
81793f3 |
* Wed Aug 26 2009 Michael Ansel <michael.ansel@gmail.com> - 2.8.9-2
|
|
|
81793f3 |
- update for Fedora 11 (mingw -> mingw32)
|
|
|
81793f3 |
- use mingw32 macros
|
|
|
81793f3 |
- add static subpackage
|
|
|
81793f3 |
|
|
|
81793f3 |
* Thu Dec 18 2008 Keiichi Takahashi <bitwalk@users.soureforge.net> - 2.8.9-1
|
|
|
81793f3 |
- update to 2.8.9
|
|
|
81793f3 |
|
|
|
81793f3 |
* Tue Aug 12 2008 Keiichi Takahashi <bitwalk@users.soureforge.net> - 2.8.8-1
|
|
|
81793f3 |
- update to 2.8.8
|
|
|
81793f3 |
|
|
|
81793f3 |
* Sat Mar 15 2008 Keiichi Takahashi <bitwalk@users.soureforge.net> - 2.8.7-2
|
|
|
81793f3 |
- rebuilt with current libraries.
|
|
|
81793f3 |
- add BuildPrereq and Requires more explicitly.
|
|
|
81793f3 |
|
|
|
81793f3 |
* Thu Feb 28 2008 Keiichi Takahashi <bitwalk@users.soureforge.net> - 2.8.7-1
|
|
|
81793f3 |
- initial release
|
|
|
81793f3 |
|