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
|
|
|
#
|
2020-01-09 09:13:43 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:13:00 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-03-13 14:14:15 +01:00
|
|
|
%define _libname libglut3
|
2007-01-16 00:13:00 +01:00
|
|
|
Name: freeglut
|
2020-01-09 09:13:43 +01:00
|
|
|
Version: 3.2.1
|
2012-02-21 07:30:36 +01:00
|
|
|
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
|
2020-01-09 09:13:43 +01:00
|
|
|
URL: http://freeglut.sourceforge.net/
|
2013-04-06 07:54:38 +02:00
|
|
|
Source: https://downloads.sourceforge.net/project/freeglut/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2020-01-09 09:13:43 +01:00
|
|
|
Source1: https://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
|
2014-09-18 12:06:24 +02:00
|
|
|
Source2: baselibs.conf
|
2015-03-13 14:14:15 +01:00
|
|
|
BuildRequires: cmake
|
2012-02-21 07:30:36 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
2014-09-18 12:03:48 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2012-09-18 09:52:43 +02:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2014-09-18 12:03:48 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
2012-05-14 12:17:38 +02:00
|
|
|
Recommends: Mesa-demo-x
|
2012-02-21 07:30:36 +01:00
|
|
|
Provides: mesaglut = 7.11
|
|
|
|
Obsoletes: mesaglut < 7.11
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
%package -n %{_libname}
|
2012-02-21 07:30:36 +01:00
|
|
|
Summary: Freely licensed alternative to the GLUT library
|
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
%description -n %{_libname}
|
2012-02-21 07:30:36 +01:00
|
|
|
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)
|
2020-01-09 09:13:43 +01:00
|
|
|
Requires: %{_libname} = %{version}
|
2013-03-24 20:26:39 +01:00
|
|
|
Requires: pkgconfig(gl)
|
2012-09-18 09:52:43 +02:00
|
|
|
Requires: pkgconfig(glu)
|
2012-02-21 07:30:36 +01:00
|
|
|
Provides: mesaglut-devel = 7.11
|
|
|
|
Obsoletes: mesaglut-devel < 7.11
|
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
|
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
|
2020-01-09 09:13:43 +01:00
|
|
|
%setup -q -a1
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%build
|
2015-03-13 14:14:15 +01:00
|
|
|
%cmake \
|
|
|
|
-DFREEGLUT_BUILD_STATIC_LIBS=OFF
|
2020-01-09 09:13:43 +01:00
|
|
|
%cmake_build
|
2007-01-16 00:13:00 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-13 14:14:15 +01:00
|
|
|
%cmake_install
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
# install demo files
|
|
|
|
install -d %{buildroot}%{_libexecdir}/freeglut
|
2015-03-13 14:14:15 +01:00
|
|
|
pushd build/bin/ > /dev/null
|
|
|
|
for i in *; do
|
|
|
|
install $i %{buildroot}%{_libexecdir}/freeglut/$i
|
2012-02-21 07:30:36 +01:00
|
|
|
done
|
2015-03-13 14:14:15 +01:00
|
|
|
popd > /dev/null
|
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
# glut manpages
|
2012-02-21 07:30:36 +01:00
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man3
|
2020-01-09 09:13:43 +01:00
|
|
|
install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
%post -n %{_libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_libname} -p /sbin/ldconfig
|
2007-01-16 00:13:00 +01:00
|
|
|
|
2020-01-09 09:13:43 +01:00
|
|
|
%files -n %{_libname}
|
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README
|
2007-01-16 00:13:00 +01:00
|
|
|
%{_libdir}/libglut.so.*
|
|
|
|
|
|
|
|
%files devel
|
2012-02-21 07:30:36 +01:00
|
|
|
%{_includedir}/GL
|
2007-01-16 00:13:00 +01:00
|
|
|
%{_libdir}/libglut.so
|
2020-01-09 09:13:43 +01:00
|
|
|
%{_libdir}/pkgconfig/glut.pc
|
|
|
|
%dir %{_libdir}/cmake/FreeGLUT
|
|
|
|
%{_libdir}/cmake/FreeGLUT/*
|
2007-01-16 00:13:00 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2012-02-21 07:30:36 +01:00
|
|
|
%files demo
|
|
|
|
%{_libexecdir}/freeglut
|
|
|
|
|
2007-08-24 01:04:46 +02:00
|
|
|
%changelog
|