Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1575725
 поиск   регистрация   авторизация 
 
Группа :: Система/Библиотеки
Пакет: wxGTK2u

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define wxbranch 2.6
%define ucode u

#def_disable unicode

%def_enable unicode

%if_disabled unicode
%define ucode %{-E}
%endif

Name: wxGTK2%ucode
Version: %wxbranch.1
Release: alt0.M24.1

Summary: The GTK+ port of the wxWidgets library
License: wxWidgets License
Group: System/Libraries
Url: http://www.wxwidgets.org/
Packager: Andrey Astafiev <andrei at altlinux.ru>

Source: http://belnet.dl.sourceforge.net/sourceforge/wxwidgets/wxGTK-%version.tar.bz2
%if "%wxbranch" < "2.5"
Patch1: wxGTK-2.4.1-alt-fonts.patch
Patch2: wxGTK-2.4.2-alt-contribs_for_compile.patch
%else
Patch1: wxGTK-2.5.3-alt-contribs_for_compile.patch
%endif

Requires: wxGTK-common
BuildPreReq:  gcc-c++

# Automatically added by buildreq on Mon Jun 13 2005

BuildRequires: cppunit-devel esound-devel fontconfig freetype2 gcc-c++ glib2-devel gtk+-devel libatk-devel libaudiofile-devel libexpat-devel libgtk+2-devel libjpeg-devel libpango-devel libpng-devel libstdc++-devel libtiff-devel pkgconfig XFree86-devel zlib-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.

This is a GTK+ port.

%package devel
Summary: Development files for wxGTK library
Group: Development/C++
Requires: %name = %version
Conflicts: wxGTK-devel
Conflicts: wxGTKu-devel
%if_enabled unicode
Conflicts: wxGTK2-devel
%else
Conflicts: wxGTK2u-devel
%endif

%description devel
Header files for wxGTK, the GTK+ port of the wxWidgets library.

%package examples
Summary: wxGTK example programs
Group: Development/C++
Requires: %name-devel = %version
Conflicts: wxGTK-examples
Conflicts: wxGTKu-examples
%if_enabled unicode
Conflicts: wxGTK2-examples
%else
Conflicts: wxGTK2u-examples
%endif

%description examples
wxGTK example programs.

%package contrib-stc
Summary: wxWidgets styled text control library
Group: System/Libraries      
Requires: %name = %version
Obsoletes: wxGTK-contrib-stc

%description contrib-stc
wxWidgets styled text control library.

%package contrib-stc-devel
Summary: Development files for wxWidgets styled text control library
Group: Development/C++
Requires: %name-contrib-stc = %version
Conflicts: wxGTK-contrib-stc-devel
Conflicts: wxGTKu-contrib-stc-devel
%if_enabled unicode
Conflicts: wxGTK2-contrib-stc-devel
%else
Conflicts: wxGTK2u-contrib-stc-devel
%endif

%description contrib-stc-devel
Header files for wxWidgets styled text control library.

%package contrib-gizmos
Summary: wxWidgets cell and canvas layout objects
Group: System/Libraries      
Requires: %name = %version

%description contrib-gizmos
wxWidgets cell and canvas layout objects.

%package contrib-gizmos-devel
Summary: Development files for wxWidgets cell and canvas layout objects
Group: Development/C++
Requires: %name-contrib-gizmos = %version
%if_enabled unicode
Conflicts: wxGTK2-contrib-gizmos-devel
%else
Conflicts: wxGTK2u-contrib-gizmos-devel
%endif

%description contrib-gizmos-devel
Header files for wxWidgets cell and canvas layout objects.

%package contrib-ogl
Summary: wxWidgets' object graphics library
Group: System/Libraries
Requires: %name = %version

%description contrib-ogl
wxWidgets' Object Graphics Library (OGL) is a C++ library supporting the
creation and manipulation of simple and complex graphic images on a canvas.

%package contrib-ogl-devel
Summary: Development files for wxWidgets' object graphics library
Group: Development/C++
Requires: %name-contrib-ogl = %version
%if_enabled unicode
Conflicts: wxGTK2-contrib-ogl-devel
%else
Conflicts: wxGTK2u-contrib-ogl-devel
%endif

%description contrib-ogl-devel
Header files for wxWidgets' object graphics library.

%prep
%setup -q -n wxGTK-%version
%patch1 -p1
%if "%wxbranch" < "2.5"
%patch2 -p1
%endif
%__subst 's/wxstd/wxstd2%ucode/' src/common/intl.cpp
%__subst 's/wxstd/wxstd2%ucode/' locale/Makefile
%__subst 's/wxstd/wxstd2%ucode/' Makefile.in

