WxGTK.spec

Aus Fedorawiki.de

Wechseln zu: Navigation, Suche
Alt.png Dieser Artikel ist veraltet und Bedarf einer Aktualisierung.

Beschreibung

Name: wxGTK
Version: 2.6.1
Beschreibung: The GTK+ 2 port of the wxWidgets library
Homepage: http://www.wxwidgets.org/
Screenshot: http://www.wxwidgets.org/screensh.htm
Download: http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.6.1.tar.bz2
Besonderheiten: Diese Version ersetzt das Paket aus Fedora Extras.

SPEC

%define ver  2.6.1
%define ver2 2.6
%define rel  1
%define gtkver 2
%define buildname gtk2u
%define name wx-gtk2-unicode
%define wxconfigstatic gtk2-unicode-release-%{ver2}

Summary: The GTK+ %{gtkver} port of the wxWidgets library
Name: %{name}
Version: %{ver}
Release: %{rel}
License: wxWindows Licence
Group: X11/Libraries
Source: wxGTK-%{ver}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root

BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel

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, 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
Group: X11/Libraries
Requires: %{name} = %{ver}
Provides: wxGTK-devel

%description devel
The GTK+ %{gtkver} port of the wxWidgets library, header files.

%package gl
Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on.
Group: X11/Libraries
Requires: %{name} = %{ver}
Provides: wxGTK-gl

%description gl
OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.

%prep
%setup -q -n wxGTK-%{ver}

%build
%configure --enable-unicode --with-opengl
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/usr/bin/wx-config $RPM_BUILD_ROOT/usr/src $RPM_BUILD_ROOT/usr/lib/debug

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%post -n wx-i18n
/sbin/ldconfig

%postun -n wx-i18n
/sbin/ldconfig

%post gl
/sbin/ldconfig

%postun gl
/sbin/ldconfig

%post devel
/sbin/ldconfig
ln -sf %{_libdir}/wx/config/gtk2-unicode-release-%{ver2} %{_bindir}/wx-config 

%postun devel
/sbin/ldconfig

%files
%defattr(-,root,root)
%dir %{_libdir}/wx/
%dir %{_libdir}/wx/config/
%dir %{_libdir}/wx/include/
%{_bindir}/wxrc
%{_bindir}/wxrc-%{ver2}
%{_datadir}/aclocal/wxwin.m4
%{_libdir}/libwx_baseu-%{ver2}.so*
%{_libdir}/libwx_baseu_net-%{ver2}.so*
%{_libdir}/libwx_baseu_xml-%{ver2}.so*
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so*
%{_libdir}/libwx_%{buildname}_core-%{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*
%{_libdir}/wx/config/%{wxconfigstatic}
%{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h

%files -n wx-i18n
%defattr(-,root,root)
%{_datadir}/locale/*/*/*

%files gl
%defattr(-,root,root)
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so*

%files devel
%defattr(-,root,root)
%dir %{_includedir}/wx-%{ver2}/
%dir %{_includedir}/wx-%{ver2}/wx/
%{_includedir}/wx-%{ver2}/*