2007-01-16 00:13:00 +01:00
|
|
|
#
|
2011-10-04 18:09:46 +02:00
|
|
|
# spec file for package freeglut
|
2007-01-16 00:13:00 +01:00
|
|
|
#
|
2012-02-21 07:30:36 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:13:00 +01:00
|
|
|
#
|
2008-08-11 22:37:31 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:13:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%define debug 0
|
2008-04-10 14:13:22 +02:00
|
|
|
|
2007-01-16 00:13:00 +01:00
|
|
|
Name: freeglut
|
2012-02-21 07:30:36 +01:00
|
|
|
Version: 2.7.99.svn20111107.0422
|
|
|
|
Release: 0
|
2007-08-24 01:04:46 +02:00
|
|
|
Summary: Freely licensed alternative to the GLUT library
|
2012-02-21 07:30:36 +01:00
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
2008-04-10 14:13:22 +02:00
|
|
|
Url: http://freeglut.sourceforge.net/
|
2012-02-21 07:30:36 +01:00
|
|
|
Source: freeglut.tar.bz2
|
2007-01-16 00:13:00 +01:00
|
|
|
Source1: glutman.tar.bz2
|
2012-02-21 07:30:36 +01:00
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libdrm-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
Recommends: Mesa-demos-base
|
|
|
|
Provides: mesaglut = 7.11
|
|
|
|
Obsoletes: mesaglut < 7.11
|
2008-11-02 15:40:28 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: freeglut-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:13:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2007-08-24 01:04:46 +02:00
|
|
|
Freeglut is a completely open source alternative to the OpenGL Utility
|
2007-01-16 00:13:00 +01:00
|
|
|
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
|
|
|
|
support the sample programs in the second edition OpenGL Redbook. Since
|
|
|
|
then, GLUT has been used in a wide variety of practical applications
|
|
|
|
because it is simple, universally available, and highly portable.
|
|
|
|
|
|
|
|
GLUT (and freeglut) allow the user to create and manage windows
|
|
|
|
containing OpenGL contexts and also read the mouse, keyboard, and
|
|
|
|
joystick functions on a wide range of platforms.
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%package -n libglut3
|
|
|
|
Summary: Freely licensed alternative to the GLUT library
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%description -n libglut3
|
|
|
|
Freeglut is a completely open source alternative to the OpenGL Utility
|
|
|
|
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
|
|
|
|
support the sample programs in the second edition OpenGL Redbook. Since
|
|
|
|
then, GLUT has been used in a wide variety of practical applications
|
|
|
|
because it is simple, universally available, and highly portable.
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
GLUT (and freeglut) allow the user to create and manage windows
|
|
|
|
containing OpenGL contexts and also read the mouse, keyboard, and
|
|
|
|
joystick functions on a wide range of platforms.
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2007-08-24 01:04:46 +02:00
|
|
|
Summary: Development libraries, includes and man pages for freeglut (GLUT Library)
|
2007-01-16 00:13:00 +01:00
|
|
|
Group: Development/Libraries/X11
|
2012-02-21 07:30:36 +01:00
|
|
|
Requires: libglut3 = %{version}
|
|
|
|
Requires: xorg-x11-Mesa-devel
|
|
|
|
Requires: xorg-x11-devel
|
|
|
|
Provides: mesaglut-devel = 7.11
|
|
|
|
Obsoletes: mesaglut-devel < 7.11
|
2008-11-02 15:40:28 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: freeglut-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%description devel
|
2007-08-24 01:04:46 +02:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to compile and link applications for the freeglut library.
|
|
|
|
|
|
|
|
In addition, it also includes manual pages which describe all functions
|
|
|
|
provided by the freeglut library.
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
Freeglut is a completely open source alternative to the OpenGL Utility
|
2007-08-24 01:04:46 +02:00
|
|
|
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
|
|
|
|
support the sample programs in the second edition OpenGL Redbook. Since
|
|
|
|
then, GLUT has been used in a wide variety of practical applications
|
|
|
|
because it is simple, universally available, and highly portable.
|
|
|
|
|
|
|
|
GLUT (and freeglut) allow the user to create and manage windows
|
|
|
|
containing OpenGL contexts and also read the mouse, keyboard, and
|
|
|
|
joystick functions on a wide range of platforms.
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%package demo
|
|
|
|
Summary: Demonstration applications for the freeglut library
|
|
|
|
Group: System/X11/Utilities
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%description demo
|
|
|
|
This package contains demonstration applications for the freeglut library.
|
|
|
|
|
|
|
|
Freeglut is a completely open source alternative to the OpenGL Utility
|
|
|
|
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
|
|
|
|
support the sample programs in the second edition OpenGL Redbook. Since
|
|
|
|
then, GLUT has been used in a wide variety of practical applications
|
|
|
|
because it is simple, universally available, and highly portable.
|
|
|
|
|
|
|
|
GLUT (and freeglut) allow the user to create and manage windows
|
|
|
|
containing OpenGL contexts and also read the mouse, keyboard, and
|
|
|
|
joystick functions on a wide range of platforms.
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%prep
|
2012-02-21 07:30:36 +01:00
|
|
|
%setup -q -b0 -b1 -n freeglut
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%build
|
2012-02-21 07:30:36 +01:00
|
|
|
./autogen.sh
|
|
|
|
%configure \
|
|
|
|
--enable-replace-glut \
|
|
|
|
%if %debug
|
|
|
|
--enable-debug \
|
2007-01-16 00:13:00 +01:00
|
|
|
%endif
|
2012-02-21 07:30:36 +01:00
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%install
|
2012-02-21 07:30:36 +01:00
|
|
|
%make_install
|
|
|
|
# install demo files
|
|
|
|
install -d %{buildroot}%{_libexecdir}/freeglut
|
|
|
|
for i in shapes smooth_opengl3 spaceball subwin CallbackMaker; do
|
|
|
|
install progs/demos/$i/.libs/$i %{buildroot}%{_libexecdir}/freeglut/$i
|
|
|
|
done
|
|
|
|
install progs/demos/Fractals/.libs/fractals %{buildroot}%{_libexecdir}/freeglut/fractals
|
|
|
|
install progs/demos/Fractals_random/.libs/fractals_random %{buildroot}%{_libexecdir}/freeglut/fractals_random
|
|
|
|
install progs/demos/One/.libs/one %{buildroot}%{_libexecdir}/freeglut/one
|
|
|
|
install progs/demos/Lorenz/.libs/lorenz %{buildroot}%{_libexecdir}/freeglut/lorenz
|
2007-01-16 00:13:00 +01:00
|
|
|
# glut Manual Pages
|
2012-02-21 07:30:36 +01:00
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man3
|
|
|
|
for i in ../glut-3.7/man/glut/glut*; do
|
|
|
|
install -m 644 $i %{buildroot}/%{_mandir}/man3/`basename $i man`3
|
|
|
|
done
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libglut.la
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%post -n libglut3 -p /sbin/ldconfig
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%postun -n libglut3 -p /sbin/ldconfig
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%files -n libglut3
|
2007-01-16 00:13:00 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-21 07:30:36 +01:00
|
|
|
%doc AUTHORS COPYING NEWS README
|
2007-01-16 00:13:00 +01:00
|
|
|
%{_libdir}/libglut.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-02-21 07:30:36 +01:00
|
|
|
%doc ChangeLog
|
|
|
|
%{_includedir}/GL
|
2007-01-16 00:13:00 +01:00
|
|
|
%{_libdir}/libglut.so
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%files demo
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libexecdir}/freeglut
|
|
|
|
|
2007-08-24 01:04:46 +02:00
|
|
|
%changelog
|