[ptx] mandrake problems continued

Douglas Wilkins douglasw at zahav.net.il
Tue Nov 2 17:40:13 GMT 2004


On Tue, 2004-11-02 at 12:10 -0500, Johnny Deadman wrote:
> Okay, I'm driving myself nuts here. Any help very gratefully received.
> 
> On Mandrake Community 10.1:
> 
> -- I check out latest CVS of Hugin
> -- I install all packages required to satisfy dependencies
> -- This includes wxGTK 2.4.2 with the XRC extension
> 
> however when I come to compile Hugin, it fails because wxrc is not 
> included in my RPM, so I figure I have to compile wxGTK from scratch

Unfortunately true. the wx* and libwx* rpms have enough to run hugin but
not to compile it :-(

> 
> Unfortunately I simply cannot get this to work. Could someone give me 
> detailed instructions on how I should do this? The problems I am having 
> are detailed below:

My suggestion is to use wxGTK 2.5.3 rather, where xrc is integrated into
the main distribution rather than being in contribs. Attached is a spec
file which will build the required rpms, as well as the two relevant
patches. Download wxGTK 2.5.3 from the wxwidgets site, drop it and the
two patches into SOURCES, the specfile into SPECS and from the SPECS
directory run 
rpm -bb wx2.5.3.spec
the required rpms will then be in RPMS/i586. Install and hugin should
compile [it does for me ;-)]

regards,
Doug
-------------- next part --------------
%define oname wxGTK
%define majorminor	2.5
%define name		%{oname}%majorminor
%define version		2.5.3
%define	major		2.5_3
%define release		1dgw

%define	libname %mklibname wxgtk %{major}
%define libgl	%mklibname wxgtkgl %{major}

Name:		%{name}
Summary:	GTK+ port of the wxWidgets library
Version:	%{version}
Release:	%{release}
License:	LGPL
Group:		System/Libraries
URL:		http://www.wxwindows.org
# http://wxwindows.sourceforge.net/snapshots/wx-cvs-20030817.tar.bz2
Source:		%oname-%version.tar.bz2
Patch:		wxGTK-2.5.3-patch02.patch.bz2
Patch1:		wxGTK-2.5.3-gcc3.4.patch.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Buildrequires:	libpng-devel
Buildrequires:	zlib-devel
Buildrequires:	gtk+2-devel
Buildrequires:	libjpeg-devel
Buildrequires:	bison, flex
Buildrequires:	libtiff-devel
BuildRequires:  libMesaGLU-devel

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%package -n %libname
Group:		System/Libraries
Summary: 	Base shared library part of wxGTK
Requires:	%name >= %version

%description -n %libname
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with %{name}.



%package -n %{libname}-devel
Summary:	Header files and development documentation for wxGTK
Group:		Development/C++
Requires:	%{libname} = %version-%release
Requires:	%{libgl} = %version-%release
Provides:	wxGTK-devel = %version-%release
Provides:	wxGTK%{majorminor}-devel = %version-%release
Provides:	libwxgtk%majorminor-devel = %version-%release
Provides:	libwxgtk-devel = %version-%release
Conflicts:	wxGTK6-devel wxGTK2.2-devel wxGTK2.3_1-devel libwxgtk2.4-devel
Conflicts:	libwxBase0-devel

%description -n %{libname}-devel
Header files for wxGTK, the GTK+ port of the wxWidgets library.

%package  -n %{libgl}
Summary:	GTK+ port of the wxWidgets library, OpenGl add-on.
Group:		System/Libraries
Provides:	wxGTK-gl = %version-%release
Provides:	wxGTK%{majorminor}-gl = %version-%release

%description -n %{libgl}
OpenGl add-on library for wxGTK, the GTK+ port of the wxWidgets library.

%prep
%setup -q -n %oname-%version
%patch -p1 -b .patch02
%patch1 -p1 -b .gcc3.4

