%define x11libdir %{_prefix}/X11R6/%{_lib}
Name: wxGTK24
Version: 2.4.2
Release: 12
Summary: GTK+ port of the wxWidgets GUI library
License: BSD
Group: System Environment/Libraries
URL: http://www.wxwidgets.org/
Source0: http://dl.sf.net/wxwindows/wxGTK-%{version}.tar.bz2
Patch0: wxGTK-2.4.2-privates.patch
Patch1: wxGTK-2.4.2-aclocal18.patch
Patch2: wxGTK-2.4.2-gcc4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk+-devel gtk2-devel zlib-devel >= 1.1.4
BuildRequires: libpng-devel libjpeg-devel libtiff-devel
BuildRequires: libGL libGLU
%description
wxWidgets/GTK is the GTK+ (1.2) port of the C++ cross-platform wxWidgets
GUI library, offering classes for all common GUI controls as well as a
comprehensive set of helper classes for most common application tasks,
ranging from networking to HTML display and image manipulation.
%package devel
Group: Development/Libraries
Summary: Development files for the wxGTK library
Requires: %{name} = %{version}-%{release}
Requires: gtk+-devel, gtk2-devel
%description devel
This package includes files needed to link with the wxGTK library.
%prep
%setup -q -n wxGTK-%{version}
%patch0 -p1 -b .privates
%patch1 -b .aclocal18
%patch2 -p1 -b .gcc4
sed -i -e 's|/usr/lib\b|%{_libdir}|' wx-config.in configure
%build
mkdir _gtk1 _gtk2
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
cd _gtk1
../configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--x-libraries=%{x11libdir} \
--with-opengl \
--enable-shared \
--enable-soname \
--disable-optimise
make %{?_smp_mflags}
make %{?_smp_mflags} -C contrib/src/stc
make %{?_smp_mflags} -C contrib/src/xrc
cd ../_gtk2
../configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--x-libraries=%{x11libdir} \
--with-opengl \
--enable-shared \
--enable-soname \
--disable-optimise \
--enable-gtk2
make %{?_smp_mflags}
make %{?_smp_mflags} -C contrib/src/stc
make %{?_smp_mflags} -C contrib/src/xrc
cd ..
%install
rm -rf $RPM_BUILD_ROOT
# Since we're not using %%configure, we would really like to use
# "make install DESTDIR=..." instead of %%makeinstall here to keep things in
# sync. Unfortunately that does not work.
cd _gtk1
%makeinstall
%makeinstall -C contrib/src/stc
%makeinstall -C contrib/src/xrc
cd ../_gtk2
%makeinstall
%makeinstall -C contrib/src/stc
%makeinstall -C contrib/src/xrc
cd ..
%find_lang wxstd
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f wxstd.lang
%defattr(-,root,root,0755)
%doc CHANGES*.txt COPYING.LIB LICENCE.txt README*.txt
%{_libdir}/*.so.*
%{_datadir}/wx/
%files devel
%defattr(-,root,root,0755)
%{_bindir}/*-config
%{_includedir}/wx/
%{_libdir}/*.so
%{_libdir}/wx/
%{_datadir}/aclocal/*
%changelog
* Mon Nov 28 2005 Matthias Saou 2.4.2-12
- Group all sub-packages into one big fat wxGTK24 compat package + devel.
* Sun May 8 2005 Thorsten Leemhuis - 2.4.2-12
- sed -i -e 's|/usr/lib\b|%%{_libdir}|' in configure also to fix
x86_64
* Sat May 7 2005 Michael Schwendt - 2.4.2-11
- Add BR libGL and libGLU to fix FC4 build failure
(alternatively use xorg-x11-Mesa-libGL xorg-x11-Mesa-libGLU).
* Fri Apr 22 2005 Dams - 2.4.2-10
- Added patch from Ignacio and Denis to fix build with gcc4
* Fri Apr 7 2005 Michael Schwendt
- rebuilt
* Sun Jan 23 2005 Ville Skyttä - 2.4.2-8
- Fix wx-config for x86_64 (#145508).
- Honor $RPM_OPT_FLAGS better, as well as %%{__cc} and %%{__cxx}.
* Mon Dec 6 2004 Ville Skyttä - 2.4.2-7
- Patch to avoid aclocal >= 1.8 warnings from wxwin.m4.
- Move unversioned *.so links for -gl, -stc and -xrc to -devel, make -devel
require them.
* Wed Nov 10 2004 Matthias Saou 2.4.2-6
- Bump release to provide Extras upgrade path.
- Fix spaces/tabs in spec.
- Remove unneeded zero epochs.
- Add full source URL.
* Tue Jun 22 2004 Ville Skyttä - 0:2.4.2-0.fdr.2
- s/wxWindows/wxWidgets/
- Fix release tag.
* Sat May 22 2004 Noa Resare - 0:2.4.2-0.fdr.1.3
- Merged fix from wxGTK cvs head, now works with recent gtk2
* Sat Oct 11 2003 Ville Skyttä - 0:2.4.2-0.fdr.1
- Update to 2.4.2.
* Mon Aug 4 2003 Ville Skyttä - 0:2.4.1-0.fdr.4
- Borrow Matthias Saou's -gl and -stc subpackages.
* Mon Jun 16 2003 Dams 0:2.4.1-0.fdr.3
- Removed libwx_gtk2_xrc*so* from wxGTK2/wxGTK2-devel packages
* Sun Jun 15 2003 Dams 0:2.4.1-0.fdr.2
- Removed *-devel postun scriptlets (from Ville Skyttä)
* Sat Jun 14 2003 Dams 0:2.4.1-0.fdr.1
- Updated to 2.4.1
* Wed May 28 2003 Dams 0:2.4.0-0.fdr.7
- Added xrc contrib in separate packages
* Wed May 21 2003 Dams 0:2.4.0-0.fdr.6
- Corrected typo in postun devel
* Wed May 21 2003 Ville Skyttä - 0:2.4.0-0.fdr.5
- Make -devel packages require the corresponding GTK devel package.
- Save .spec in UTF-8.
- Fixes from Dams:
- Don't build --with-unicode, it breaks stuff (as was already noted by Dams).
- Don't remove wx-config symlinks on upgrades.
- Remove duplicates from docs.
* Tue May 20 2003 Ville Skyttä - 0:2.4.0-0.fdr.4
- Split into subpackages, spec file rewrite.
- Use bzipped upstream tarball.
- Clean up BuildRequirement versions.
* Fri May 9 2003 Dams 0:2.4.0-0.fdr.3
- Now build/include both gtk/gtk2 libs
- buildroot -> RPM_BUILD_ROOT
* Mon Mar 3 2003 Dams
- Initial build.
- Disable unicode as it breaks lmule
- use the %find_lang macro for locale