X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea38ef4b5c79f68cb30c0611e094f072267dd18c..e7272c085692e058092e3d9cc20103f9110de15b:/wxGTK_RR.spec diff --git a/wxGTK_RR.spec b/wxGTK_RR.spec index c85ddbd04d..904896be43 100644 --- a/wxGTK_RR.spec +++ b/wxGTK_RR.spec @@ -1,6 +1,6 @@ -%define pref /opt/gnome -%define ver 2.5.5 -%define ver2 2.5 +%define _prefix /opt/gnome +%define ver 2.6.2 +%define ver2 2.6 %define rel 1 # Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line): @@ -12,33 +12,43 @@ %{?_with_gtk2: %{expand: %%define gtk2 1}} %{?_without_gtk2: %{expand: %%define gtk2 0}} +# "buildname" needs to be e.g. gtk2ud for debug builds %if %{gtk2} %define gtkver 2 %define portname gtk2 +%if %{unicode} + %define buildname gtk2u +%else + %define buildname gtk2 +%endif %else %define gtkver 1.2 %define portname gtk + %define buildname gtk %endif %if %{unicode} - %define name wx-%{portname}-unicode - %define wxconfig %{portname}-unicode-release-%{ver2} - %define wxconfiglink wx%{portname}u-%{ver2}-config + %define name wx-%{portname}-unicode + %define wxconfig %{portname}-unicode-release-%{ver2} + %define wxconfigstatic %{portname}-unicode-release-static-%{ver2} + %define wxconfiglink wx%{portname}u-%{ver2}-config %else - %define wxbasename wx-base - %define name wx-%{portname} - %define wxconfig %{portname}-ansi-release-%{ver2} - %define wxconfiglink wx%{portname}-%{ver2}-config + %define name wx-%{portname}-ansi + %define wxconfig %{portname}-ansi-release-%{ver2} + %define wxconfigstatic %{portname}-ansi-release-static-%{ver2} + %define wxconfiglink wx%{portname}-%{ver2}-config %endif %if %{unicode} - %define wxbasename wx-base-unicode - %define wxbaseconfig base-unicode-release-%{ver2} - %define wxbaseconfiglink wxbaseu-%{ver2}-config + %define wxbasename wx-base-unicode + %define wxbaseconfig base-unicode-release-%{ver2} + %define wxbaseconfigstatic base-unicode-release-static-%{ver2} + %define wxbaseconfiglink wxbaseu-%{ver2}-config %else - %define wxbasename wx-base-ansi - %define wxbaseconfig base-ansi-release-%{ver2} - %define wxbaseconfiglink wxbase-%{ver2}-config + %define wxbasename wx-base-ansi + %define wxbaseconfig base-ansi-release-%{ver2} + %define wxbaseconfigstatic base-ansi-release-static-%{ver2} + %define wxbaseconfiglink wxbase-%{ver2}-config %endif Summary: The GTK+ %{gtkver} port of the wxWidgets library @@ -50,9 +60,16 @@ Group: X11/Libraries Source: wxGTK-%{ver}.tar.gz URL: http://www.wxwidgets.org Packager: Vadim Zeitlin -Prefix: %{pref} +Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root Requires: %{wxbasename} = %{ver} +%if %{portname} == gtk2 +# BuildRequires: gtk+-2.0-devel +%else +# BuildRequires: gtk+-devel >= 1.2.0 +%endif + +BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel # all packages providing an implementation of wxWidgets library (regardless of # the toolkit used) should provide the (virtual) wxwin package, this makes it @@ -63,7 +80,14 @@ Provides: wxGTK %description wxWidgets is a free C++ library for cross-platform GUI development. With wxWidgets, you can create applications for different GUIs (GTK+, -Motif, MS Windows, MacOS X) from the same source code. +Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code. + +%package -n wx-i18n +Summary: The translations for the wxWidgets library. +Group: X11/Libraries + +%description -n wx-i18n +The translations files for the wxWidgets library. %package devel Summary: The GTK+ %{gtkver} port of the wxWidgets library @@ -73,7 +97,7 @@ Requires: %{wxbasename}-devel = %{ver} Provides: wxGTK-devel %description devel -Header files for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library. +The GTK+ %{gtkver} port of the wxWidgets library, header files. %package gl Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on. @@ -85,20 +109,26 @@ Provides: wxGTK-gl OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library. %package -n %{wxbasename} -Summary: The base classes +Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit Group: Development/Libraries Provides: wxBase %description -n %{wxbasename} -A collection of GUI independent classes +wxBase is a collection of C++ classes providing basic data structures (strings, +lists, arrays), portable wrappers around many OS-specific funstions (file +operations, time/date manipulations, threads, processes, sockets, shared +library loading) as well as other utility classes (streams, archive and +compression). wxBase currently supports Win32, most Unix variants (Linux, +FreeBSD, Solaris, HP-UX) and MacOS X (Carbon and Mach-0). %package -n %{wxbasename}-devel -Summary: The base classes header files +Summary: wxBase library, header files. Group: Development/Libraries Provides: wxBase-devel %description -n %{wxbasename}-devel -A collection of GUI independent classes. Header files. +wxBase library - non-GUI support classes of the wxWidgets toolkit, +header files. %package contrib Summary: The GTK+ %{gtkver} port of the wxWidgets library, contributed libraries. @@ -127,19 +157,68 @@ else export MAKE="make" fi +mkdir obj-shared-no-gui +cd obj-shared-no-gui +../configure --prefix=%{_prefix} \ + --disable-gui \ +%if %{unicode} + --enable-unicode +%else + --disable-unicode +%endif +$MAKE +cd .. + mkdir obj-shared cd obj-shared -../configure --prefix=%{pref} \ +../configure --prefix=%{_prefix} \ %if ! %{gtk2} - --with-gtk1 \ + --with-gtk=1 \ %else - --with-gtk2 \ + --with-gtk=2 \ %endif %if %{unicode} - --enable-unicode \ + --enable-unicode \ +%else + --disable-unicode \ + --with-odbc \ %endif - --disable-optimise \ - --with-opengl + --with-opengl +$MAKE + +cd contrib/src +$MAKE +cd ../../.. + +mkdir obj-static-no-gui +cd obj-static-no-gui +../configure --prefix=%{_prefix} \ + --disable-gui \ + --disable-shared \ +%if %{unicode} + --enable-unicode +%else + --disable-unicode +%endif +$MAKE +cd .. + +mkdir obj-static +cd obj-static +../configure --prefix=%{_prefix} \ +%if ! %{gtk2} + --with-gtk=1 \ +%else + --with-gtk=2 \ +%endif + --disable-shared \ +%if %{unicode} + --enable-unicode \ +%else + --disable-unicode \ + --with-odbc \ +%endif + --with-opengl $MAKE cd contrib/src @@ -148,7 +227,10 @@ cd ../../.. %install rm -rf $RPM_BUILD_ROOT -(cd obj-shared; make prefix=$RPM_BUILD_ROOT/usr install) +(cd obj-static-no-gui; make DESTDIR=$RPM_BUILD_ROOT install) +(cd obj-static; make DESTDIR=$RPM_BUILD_ROOT install) +(cd obj-shared-no-gui; make DESTDIR=$RPM_BUILD_ROOT install) +(cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT install) # --- wxBase headers list begins here --- cat <wxbase-headers.files @@ -168,7 +250,6 @@ wx/confbase.h wx/config.h wx/containr.h wx/datetime.h -wx/datetime.inl wx/datstrm.h wx/dde.h wx/debug.h @@ -272,6 +353,14 @@ wx/xtixml.h wx/db.h wx/dbkeyg.h wx/dbtable.h +wx/unix/apptbase.h +wx/unix/apptrait.h +wx/unix/execute.h +wx/unix/gsockunx.h +wx/unix/mimetype.h +wx/unix/pipe.h +wx/unix/stackwalk.h +wx/unix/stdpaths.h EOF # --- wxBase headers list ends here --- cat <wxbase-headers.paths @@ -395,6 +484,14 @@ cat <wxbase-headers.paths %{_includedir}/wx-%{ver2}/wx/db.h %{_includedir}/wx-%{ver2}/wx/dbkeyg.h %{_includedir}/wx-%{ver2}/wx/dbtable.h +%{_includedir}/wx-%{ver2}/wx/unix/apptbase.h +%{_includedir}/wx-%{ver2}/wx/unix/apptrait.h +%{_includedir}/wx-%{ver2}/wx/unix/execute.h +%{_includedir}/wx-%{ver2}/wx/unix/gsockunx.h +%{_includedir}/wx-%{ver2}/wx/unix/mimetype.h +%{_includedir}/wx-%{ver2}/wx/unix/pipe.h +%{_includedir}/wx-%{ver2}/wx/unix/stackwalk.h +%{_includedir}/wx-%{ver2}/wx/unix/stdpaths.h EOF # --- wxBase headers list ends here --- @@ -411,8 +508,8 @@ cp -f -r $RPM_BUILD_ROOT/_save_dir/* $RPM_BUILD_ROOT%{_includedir} rm -rf $RPM_BUILD_ROOT/_save_dir # contrib stuff: -(cd obj-shared/contrib/src; make prefix=$RPM_BUILD_ROOT/usr install) -(cd obj-shared/utils/wxrc; make prefix=$RPM_BUILD_ROOT/usr install) +(cd obj-shared/contrib/src; make DESTDIR=$RPM_BUILD_ROOT install) +(cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT install) %clean rm -rf $RPM_BUILD_ROOT @@ -425,7 +522,9 @@ rm -rf $RPM_BUILD_ROOT %post devel # link wx-config when you install RPM. -ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config +%if %{unicode} + ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config +%endif # link wx-config with explicit name. ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink} /sbin/ldconfig @@ -434,13 +533,9 @@ ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink} /sbin/ldconfig %preun devel -if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then - SUM1=`md5sum %{_libdir}/wx/config/%{wxconfig} | cut -c 0-32` - SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32` - if test "x$SUM1" = "x$SUM2" ; then - rm -f %{_bindir}/wx-config - fi -fi +%if %{unicode} + rm -f %{_bindir}/wx-config +%endif rm -f %{_bindir}/%{wxconfiglink} %post -n %{wxbasename} @@ -481,101 +576,122 @@ rm -f %{_bindir}/%{wxbaseconfiglink} %files %defattr(-,root,root) %doc COPYING.LIB *.txt -%{_libdir}/libwx_%{portname}*_adv-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_core-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_core-%{ver2}.so.* %if !%{unicode} - %{_libdir}/libwx_%{portname}*_dbgrid-%{ver2}.so.* + %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so.* %endif -%{_libdir}/libwx_%{portname}*_html-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_media-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_qa-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_xrc-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_html-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_media-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.* +%files -n wx-i18n +%defattr(-,root,root) +%{_datadir}/locale/*/*/* %files devel -f core-headers.files %defattr(-,root,root) -%{_libdir}/libwx_%{portname}*_adv-%{ver2}.so -%{_libdir}/libwx_%{portname}*_core-%{ver2}.so +# shared libs +%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so +%{_libdir}/libwx_%{buildname}_core-%{ver2}.so %if !%{unicode} - %{_libdir}/libwx_%{portname}*_dbgrid-%{ver2}.so + %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so %endif -%{_libdir}/libwx_%{portname}*_gl-%{ver2}.so -%{_libdir}/libwx_%{portname}*_html-%{ver2}.so -%{_libdir}/libwx_%{portname}*_media-%{ver2}.so -%{_libdir}/libwx_%{portname}*_qa-%{ver2}.so -%{_libdir}/libwx_%{portname}*_xrc-%{ver2}.so +%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so +%{_libdir}/libwx_%{buildname}_html-%{ver2}.so +%{_libdir}/libwx_%{buildname}_media-%{ver2}.so +%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so +%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so +# static libs +%{_libdir}/libwx_%{buildname}_adv-%{ver2}.a +%{_libdir}/libwx_%{buildname}_core-%{ver2}.a +%if !%{unicode} + %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.a +%endif +%{_libdir}/libwx_%{buildname}_gl-%{ver2}.a +%{_libdir}/libwx_%{buildname}_html-%{ver2}.a +%{_libdir}/libwx_%{buildname}_media-%{ver2}.a +%{_libdir}/libwx_%{buildname}_qa-%{ver2}.a +%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a %dir %{_libdir}/wx %{_libdir}/wx/config/%{wxconfig} %{_libdir}/wx/include/%{wxconfig}/wx/setup.h +%{_libdir}/wx/config/%{wxconfigstatic} +%{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h %{_bindir}/wxrc* %files -n %{wxbasename} %defattr(-,root,root) %{_libdir}/libwx_base*-%{ver2}.so.* -#%{_datadir}/locale/*/*/* -# %if %{unicode} -# %{_libdir}/libwxregexu-%{ver2}.a -#%endif %files -n %{wxbasename}-devel -f wxbase-headers.paths %defattr (-,root,root) %dir %{_includedir}/wx-%{ver2} %{_libdir}/libwx_base*-%{ver2}.so -#%dir %{_libdir}/wx -#%{_libdir}/wx/config/%{wxbaseconfig} -#%{_libdir}/wx/include/%{wxbaseconfig}/wx/setup.h +%{_libdir}/libwx_base*-%{ver2}.a +%if %{unicode} + %{_libdir}/libwxregexu-%{ver2}.a +%endif +%dir %{_libdir}/wx +%{_libdir}/wx/config/%{wxbaseconfig} +%{_libdir}/wx/include/%{wxbaseconfig}/wx/setup.h +%{_libdir}/wx/config/%{wxbaseconfigstatic} +%{_libdir}/wx/include/%{wxbaseconfigstatic}/wx/setup.h %{_datadir}/aclocal/*.m4 %files gl %defattr(-,root,root) -%{_libdir}/libwx_%{portname}*_gl-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.* %files contrib %defattr(-,root,root) -%{_libdir}/libwx_%{portname}*_animate-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_deprecated-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_fl-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_gizmos-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_mmedia-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_ogl-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_plot-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_stc-%{ver2}.so.* -%{_libdir}/libwx_%{portname}*_svg-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_animate-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_fl-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_plot-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.* +%{_libdir}/libwx_%{buildname}_svg-%{ver2}.so.* %files contrib-devel %defattr(-,root,root) %dir %{_includedir}/wx-%{ver2}/wx/animate %{_includedir}/wx-%{ver2}/wx/animate/* -%{_libdir}/libwx_%{portname}*_animate-%{ver2}.so +%{_libdir}/libwx_%{buildname}_animate-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/deprecated %{_includedir}/wx-%{ver2}/wx/deprecated/* -%{_libdir}/libwx_%{portname}*_deprecated-%{ver2}.so +%{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/fl %{_includedir}/wx-%{ver2}/wx/fl/* -%{_libdir}/libwx_%{portname}*_fl-%{ver2}.so +%{_libdir}/libwx_%{buildname}_fl-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/gizmos %{_includedir}/wx-%{ver2}/wx/gizmos/* -%{_libdir}/libwx_%{portname}*_gizmos-%{ver2}.so +%{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so +%{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/mmedia %{_includedir}/wx-%{ver2}/wx/mmedia/* -%{_libdir}/libwx_%{portname}*_mmedia-%{ver2}.so +%{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/ogl %{_includedir}/wx-%{ver2}/wx/ogl/* -%{_libdir}/libwx_%{portname}*_ogl-%{ver2}.so +%{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/plot %{_includedir}/wx-%{ver2}/wx/plot/* -%{_libdir}/libwx_%{portname}*_plot-%{ver2}.so +%{_libdir}/libwx_%{buildname}_plot-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/stc %{_includedir}/wx-%{ver2}/wx/stc/* -%{_libdir}/libwx_%{portname}*_stc-%{ver2}.so +%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so %dir %{_includedir}/wx-%{ver2}/wx/svg %{_includedir}/wx-%{ver2}/wx/svg/* -%{_libdir}/libwx_%{portname}*_svg-%{ver2}.so +%{_libdir}/libwx_%{buildname}_svg-%{ver2}.so