%build
export LDFLAGS=-L%_prefix/X11R6/%_lib
%configure2_5x \
	--without-odbc \
  	--with-opengl \
	--enable-gtk2 --with-gtk  \
	--without-debug_flag \
  	--without-debug_info \
  	--with-libpng=sys \
	--with-libjpeg=sys \
	--with-libtiff=sys \
	--with-zlib=sys \
	--enable-soname \
	--enable-optimise \
	\
	--enable-calendar \
	--enable-wave \
	--enable-fraction \
	--enable-wxprintfv \
	--enable-xresources \
	--enable-controls \
	--enable-tabdialog \
	--enable-msgdlg \
	--enable-dirdlg \
	--enable-numberdlg \
	--enable-splash \
	--enable-textdlg

%make
cd contrib
%make
cd ..
find samples -name .cvsignore -exec rm {} \;

%install
rm -rf %buildroot
%makeinstall
cd contrib
%makeinstall
cd ..
%find_lang wxstd

%clean
rm -rf %buildroot

%post   -n %{libname}	-p /sbin/ldconfig
%postun -n %{libname}	-p /sbin/ldconfig

%post   -n %{libgl}	-p /sbin/ldconfig
%postun -n %{libgl}	-p /sbin/ldconfig


%files -f wxstd.lang
%defattr(-,root,root,-)
%doc *.txt
%_datadir/wx/

%files -n %libname
%defattr(-,root,root,-)
%_libdir/libwx_gtk2_adv-%{majorminor}.so.*
%_libdir/libwx_gtk2_core-%{majorminor}.so.*
%_libdir/libwx_gtk2_html-%{majorminor}.so.*
%_libdir/libwx_gtk2_xrc-%{majorminor}.so.*
%_libdir/libwx_base-%majorminor.so.*
%_libdir/libwx_base_net-%majorminor.so.*
%_libdir/libwx_base_xml-%majorminor.so.*
# contribs
%_libdir/libwx_gtk2_animate-%{majorminor}.so.*
%_libdir/libwx_gtk2_deprecated-%{majorminor}.so.*
%_libdir/libwx_gtk2_fl-%{majorminor}.so.*
%_libdir/libwx_gtk2_gizmos-%{majorminor}.so.*
%_libdir/libwx_gtk2_mmedia-%{majorminor}.so.*
%_libdir/libwx_gtk2_ogl-%{majorminor}.so.*
%_libdir/libwx_gtk2_plot-%{majorminor}.so.*
%_libdir/libwx_gtk2_stc-%{majorminor}.so.*
%_libdir/libwx_gtk2_svg-%{majorminor}.so.*

