|
Hello all,
I have hacked the fltk.spec file in the FLTK 1.1.x r5041 archive and thought
I would share them.
Simply,
1. Unpack the fltk 1.1.x-r5041 archive.
2. Copy the attached files into the top directory.
3. Then create a new archive called fltk-1.1.7-r5041.tar.gz. Then run the
command:
rpmbuild -ta fltk-1.1.7-r5041.tar.gz.
This will create the following RPMs in /usr/src/packages/RPMS/i586:
fltk-1.1.7-r5041.i586.rpm
fltk-devel-1.1.7-r5041.i586.rpm
fltk-games-1.1.7-r5041.i586.rpm
You can then use the rpm command (or YaST if you are using SUSE) to install
the latest FLTK 1.1.x library.
I used 1.1.7-r5041 instead of 1.1.x-r5041 so that the rpm command (or YaST)
can easily do an upgrade. You can easily change this back by hacking the
spec file (via the defines at the top and the path at the end of the
%setup).
Enjoy,
Alvin #
# "$Id: fltk.spec.in 4756 2006-01-15 18:36:16Z mike $"
#
# RPM spec file for FLTK.
#
# Copyright 1998-2006 by Bill Spitzak and others.
#
# 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.
#
# Please report all bugs and problems on the following page:
#
# http://www.fltk.org/str.php
#
%define version 1.1.7
%define release r5041
%define prefix /usr
Summary: Fast Light Tool Kit (FLTK)
Name: fltk
Version: %{version}
Release: %{release}
License: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.fltk.org/pub/fltk/%{version}/fltk-%{version}-%{release}.tar.gz
URL: http://www.fltk.org/
Packager: FLTK Developer <fltk-Pb5k+0cqGQ4@public.gmane.org>
# use BuildRoot so as not to disturb the version already installed
BuildRoot: /var/tmp/fltk-%{PACKAGE_VERSION}
%description
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
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.
%package devel
Summary: FLTK Development Environment
Group: Development/Libraries
%description devel
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.
%package games
Summary: FLTK Games
Group: Games
%description games
Install fltk-games to play checkers or Sudoku on your computer.
%prep
%setup -n fltk-%{version}-%{release}
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --disable-debug \
--enable-gl --enable-threads --enable-shared --enable-xft --enable-xdbe --enable-xinerama
# 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
make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{prefix}/lib
%{prefix}/lib/libfltk*.so.*
%files devel
%defattr(-,root,root)
%dir %{prefix}/bin
%{prefix}/bin/fltk-config
%{prefix}/bin/fluid
%dir %{prefix}/include/FL
%{prefix}/include/FL/*
%{prefix}/include/Fl
%dir %{prefix}/lib
%{prefix}/lib/libfltk*.so
%{prefix}/lib/libfltk*.a
%dir %{_mandir}
%{_mandir}/cat1/*
%{_mandir}/cat3/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%dir %{prefix}/share/doc/fltk
%{prefix}/share/doc/fltk/*
%dir %{prefix}/share/applnk
%{prefix}/share/applnk/Development/*
%dir %{prefix}/share/icons
%{prefix}/share/icons/hicolor/*/apps/fluid.png
%dir %{prefix}/share/mimelnk
%{prefix}/share/mimelnk/*
%files games
%dir %{prefix}/bin
%{prefix}/bin/checkers
%{prefix}/bin/sudoku
%dir %{_mandir}
%{_mandir}/cat6/*
%{_mandir}/man6/*
%dir %{prefix}/share/applnk
%{prefix}/share/applnk/Games/*
%dir %{prefix}/share/icons
%{prefix}/share/icons/hicolor/*/apps/checkers.png
%{prefix}/share/icons/hicolor/*/apps/sudoku.png
#
# End of "$Id: fltk.spec.in 4756 2006-01-15 18:36:16Z mike $".
#
#
# "$Id: fltk.spec.in 4756 2006-01-15 18:36:16Z mike $"
#
# RPM spec file for FLTK.
#
# Copyright 1998-2006 by Bill Spitzak and others.
#
# 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.
#
# Please report all bugs and problems on the following page:
#
# http://www.fltk.org/str.php
#
%define version 1.1.7
%define release r5041
%define prefix /usr
Summary: Fast Light Tool Kit (FLTK)
Name: fltk
Version: %{version}
Release: %{release}
License: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.fltk.org/pub/fltk/%{version}/fltk-%{version}-%{release}.tar.gz
URL: http://www.fltk.org/
Packager: FLTK Developer <fltk-Pb5k+0cqGQ4@public.gmane.org>
# use BuildRoot so as not to disturb the version already installed
BuildRoot: /var/tmp/fltk-%{PACKAGE_VERSION}
%description
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
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.
%package devel
Summary: FLTK Development Environment
Group: Development/Libraries
%description devel
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.
%package games
Summary: FLTK Games
Group: Games
%description games
Install fltk-games to play checkers or Sudoku on your computer.
%prep
%setup -n fltk-%{version}-%{release}
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --disable-debug \
--enable-gl --enable-threads --enable-shared --enable-xft --enable-xdbe --enable-xinerama
# 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
make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{prefix}/lib
%{prefix}/lib/libfltk*.so.*
%files devel
%defattr(-,root,root)
%dir %{prefix}/bin
%{prefix}/bin/fltk-config
%{prefix}/bin/fluid
%dir %{prefix}/include/FL
%{prefix}/include/FL/*
%{prefix}/include/Fl
%dir %{prefix}/lib
%{prefix}/lib/libfltk*.so
%{prefix}/lib/libfltk*.a
%dir %{_mandir}
%{_mandir}/cat1/*
%{_mandir}/cat3/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%dir %{prefix}/share/doc/fltk
%{prefix}/share/doc/fltk/*
%dir %{prefix}/share/applnk
%{prefix}/share/applnk/Development/*
%dir %{prefix}/share/icons
%{prefix}/share/icons/hicolor/*/apps/fluid.png
%dir %{prefix}/share/mimelnk
%{prefix}/share/mimelnk/*
%files games
%dir %{prefix}/bin
%{prefix}/bin/checkers
%{prefix}/bin/sudoku
%dir %{_mandir}
%{_mandir}/cat6/*
%{_mandir}/man6/*
%dir %{prefix}/share/applnk
%{prefix}/share/applnk/Games/*
%dir %{prefix}/share/icons
%{prefix}/share/icons/hicolor/*/apps/checkers.png
%{prefix}/share/icons/hicolor/*/apps/sudoku.png
#
# End of "$Id: fltk.spec.in 4756 2006-01-15 18:36:16Z mike $".
#
[ Direct Link to Message ] | |