Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > a71183240b1e84e9d2db3531501dd96c > files > 4

wxGTK-2.4.2-6mdk.src.rpm

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

Summary:	GTK+ port of the wxWindows library
Name:		wxGTK
Version:	2.4.2
Release:	%mkrel 6
License:	LGPL
Group:		System/Libraries
URL:		http://www.wxwindows.org
Source:		http://prdownloads.sourceforge.net/wxwindows/%{name}-%{version}.tar.bz2
Patch0:         wxGTK-locale_to_utf8.patch.bz2
Patch1:		wxGTK-2.4.2-gtk2.4.patch.bz2
BuildRequires:	libpng-devel
BuildRequires:	zlib-devel
BuildRequires:	gtk+2-devel
BuildRequires:	libjpeg-devel
BuildRequires:	bison, flex
BuildRequires:	libtiff-devel
BuildRequires:  libMesaGLU-devel
BuildRequires:	file
%if %mdkversion >= 1020
BuildRequires:	multiarch-utils >= 1.0.3
%endif
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
wxWindows is a free C++ library for cross-platform GUI development.
With wxWindows, 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}
Provides:	wxGTK%{major} = %{version}-%{release}

%description -n	%{libname}
wxWindows is a free C++ library for cross-platform GUI development.
With wxWindows, 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:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libgl} = %{version}-%{release}
Provides:	wxGTK-devel = %{version}-%{release}
Provides:	wxGTK%{major}-devel = %{version}-%{release}
Provides:	libwxgtk-devel = %{version}-%{release}
Conflicts:	wxGTK6-devel wxGTK2.2-devel wxGTK2.3_1-devel

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

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

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

%prep

%setup -q
%patch0
%patch1 -p1 -b .gtk2.4

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
export LDFLAGS="-L%{_prefix}/X11R6/%{_lib} -L%{_libdir}"
export OPENGL_LIBS="-L%{_prefix}/X11R6/%{_lib} -lGL -lGLU"

%configure \
	--without-odbc \
  	--with-opengl \
	--with-gtk  \
	--without-debug_flag \
  	--without-debug_info \
  	--with-libpng=sys \
	--with-libjpeg=sys \
	--with-libtiff=sys \
	--with-zlib=sys \
	--enable-gtk2 \
	--enable-soname \
	--enable-optimise \
	--enable-calendar \
	--enable-wave \
	--enable-fraction \
	--enable-wxprintfv \
	--enable-xresources \
	--enable-controls \
	--enable-tabdialog 

%make
%make -C contrib/src/stc
%make -C contrib/src/xrc

# make these contrib apps too
%make -C contrib/utils/wxrc
%make -C contrib/utils/wxrcedit

%install 
rm -rf %buildroot

%makeinstall
%makeinstall -C contrib/src/stc
%makeinstall -C contrib/src/xrc

%{find_lang} wxstd

install -m0755 contrib/utils/wxrc/wxrc %{buildroot}%{_bindir}/
install -m0755 contrib/utils/wxrcedit/wxrcedit %{buildroot}%{_bindir}/

rm -f %{buildroot}%{_bindir}/wx-config
mv %{buildroot}%{_bindir}/wxgtk2-2.4-config %{buildroot}%{_bindir}/wx-config

%if %mdkversion >= 1020
%multiarch_binaries %{buildroot}%{_bindir}/wx-config
%endif

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

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

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

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

%clean
rm -rf %buildroot

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

%files -n %{libname}
%defattr(-,root,root,-)
%_libdir/libwx_gtk2-2.4.so.*
%_libdir/libwx_gtk2_stc-2.4.so.*
%_libdir/libwx_gtk2_xrc-2.4.so.*

%files -n %{libname}-devel
%defattr(-,root,root,-)
%doc samples/*
%if %mdkversion >= 1020
%multiarch %{multiarch_bindir}/wx-config
%endif
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wxrcedit
%dir %{_includedir}/wx
%{_includedir}/wx/*
%dir %{_libdir}/wx
%{_libdir}/wx/include/gtk2-2.4/wx/setup.h
%{_libdir}/libwx_gtk2*.so
%_datadir/aclocal/*

%files -n %{libgl}
%defattr(-,root,root,-)
%doc README.txt
%{_libdir}/libwx_gtk2_gl*.so.*

%changelog
* Sun Apr 10 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.4.2-6mdk
- %%multiarch work arounds...
- additional lib64 fixes

* Sun Apr 10 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.4.2-5mdk
- build and install some of the contrib apps
- strip away annoying ^M
- use the %%mkrel macro
- fix deps and conditional %%multiarch
- lib64 fixes
- misc spec file fixes

* Mon Jun  7 2004 Götz Waschk <waschk@linux-mandrake.com> 2.4.2-4mdk
- rebuild for new g++

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

* Mon Apr 05 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.4.2-2mdk
- rebuild

* Thu Oct  2 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.2-1mdk
- new version

* Mon Sep 15 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-4mdk
- fix URL
- fix buildrequires
- add contrib/stc and contrib/xrc

* Wed Aug 27 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-3mdk
- support mandrake 9.0
- use system libtiff

* Wed Jul  9 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-2mdk
- rebuild for new rpm

* Mon Jun 16 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-1mdk
- new version

* Tue Apr 01 2003 Pascal Terjan <CMoi@tuxfamily.org> 2.4.0-4mdk
- Patch0 : fix truncaated strings in wxNotebook tab names

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

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

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

* Wed Sep 18 2002 Götz Waschk <waschk@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@linux-mandrake.com> 2.3.2-7mdk
- fix location of m4 macros (Gabriel Phoenix <gabrieltalks@sympatico.ca>) 

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

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

* Sat May 18 2002 Alexander Skwar <ASkwar@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@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@linux-mandrake.com> 2.3.2-2mdk
- patch to make it build 
- build with gcc3.1

* Fri Apr 26 2002 Alexander Skwar <ASkwar@DigitalProjects.com> 2.3.2-1mdk
- Change package name to wxGTK2.3_1, so that it fits to libname policy
  thx Goetz Waschk <waschk@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@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@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@mandrakesoft.com> 2.2.9-3mdk
- use shared libs

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

* Fri Feb 01 2002 Yves Duret <yduret@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@mandrakesoft.com> 2.2.7-13mdk
- rebuilt with current cooker, linking looks broken

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

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

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

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

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

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

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

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

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

* Tue Oct 30 2001 Sebastien Dupont <sdupont@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@mandrakesoft.com> 2.2.7-2mdk
- added samples in doc directory for the devel package

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

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

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

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

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

* Sat Aug 05 2000 Lenny Cartier <lenny@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@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@mandrakesoft.com> 2.1.15-1mdk
- initial specfile
- bzip sources