%files -n %{libname}-devel
%defattr(-,root,root,-)
%doc samples/*
%{_bindir}/*
%dir %{_includedir}/wx-%{majorminor}
%{_includedir}/wx-%{majorminor}/*
%dir %{_libdir}/wx
%dir %{_libdir}/wx/config/
%dir %{_libdir}/wx/include/
%dir %{_libdir}/wx/include/gtk2-release-%{majorminor}
%dir %{_libdir}/wx/include/gtk2-release-%{majorminor}/wx
%{_libdir}/wx/config/gtk2-release-%{majorminor}
%{_libdir}/wx/include/gtk2-release-%{majorminor}/wx/setup.h
%{_libdir}/libwx*-%majorminor.so
%_datadir/aclocal/*

%files -n %{libgl}
%defattr(-,root,root,-)
%{_libdir}/libwx_gtk2u_gl-%majorminor.so.*

%changelog
* Tue Nov 2 2004 Douglas Wilkins <douglasw at zahav.net.il> 2.5.3-1dgw
- Update to 2.5.3

* Thu Jul  8 2004 G?tz Waschk <waschk at linux-mandrake.com> 2.5.1-5mdk
- lib64 fix
- fix devel package group

* Mon Jun  7 2004 G?tz Waschk <waschk at linux-mandrake.com> 2.5.1-4mdk
- patch for new g++

* Fri Apr  9 2004 G?tz Waschk <waschk at linux-mandrake.com> 2.5.1-3mdk
- fix compatibility with gtk+ 2.4

* Thu Apr  8 2004 G?tz Waschk <waschk at linux-mandrake.com> 2.5.1-2mdk
- don't provide wxGTK2.5 in the library package

* Thu Apr  8 2004 G?tz Waschk <waschk at linux-mandrake.com> 2.5.1-1mdk
- fix name in the description
- add docs
- fix configure call
- use parallel make
- fix buildrequires
- add contribs
- fix major
- drop unused patch
- fix url
- new version

* Mon Aug 18 2003 Han Boetes <han at linux-mandrake.com> 2.5.0-0.cvs20030817.1mdk
- bump to a more recent snapshot.
- remove trailing whitespace.

* Wed Jul 16 2003 G?tz Waschk <waschk at linux-mandrake.com> 2.5.0-0.cvs20030319.6mdk
- devel package conflicts with libwxBase0-devel
- add some dirs to the package
- enable system libtiff

* Wed Jul  9 2003 G?tz Waschk <waschk at linux-mandrake.com> 2.5.0-0.cvs20030319.5mdk
- rebuild for new rpm

* Wed May 21 2003 Pascal Terjan <CMoi at tuxfamily.org> 2.5.0-0.cvs20030319.4mdk
- Added explicit conflict between -devel and 2.4's one

* Mon Mar 24 2003 Pascal Terjan <CMoi at tuxfamily.org> 2.5.0-0.cvs20030319.3mdk
- fix problem with localized strings

* Fri Mar 21 2003 Pascal Terjan <CMoi at tuxfamily.org> 2.5.0-0.cvs20030319.2mdk
- small cleanup

* Wed Mar 19 2003 Pascal Terjan <CMoi at tuxfamily.org> 2.5.0-0.cvs20030319.1mdk
- CVS version

* Wed Mar 12 2003 G?tz Waschk <waschk at linux-mandrake.com> 2.4.0-3mdk
- fix buildrquires

* Thu Feb 13 2003 G?tz Waschk <waschk at linux-mandrake.com> 2.4.0-2mdk
- fix provides
- use the mklibname macro
- disable unicode

* Wed Jan  8 2003 G?tz Waschk <waschk at linux-mandrake.com> 2.4.0-1mdk
- major 2.4
- new version

* Wed Sep 18 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.3-1mdk
- enable gtk2 and unicode support
- change lib naming scheme to libwxgtk%%major and libwxgtkgl%%major
- rearrange files to the default dirs
- remove patch
- new version

* Mon Sep  2 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.2-7mdk
- fix location of m4 macros (Gabriel Phoenix <gabrieltalks at sympatico.ca>)

* Fri Aug 16 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.2-6mdk
- gcc 3.2-0.3mdk build
- disable parallel build

* Mon Jul 29 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.2-5mdk
- rpmlint fixes

* Sat May 18 2002 Alexander Skwar <ASkwar at DigitalProjects.com> 2.3.2-4mdk
- Remove the Conflicts: wxGTK2.2 in the gl package as well

* Fri May 17 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.2-3mdk
- devel package requires gl
- rebuild for missing gl package
- remove the conflict with wxGTK2.2, wxGTK6

* Tue May 14 2002 G?tz Waschk <waschk at linux-mandrake.com> 2.3.2-2mdk
- patch to make it build
- build with gcc3.1

* Fri Apr 26 2002 Alexander Skwar <ASkwar at DigitalProjects.com> 2.3.2-1mdk
- Change package name to wxGTK2.3_1, so that it fits to libname policy
  thx Goetz Waschk <waschk at informatik.uni-rostock.de>
- The packages now also provide wxGTK2.3, so that other packages can easily
  require the correct version of wxGTK
- Dump the unused main package

* Sun Apr 21 2002 Alexander Skwar <ASkwar at DigitalProjects.com> 2.3.2-2mdk
- Fix URL
- Make package provide wxGTK
- Put description and provides of the unused main package into the
  wxGTK%%major package

* Sat Apr 20 2002 Alexander Skwar <ASkwar at DigitalProjects.com> 2.3.2-1mdk
- 2.3.2
- Don't use --enable-burnt_name, no longer supported
- Build with everything --enable'd, but not with --enable-unicode :(
- Build with the builtin version of libtiff

* Wed Feb 13 2002 Lenny Cartier <lenny at mandrakesoft.com> 2.2.9-3mdk
- use shared libs

* Mon Feb 04 2002 Yves Duret <yduret at mandrakesoft.com> 2.2.9-2mdk
- fix libwx_gtk-2.2.so.6 pbs thx Goetz Waschk <waschk at informatik.uni-rostock.de>
- more buildrequires

* Fri Feb 01 2002 Yves Duret <yduret at mandrakesoft.com> 2.2.9-1mdk
- version 2.2.9
- fix bad %%defattr and bad %%files list
- %%setup -q
- use %%buildroot everywhere
- globbing and macros are powerfull
- %%configure in %%build not in %%prep
- buildrequires is for the masses

* Tue Nov 13 2001 Renaud Chaillat <rchaillat at mandrakesoft.com> 2.2.7-13mdk
- rebuilt with current cooker, linking looks broken

* Thu Nov  8 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-12mdk
- Sample Makefile Problem.

* Wed Nov  7 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-11mdk
- %lang pbs, locale pbs & audacity incompatibility.

* Sat Nov  3 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-10mdk
- fixes some bugs causing by pkg.

* Fri Nov  2 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-9mdk
- fixes some problems with libraries (gl)

* Fri Nov  2 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-8mdk
- fixes some problem with libraries

* Fri Nov  2 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-7mdk
- devel-file-in-non-devel-package for OpenGL

* Fri Nov  2 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-6mdk
- fixes non-versioned files.

* Thu Nov  1 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-5mdk
- bugs fixes.

* Tue Oct 30 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-4mdk
- defattr

* Tue Oct 30 2001 Sebastien Dupont <sdupont at mandrakesoft.com> 2.2.7-3mdk
- correct: permissions, no-dependency-on locales-gl, no-documentation
- file-not-in-%lang /usr/share/doc/wxGTK-devel-2.2.7/internat/de/internat.mo, etc...

* Mon Jun 18 2001 Yves Bailly <ybailly at mandrakesoft.com> 2.2.7-2mdk
- added samples in doc directory for the devel package

* Mon Jun 18 2001 Yves Bailly <ybailly at mandrakesoft.com> 2.2.7-1mdk
- updated to 2.2.7

* Thu Feb 15 2001 Lenny Cartier <lenny at mandrakesoft.com> 2.2.5-1mdk
- updated to 2.2.5

* Mon Jan 15 2001 Lenny Cartier <lenny at mandrakesoft.com> 2.2.4-1mdk
- updated to 2.2.4

* Tue Dec 05 2000 Lenny Cartier <lenny at mandrakesoft.com> 2.2.2-2mdk
- build for gcc-2.96

* Sun Sep 17 2000 Lenny Cartier <lenny at mandrakesoft.com> 2.2.2-1mdk
- update to 2.2.2
- clean spec
- BM

* Sat Aug 05 2000 Lenny Cartier <lenny at mandrakesoft.com> 2.2.0-1mdk
- fix symlink that broke this lib
- update to 2.2.0
- macros

* Sat May 27 2000 Vincent Danen <vdanen at mandrakesoft.com> 2.1.15-2mdk
- add --with-gtk, --without-odbc, --without-shared, --without-debug_flag,
  and --without-debug_info to configure

* Fri May 26 2000 Vincent Danen <vdanen at mandrakesoft.com> 2.1.15-1mdk
- initial specfile
- bzip sources
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxGTK-2.5.3-gcc3.4.patch.bz2
Type: application/x-bzip
Size: 279 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/ptx/attachments/20041102/e8216b42/wxGTK-2.5.3-gcc3.4.patch.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxGTK-2.5.3-patch02.patch.bz2
Type: application/x-bzip
Size: 591 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/ptx/attachments/20041102/e8216b42/wxGTK-2.5.3-patch02.patch.bin


More information about the ptX mailing list