%define pkgver .x-r6525 Name: libfltk2 Version: 2.0 Release: 1mamba Summary: A cross-platform C++ GUI toolkit Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.fltk.org/index.php Source: ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/snapshots/fltk-%{version}%{?pkgver}.tar.bz2 Patch0: fltk-2.0.x-r6525-install.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: libXi-devel BuildRequires: libXinerama-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libGL-devel BuildRequires: ImageMagick %description FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation. %package devel Group: Development/Libraries Summary: Devel package for libfltk Requires: libfltk2 == %{version}-%{release} Provides: libfltk2.so Provides: libfltk2_images.so %description devel FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation. This package contains static libraries and header files need for development. %prep %setup -q -n fltk-%{version}%{?pkgver} %patch0 -p1 %build %configure \ --enable-shared \ --enable-threads \ --enable-xdbe \ --enable-xft \ --enable-gl %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall # install-desktop #install -d %{buildroot}%{_datadir}/applications %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_libdir}/libfltk2.so.* %{_libdir}/libfltk2_glut.so.* %{_libdir}/libfltk2_gl.so.* %{_libdir}/libfltk2_images.so.* #%{_mandir}/man1/* #%{_mandir}/cat1/* %files devel %defattr(-,root,root) %{_bindir}/fltk2-config %{_bindir}/fluid2 %{_libdir}/libfltk2.a %{_libdir}/libfltk2.so %{_libdir}/libfltk2_gl.a %{_libdir}/libfltk2_gl.so %{_libdir}/libfltk2_glut.a %{_libdir}/libfltk2_glut.so %{_libdir}/libfltk2_images.a %{_libdir}/libfltk2_images.so %{_includedir}/fltk/compat/FL/* %{_includedir}/fltk/mac.r %{_includedir}/fltk/*.h #%{_datadir}/applications/fluid2.desktop #%{_datadir}/icons/hicolor/*/apps/fluid2.png #%{_datadir}/mimelnk/application/x-fluid2.desktop #%{_mandir}/man3/* #%{_mandir}/cat3/* %changelog * Mon Dec 08 2008 Silvan Calarco 2.0-1mamba - update to 2.0 * Sun Nov 02 2008 Silvan Calarco 1.1.9-1mamba - automatic update by autodist * Fri Oct 12 2007 Silvan Calarco 1.1.7-2mamba - rebuild with GL support (requires libGL.so pointing to Mesa libGL, not nvidia) - fluid moved to devel package and added desktop menu entry - added games subpackage * Mon Apr 03 2006 Stefano Cotta Ramusino 1.1.7-1qilnx - update to version 1.1.7 by autospec * Sun Feb 20 2005 Silvan Calarco 1.1.6-1qilnx - update to version 1.1.6 by autospec - added missing symlink %{_includedir}/Fl * Mon Sep 27 2004 Silvan Calarco 1.1.5rc3-1qilnx - first build