%build
%configure --without-odbc \
  --without-debug_flag \
  --without-debug_info \
  --without-opengl \
  --with-gtk \
  --enable-plugins \
  --with-xresources \
  --enable-optimise \
  --enable-shared \
  --enable-unicode%{?_disable_unicode:=no} \
  --enable-gtk2=yes \
  --enable-soname

%make_build
cd contrib/src
%make_build

%install
%makeinstall
%__mkdir -p %buildroot%_datadir/wx/examples/src
%__cp -a demos samples %buildroot%_datadir/wx/examples
%__ln_s -f ../lib/wx/config/`ls %buildroot%_libdir/wx/config` %buildroot%_bindir/wx-config
%if "%wxbranch" < "2.5"
%__cp -a src/*.env %buildroot%_datadir/wx/examples/src
%__cp -a version-script %buildroot%_datadir/wx/examples
%__subst 's/${top_builddir}/\/usr/' %buildroot%_datadir/wx/examples/src/*
%__subst 's/$(top_builddir)\/lib/\/usr\/lib/' %buildroot%_datadir/wx/examples/src/makeprog.env
%endif

%find_lang wxstd2%ucode

cd contrib/src
%makeinstall

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post contrib-stc -p %post_ldconfig
%postun contrib-stc -p %postun_ldconfig

%post contrib-gizmos -p %post_ldconfig
%postun contrib-gizmos -p %postun_ldconfig

%post contrib-ogl -p %post_ldconfig
%postun contrib-ogl -p %postun_ldconfig

%files -f wxstd2%ucode.lang
%doc CHANGES.txt COPYING.LIB INSTALL.txt LICENCE.txt README.txt TODO.txt
%_libdir/libwx_base%{ucode}-%wxbranch.so.*
%_libdir/libwx_base%{ucode}_net-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_adv-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_core-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_html-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_media-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_xrc-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_qa-%wxbranch.so.*
%if "%wxbranch" >= "2.5"
%_libdir/libwx_base%{ucode}_xml-%wxbranch.so.*
%endif

%files devel
%_bindir/*
%_libdir/libwx_base%{ucode}-%wxbranch.so
%_libdir/libwx_base%{ucode}_net-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_adv-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_core-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_html-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_media-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_xrc-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_qa-%wxbranch.so
%if_enabled unicode
%_libdir/wx/config/gtk2-unicode-release-%wxbranch
%dir %_libdir/wx/include/gtk2-unicode-release-%wxbranch
%_libdir/wx/include/gtk2-unicode-release-%wxbranch/wx
%else
%_libdir/wx/config/gtk2-ansi-release-%wxbranch
%dir %_libdir/wx/include/gtk2-ansi-release-%wxbranch
%_libdir/wx/include/gtk2-ansi-release-%wxbranch/wx
%endif
%_datadir/aclocal/*.m4
%dir %_includedir/wx-%wxbranch
%dir %_includedir/wx-%wxbranch/wx
%_includedir/wx-%wxbranch/wx/generic
%_includedir/wx-%wxbranch/wx/gtk
%_includedir/wx-%wxbranch/wx/html
%_includedir/wx-%wxbranch/wx/protocol
%_includedir/wx-%wxbranch/wx/unix
%_includedir/wx-%wxbranch/wx/xrc
%_includedir/wx-%wxbranch/wx/*.h
%_includedir/wx-%wxbranch/wx/*.cpp
%if "%wxbranch" >= "2.5"
%_libdir/libwx_base%{ucode}_xml-%wxbranch.so
%_includedir/wx-%wxbranch/wx/xml
%endif

%files contrib-stc
%_libdir/libwx_gtk2%{ucode}_stc-%wxbranch.so.*

%files contrib-stc-devel
%_libdir/libwx_gtk2%{ucode}_stc-%wxbranch.so
%_includedir/wx-%wxbranch/wx/stc

%files contrib-gizmos
%_libdir/libwx_gtk2%{ucode}_gizmos-%wxbranch.so.*
%_libdir/libwx_gtk2%{ucode}_gizmos_xrc-%wxbranch.so.*

%files contrib-gizmos-devel
%_libdir/libwx_gtk2%{ucode}_gizmos-%wxbranch.so
%_libdir/libwx_gtk2%{ucode}_gizmos_xrc-%wxbranch.so
%_includedir/wx-%wxbranch/wx/gizmos

%files contrib-ogl
%_libdir/libwx_gtk2%{ucode}_ogl-%wxbranch.so.*

%files contrib-ogl-devel
%_libdir/libwx_gtk2%{ucode}_ogl-%wxbranch.so
%_includedir/wx-%wxbranch/wx/ogl

%files examples
%_datadir/wx/examples

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005