File fltk-flu.spec of Package fltk-flu
#
# spec file for package fltk-flu
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 by open-slx GmbH <Sascha.Manns@open-slx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: fltk-flu
BuildRequires: SDL-devel fltk-devel gcc-c++ make
Requires: fltk
Version: 2.14
Release: 1
License: LGPL-2.1+
Group: Development/Libraries/Other
Summary: FLTK Utility Widgets
Url: http://www.osc.edu/~jbryan/FLU
Source0: FLU_%{version}.tar.bz2
# FIX-PATCH-OPENSUSE 10/02/2011 saigkill@opensuse.org fix for modern Compilers
# imported from: http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11-toolkits/flu/#dirlist
Patch0: FLU_Flu_Tree_Browser_h.patch
# FIX-PATCH-OPENSUSE 10/02/2011 saigkill@opensuse.org fix for modern compilers
Patch1: src_Flu_File_Chooser_cpp.patch
# FIX-PATCH-OPENSUSE 10/02/2011 saigkill@opensuse.org fix for modern compilers
Patch2: src_Flu_Tree_Browser_cpp.patch
# PATCH-FIX-UPSTREAM fltk-flu-2.14-glib210.patch dead_upstream reddwarf@opensuse.org-- Fix compilation with glibc >= 2.10
Patch3: %{name}-2.14-glib210.patch
# FIX-PATCH-OPENSUSE 21/02/2011 pth@suse.de add option to disable build of static library
Patch4: fltk-flu-disable_static.patch
# FIX-PATCH-OPENSUSE 21/02/2011 pth@suse.de don't hide build commands
Patch5: FLU-no_silent_compile.patch
# FIX-PATCH-OPENSUSE 21/02/2011 pth@suse.de Add soname for both libs
Patch6: FLU-soname.patch
# FIX-PATCH-OPENSUSE - fix-binary-install.patch - nmarques@opensuse.org - hacks to configure and Makefile to insert DESTDIR. Apparently it works, review from someone experient would be awesome.
Patch99: openSUSE-DESTDIR-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is just a small library of FLTK widgets that I have been working
on for another application (VolSuite, if you're interested). They are
available under the same LGPL-compatible license as FLTK. They are
designed to work with FLTK 1.1.x and seem to work pretty well on most
systems, although my testing has been far from exhaustive. There is a
configure/Makefile included which should compile on most *NIX/OSX
distributions, as well as Cygwin and MinGW. I wrote the configure
script by hand so don't blame autoconf if it doesn't work, blame me.
There are also project files for Visual Studio 6 and Visual Studio
.NET, as well as a directory of many example files to exersize most of
the widgets. I don't work on the widgets much anymore, but if you find
bugs, have feature suggestions, or just a general question, feel free
to contact me directly (jbryan at osc dot edu) or via the FLTK mailing
lists (if it is a question whose answer everyone could benefit from).
%package libflu2
Summary: Library files for FLU
Group: Development/Libraries/Other
%description libflu2
This is just a small library of FLTK widgets that I have been working
on for another application (VolSuite, if you're interested). They are
available under the same LGPL-compatible license as FLTK. They are
designed to work with FLTK 1.1.x and seem to work pretty well on most
systems, although my testing has been far from exhaustive. There is a
configure/Makefile included which should compile on most *NIX/OSX
distributions, as well as Cygwin and MinGW. I wrote the configure
script by hand so don't blame autoconf if it doesn't work, blame me.
There are also project files for Visual Studio 6 and Visual Studio
.NET, as well as a directory of many example files to exersize most
of the widgets. I don't work on the widgets much anymore, but if you
find bugs, have feature suggestions, or just a general question, feel free
to contact me directly (jbryan at osc dot edu) or via the FLTK mailing
lists (if it is a question whose answer everyone could benefit from).
This package provides the runtime libraries for %{name}.
%package devel
Summary: Development files for FLTK Utility Widgets
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: libflu2 = %{version}
%description devel
This is just a small library of FLTK widgets that I have been working
on for another application (VolSuite, if you're interested). They are
available under the same LGPL-compatible license as FLTK. They are
designed to work with FLTK 1.1.x and seem to work pretty well on most
systems, although my testing has been far from exhaustive. There is a
configure/Makefile included which should compile on most *NIX/OSX
distributions, as well as Cygwin and MinGW. I wrote the configure
script by hand so don't blame autoconf if it doesn't work, blame me.
There are also project files for Visual Studio 6 and Visual Studio
.NET, as well as a directory of many example files to exersize most of
the widgets. I don't work on the widgets much anymore, but if you find
bugs, have feature suggestions, or just a general question, feel free
to contact me directly (jbryan at osc dot edu) or via the FLTK mailing
lists (if it is a question whose answer everyone could benefit from).
This package provides the development files for %{name}.
%prep
%setup -q -n FLU_2.14
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3
%patch4
%patch5
%patch6
# This patch should make good usage of DESTDIR
%patch99
%build
export CXXFLAGS="%{optflags}"
./configure \
--prefix=/usr \
--libdir=%{_libdir} \
--fltk=%{_lib} \
--enable-shared \
--enable-gl \
--disable-static
%__make
%install
make DESTDIR=%{buildroot} install
%clean
%__rm -rf %{buildroot}
%post libflu2 -p /sbin/ldconfig
%postun libflu2 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc CHANGES_2.14 header.txt index.html LICENSE README
%files libflu2
%defattr(-,root,root)
%{_libdir}/libflu.so.*
%{_libdir}/libflu_gl.so.*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/FLU
%{_includedir}/FLU/*
%{_libdir}/libflu.so
%{_libdir}/libflu_gl.so
%{_bindir}/flu-config
%changelog