2000-04-26 02:17:00 +04:00
|
|
|
#
|
2003-05-26 18:31:59 +04:00
|
|
|
# "$Id: fltk.spec,v 1.1.2.9.2.23 2003/05/26 14:31:59 easysw Exp $"
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
|
|
|
# RPM spec file for FLTK.
|
|
|
|
#
|
2002-01-01 18:11:33 +03:00
|
|
|
# Copyright 1998-2002 by Bill Spitzak and others.
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
# USA.
|
|
|
|
#
|
2000-06-07 16:11:53 +04:00
|
|
|
# Please report all bugs and problems to "fltk-bugs@fltk.org".
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
|
|
|
|
2003-05-26 18:31:59 +04:00
|
|
|
%define version 1.1.4rc1
|
2001-08-02 22:08:36 +04:00
|
|
|
%define release 0
|
2000-04-26 02:17:00 +04:00
|
|
|
%define prefix /usr
|
|
|
|
|
|
|
|
Summary: Fast Light Tool Kit (FLTK)
|
|
|
|
Name: fltk
|
|
|
|
Version: %{version}
|
2000-05-15 23:20:03 +04:00
|
|
|
Release: %{release}
|
2000-04-26 02:17:00 +04:00
|
|
|
Copyright: LGPL
|
2000-06-05 00:54:56 +04:00
|
|
|
Group: System Environment/Libraries
|
2000-04-26 02:17:00 +04:00
|
|
|
Source: ftp://ftp.fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz
|
|
|
|
URL: http://www.fltk.org
|
|
|
|
Packager: Michael Sweet <mike@easysw.com>
|
2000-06-25 00:43:33 +04:00
|
|
|
# use BuildRoot so as not to disturb the version already installed
|
|
|
|
BuildRoot: /var/tmp/fltk-%{PACKAGE_VERSION}
|
2000-06-25 00:30:24 +04:00
|
|
|
|
2001-10-02 22:42:59 +04:00
|
|
|
%description
|
|
|
|
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
|
2002-10-05 01:01:36 +04:00
|
|
|
cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
|
|
|
|
Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern
|
|
|
|
GUI functionality without the bloat and supports 3D graphics via
|
|
|
|
OpenGL(r) and its built-in GLUT emulation.
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: FLTK - development environment
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
2000-06-05 00:54:56 +04:00
|
|
|
%description devel
|
2001-10-02 22:42:59 +04:00
|
|
|
Install fltk-devel if you need to develop FLTK applications.
|
|
|
|
You'll need to install the fltk package if you plan to run
|
|
|
|
dynamically linked applications.
|
2000-06-05 00:54:56 +04:00
|
|
|
|
2000-04-26 02:17:00 +04:00
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2002-10-05 01:01:36 +04:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --enable-shared --enable-xft --enable-xdbe
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
# If we got this far, all prerequisite libraries must be here.
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
# these lines just make sure the directory structure in the
|
|
|
|
# RPM_BUILD_ROOT exists
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT
|
|
|
|
|
2002-07-12 06:06:38 +04:00
|
|
|
make -e prefix=$RPM_BUILD_ROOT/%{prefix} mandir=$RPM_BUILD_ROOT/%{_mandir} install
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/lib
|
2000-06-05 00:54:56 +04:00
|
|
|
%{prefix}/lib/libfltk*.so.*
|
2000-04-26 02:17:00 +04:00
|
|
|
|
2000-06-05 00:54:56 +04:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/bin
|
2001-09-30 01:17:17 +04:00
|
|
|
%{prefix}/bin/*
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/include/FL
|
2001-09-30 01:17:17 +04:00
|
|
|
%{prefix}/include/FL/*
|
2001-10-29 17:54:52 +03:00
|
|
|
%{prefix}/include/Fl
|
|
|
|
%dir %{prefix}/lib
|
2001-05-07 18:51:10 +04:00
|
|
|
%{prefix}/lib/libfltk*.so
|
|
|
|
%{prefix}/lib/libfltk*.a
|
2002-07-12 06:06:38 +04:00
|
|
|
%dir %{_mandir}
|
|
|
|
%{_mandir}/*
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/share/doc/fltk
|
2000-04-26 02:17:00 +04:00
|
|
|
%{prefix}/share/doc/fltk/*
|
|
|
|
|
|
|
|
#
|
2003-05-26 18:31:59 +04:00
|
|
|
# End of "$Id: fltk.spec,v 1.1.2.9.2.23 2003/05/26 14:31:59 easysw Exp $".
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|