2000-04-26 02:17:00 +04:00
|
|
|
#
|
|
|
|
# RPM spec file for FLTK.
|
|
|
|
#
|
2023-12-05 19:01:51 +03:00
|
|
|
# Copyright 1998-2023 by Bill Spitzak and others.
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
2011-07-19 08:49:30 +04:00
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/COPYING.php
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# Please see the following page on how to report bugs and issues:
|
2005-04-16 04:13:17 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/bugs.php
|
2000-04-26 02:17:00 +04:00
|
|
|
#
|
|
|
|
|
2023-12-05 19:01:51 +03:00
|
|
|
%define version @FLTK_VERSION@
|
2007-02-06 22:44:10 +03:00
|
|
|
%define release 1
|
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}
|
2006-01-15 06:16:09 +03:00
|
|
|
License: LGPL
|
2000-06-05 00:54:56 +04:00
|
|
|
Group: System Environment/Libraries
|
2023-12-05 19:01:51 +03:00
|
|
|
Source: https://www.fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz
|
2020-07-01 19:03:10 +03:00
|
|
|
URL: https://www.fltk.org/
|
2006-01-15 21:02:44 +03:00
|
|
|
Packager: FLTK Developer <fltk@fltk.org>
|
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
|
2023-12-05 19:01:51 +03:00
|
|
|
The Fast Light Tool Kit ("FLTK") is a cross-platform C++ GUI
|
|
|
|
toolkit for UNIX(r)/Linux(r) (X11), Microsoft(r) Windows(r),
|
|
|
|
and macOS(r). FLTK provides modern GUI functionality without
|
|
|
|
bloat and supports 3D graphics via OpenGL(r) and its built-in
|
|
|
|
GLUT emulation.
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
%package devel
|
2005-04-16 04:01:49 +04:00
|
|
|
Summary: FLTK Development Environment
|
2000-04-26 02:17:00 +04:00
|
|
|
Group: Development/Libraries
|
|
|
|
|
2000-06-05 00:54:56 +04:00
|
|
|
%description devel
|
2020-07-01 19:03:10 +03:00
|
|
|
Install fltk-devel if you need to develop FLTK applications.
|
2001-10-02 22:42:59 +04:00
|
|
|
You'll need to install the fltk package if you plan to run
|
|
|
|
dynamically linked applications.
|
2000-06-05 00:54:56 +04:00
|
|
|
|
2006-01-15 21:02:44 +03:00
|
|
|
%package games
|
|
|
|
Summary: FLTK Games
|
|
|
|
Group: Games
|
|
|
|
|
|
|
|
%description games
|
2007-02-06 22:44:10 +03:00
|
|
|
Install fltk-games to play Block Attack!, Checkers, or Sudoku on your computer.
|
2006-01-15 21:02:44 +03:00
|
|
|
|
2000-04-26 02:17:00 +04:00
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2024-04-11 15:15:38 +03:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --enable-largefile --enable-shared --enable-threads --enable-xft --enable-xinerama
|
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
|
|
|
|
|
2006-01-15 18:15:34 +03:00
|
|
|
make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
|
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)
|
2006-01-15 21:36:16 +03:00
|
|
|
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/bin
|
2006-01-15 21:02:44 +03:00
|
|
|
%{prefix}/bin/fltk-config
|
|
|
|
%{prefix}/bin/fluid
|
2006-01-15 21:36:16 +03:00
|
|
|
|
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
|
2006-01-15 21:36:16 +03:00
|
|
|
|
2001-10-29 17:54:52 +03:00
|
|
|
%dir %{prefix}/lib
|
2001-05-07 18:51:10 +04:00
|
|
|
%{prefix}/lib/libfltk*.so
|
|
|
|
%{prefix}/lib/libfltk*.a
|
2006-01-15 21:36:16 +03:00
|
|
|
|
2002-07-12 06:06:38 +04:00
|
|
|
%dir %{_mandir}
|
2006-01-15 21:36:16 +03:00
|
|
|
%{_mandir}/cat1/*
|
|
|
|
%{_mandir}/cat3/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
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/*
|
2006-01-15 21:36:16 +03:00
|
|
|
|
2008-02-25 17:43:34 +03:00
|
|
|
%dir %{prefix}/share/applications
|
|
|
|
%{prefix}/share/applications/*
|
2006-01-15 21:36:16 +03:00
|
|
|
|
|
|
|
%dir %{prefix}/share/icons
|
2006-01-15 21:02:44 +03:00
|
|
|
%{prefix}/share/icons/hicolor/*/apps/fluid.png
|
2006-01-15 21:36:16 +03:00
|
|
|
|
|
|
|
%dir %{prefix}/share/mimelnk
|
2006-01-15 06:16:09 +03:00
|
|
|
%{prefix}/share/mimelnk/*
|
2000-04-26 02:17:00 +04:00
|
|
|
|
2006-01-15 21:02:44 +03:00
|
|
|
%files games
|
|
|
|
%dir %{prefix}/bin
|
2006-08-25 10:58:33 +04:00
|
|
|
%{prefix}/bin/blocks
|
2006-01-15 21:02:44 +03:00
|
|
|
%{prefix}/bin/checkers
|
|
|
|
%{prefix}/bin/sudoku
|
2006-01-15 21:36:16 +03:00
|
|
|
|
|
|
|
%dir %{_mandir}
|
|
|
|
%{_mandir}/cat6/*
|
|
|
|
%{_mandir}/man6/*
|
|
|
|
|
2008-02-25 17:43:34 +03:00
|
|
|
%dir %{prefix}/share/applications
|
|
|
|
%{prefix}/share/applications/*
|
2006-01-15 21:36:16 +03:00
|
|
|
|
|
|
|
%dir %{prefix}/share/icons
|
2006-08-25 10:58:33 +04:00
|
|
|
%{prefix}/share/icons/hicolor/*/apps/blocks.png
|
2006-01-15 21:02:44 +03:00
|
|
|
%{prefix}/share/icons/hicolor/*/apps/checkers.png
|
|
|
|
%{prefix}/share/icons/hicolor/*/apps/sudoku.png
|