9a86d0a
%global __cmake_in_source_build 1
96a1817
Summary:        A freely licensed alternative to the GLUT library
96a1817
Name:           freeglut
c15598e
Version:        3.2.1
69a5571
Release:        10%{?dist}
96a1817
URL:            http://freeglut.sourceforge.net
6669bc6
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
481c88d
# For the manpages
6669bc6
Source1:        https://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
8973f5c
Patch0:         common.patch
96a1817
License:        MIT
4504d20
Igor Gnatenko ad267a1
BuildRequires:  gcc
Igor Gnatenko ad267a1
BuildRequires:  gcc-c++
fd8ee03
BuildRequires:  cmake
23a3d9f
BuildRequires:  pkgconfig libGLU-devel libXext-devel
f613043
BuildRequires:  libXi-devel libICE-devel
93052c5
BuildRequires: make
mjk d34dcea
# The virtual Provides below is present so that this freeglut package is a
mjk d34dcea
# drop in binary replacement for "glut" which will satisfy rpm dependancies
mjk d34dcea
# properly.  The Obsoletes tag is required in order for any pre-existing
mjk d34dcea
# "glut" package to be removed and replaced with freeglut when upgrading to
mjk d34dcea
# freeglut.  Note: This package will NOT co-exist with the glut package.
96a1817
Provides:       glut = 3.7
390ad24
Obsoletes:      glut < 3.7
mjk d34dcea
mjk d34dcea
%description
mjk d34dcea
freeglut is a completely open source alternative to the OpenGL Utility Toolkit
mjk d34dcea
(GLUT) library with an OSI approved free software license. GLUT was originally
mjk d34dcea
written by Mark Kilgard to support the sample programs in the second edition
mjk d34dcea
OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical
mjk d34dcea
applications because it is simple, universally available and highly portable.
mjk d34dcea
mjk d34dcea
freeglut allows the user to create and manage windows containing OpenGL
mjk d34dcea
contexts on a wide range of platforms and also read the mouse, keyboard and
mjk d34dcea
joystick functions.
mjk d34dcea
mjk d34dcea
96a1817
%package devel
96a1817
Summary:        Freeglut developmental libraries and header files
96a1817
Requires:       %{name} = %{version}-%{release}
96a1817
Requires:       libGL-devel libGLU-devel
96a1817
Provides:       glut-devel = 3.7
390ad24
Obsoletes:      glut-devel < 3.7
mjk d34dcea
mjk d34dcea
%description devel
mjk d34dcea
Developmental libraries and header files required for developing or compiling
mjk d34dcea
software which links to the freeglut library, which is an open source
mjk d34dcea
alternative to the popular GLUT library, with an OSI approved free software
mjk d34dcea
license.
mjk d34dcea
96a1817
mjk d34dcea
%prep
481c88d
%setup -q -a 1
8973f5c
%patch0 -p0
mjk d34dcea
mjk d34dcea
%build
fd8ee03
%{cmake} -DFREEGLUT_BUILD_STATIC_LIBS=OFF .
a99aa74
%{cmake_build}
96a1817
mjk d34dcea
mjk d34dcea
%install
a99aa74
%{make_install}
mjk d34dcea
481c88d
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
481c88d
install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
481c88d
96a1817
af7acad
%ldconfig_scriptlets
mjk d34dcea
96a1817
mjk d34dcea
%files
fd8ee03
%doc AUTHORS ChangeLog COPYING README doc/*.png doc/*.html
mjk d34dcea
# don't include contents of doc/ directory as it is mostly obsolete
6669bc6
%{_libdir}/libglut.so.3*
mjk d34dcea
mjk d34dcea
%files devel
mjk d34dcea
%{_includedir}/GL/*.h
mjk d34dcea
%{_libdir}/libglut.so
c15598e
%{_libdir}/pkgconfig/glut.pc
481c88d
%{_mandir}/man3/*
c15598e
%{_libdir}/cmake/FreeGLUT/*
96a1817
mjk d34dcea
%changelog
69a5571
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-10
69a5571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
69a5571
a99aa74
- Mon Mar 15 2021 Timm B├Ąder <tbaeder@redhat.com> - 3.2.1-9
a99aa74
- Use cmake_build and make_install macros
a99aa74
23a3d9f
* Fri Mar 12 2021 Adam Jackson <ajax@redhat.com> - 3.2.1-8
23a3d9f
- Drop legacy BuildRequires: libXxf86vm-devel
23a3d9f
4e288a3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-7
4e288a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4e288a3
9a86d0a
* Tue Aug 04 2020 Gwyn Ciesla <gwync@protonmail.com> - 3.2.1-6
9a86d0a
- Fix FTBFS.
9a86d0a
d0ad2bc
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-5
d0ad2bc
- Second attempt - Rebuilt for
d0ad2bc
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d0ad2bc
9a9548e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
9a9548e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9a9548e
8973f5c
* Fri Jan 31 2020 Gwyn Ciesla <gwync@protonmail.com> - 3.2.1-3
8973f5c
- Fix FTBFS
8973f5c
e14c26b
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
e14c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e14c26b
c15598e
* Mon Sep 30 2019 Gwyn Ciesla <gwync@protonmail.com> - 3.2.1-1
c15598e
- 3.2.1
c15598e
c15598e
* Tue Sep 17 2019 Gwyn Ciesla <gwync@protonmail.com> - 3.2.0-1
c15598e
- 3.2.0
c15598e
25fb033
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-11
25fb033
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
25fb033
d58e96e
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-10
d58e96e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d58e96e
5756206
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-9
5756206
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5756206
6669bc6
* Tue May 01 2018 Adam Jackson <ajax@redhat.com> - 3.0.0-8
6669bc6
- HTTPS URLs
6669bc6
- Pin soname to libglut.so.3 in the %%files glob
6669bc6
afaa16a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-7
afaa16a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
afaa16a
b21928b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
b21928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b21928b
e79f3d4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
e79f3d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e79f3d4
adca16c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
adca16c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
adca16c
8846528
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
8846528
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8846528
ed4653f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-2
ed4653f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ed4653f
fd8ee03
* Tue Mar 10 2015 Tomas Smetana <tsmetana@redhat.com> 3.0.0-1
fd8ee03
- New upstream version
fd8ee03
2f1b378
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-5
2f1b378
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2f1b378
0d5ceb6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-4
0d5ceb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0d5ceb6
acaa392
* Thu Jan 23 2014 Tomas Smetana <tsmetana@redhat.com> - 2.8.1-3
acaa392
- fix #1017551: don't crash on manipulating active menus
acaa392
b057185
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-2
b057185
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b057185
ec1f563
* Mon Apr 08 2013 Tomas Smetana <tsmetana@redhat.com> - 2.8.1-1
ec1f563
- fix #948696: new upstream bugfix release, drop patches
ec1f563
- fix #925363: aarch64 support
ec1f563
13feca5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-8
13feca5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
13feca5
91c35b8
* Mon Aug 27 2012 Tomas Smetana <tsmetana@redhat.com> - 2.8.0-7
91c35b8
- fix mapping from XInput to the X button mask in the bug #831336 patch
91c35b8
3de3137
* Wed Aug 15 2012 Tomas Smetana <tsmetana@redhat.com> - 2.8.0-6
3de3137
- fix #831336: fix broken menus; patch backported from upstream SVN revision
3de3137
  1375 by Manfred Spraul
3de3137
4504d20
* Fri Aug  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.8.0-5
4504d20
- Add patch to fix FTBFS
4504d20
e3fcc47
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-4
e3fcc47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e3fcc47
6d34aa5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-3
6d34aa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6d34aa5
9ab285f
* Tue Jan 03 2012 Tomas Smetana <tsmetana@redhat.com> - 2.8.0-2
9ab285f
- fix patch0 for the new release
9ab285f
1a988fc
* Tue Jan 03 2012 Tomas Smetana <tsmetana@redhat.com> - 2.8.0-1
1a988fc
- New upstream release
1a988fc
b4aa403
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-6
b4aa403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b4aa403
3ab7f04
* Mon May 31 2010 Tomas Smetana <tsmetana@redhat.com> 2.6.0-5
3ab7f04
- fix #575885, #575885 - suppress the "Unknown X event type" warnings
3ab7f04
3ab7f04
* Fri May  7 2010 Josh Boyer <jwboyer@gmail.com> 2.6.0-4
3ab7f04
- Add -lm to fix ppc build
3ab7f04
1aae843
* Mon Feb 15 2010 Tomas Smetana <tsmetana@redhat.com> 2.6.0-3
1aae843
- the patch for #565178 was incomplete
1aae843
4ce95ee
* Mon Feb 15 2010 Tomas Smetana <tsmetana@redhat.com> 2.6.0-2
4ce95ee
- fix #565178: fix building of the examples
4ce95ee
1ce3dc0
* Sat Nov 28 2009 Tomas Smetana <tsmetana@redhat.com> 2.6.0-1
1ce3dc0
- update to 2.6.0 final
1ce3dc0
444f68e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-0.2.rc1
444f68e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
444f68e
16cf90e
* Tue Apr 21 2009 Hans de Goede <hdegoede@redhat.com> 2.6.0-0.1.rc1
16cf90e
- New upstream release (yes really!) 2.6.0-rc1
16cf90e
23e6ffd
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-16
23e6ffd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
23e6ffd
b379983
* Thu Jan 22 2009 Tomas Smetana <tsmetana@redhat.com> - 2.4.0-15
b379983
- fix #481049 - rebuild to pick up %%{_isa} provides
b379983
390ad24
* Mon Mar 17 2008 Jesse Keating <jkeating@redhat.com> - 2.4.0-14
390ad24
- Prevent package from obsoleting itself with matching Provides/Obsoletes.
390ad24
f1f62c2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.0-13
f1f62c2
- Autorebuild for GCC 4.3
f1f62c2
481c88d
* Tue Dec 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.0-12
481c88d
- Add manpages to the -devel package (from openglut, bz 409651)
481c88d
96a1817
* Sun Mar 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.0-11
96a1817
- Minor specfile cleanups
96a1817
- Add a patch from gentoo to stop flightgear from crashing
96a1817
mjk bed0555
* Mon Aug 27 2006 Michael J. Knox <michael[AT]knox.net.nz> - 2.4.0-10
mjk bed0555
- Rebuild for FC6
mjk bed0555
mjk d34dcea
* Wed Jul 26 2006 Michael J. Knox <michael[AT]knox.net.nz> - 2.4.0-9
mjk d34dcea
- disblaed static build
mjk d34dcea
- dropped unneeded requires
mjk d34dcea
- dropped the glib cruff passed to make
mjk d34dcea
mjk d34dcea
* Wed Jul 26 2006 Michael J. Knox <michael[AT]knox.net.nz> - 2.4.0-8
mjk d34dcea
- clean ups to shut rpmlint up
mjk d34dcea
mjk d34dcea
* Fri Jul 21 2006 Mike A. Harris <mharris@redhat.com> - 2.4.0-7.fc6
mjk d34dcea
- Use {?dist} tag in release field
mjk d34dcea
- Update BuildRoot to comply with Fedora packaging guidelines
mjk d34dcea
mjk d34dcea
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> 2.4.0-6
mjk d34dcea
- rebuild
mjk d34dcea
- Try to build w/out glib
mjk d34dcea
mjk d34dcea
* Fri May 19 2006 Mike A. Harris <mharris@redhat.com> 2.4.0-5
mjk d34dcea
- Added "BuildRequires: libXext-devel, libXxf86vm-devel" for (#192255)
mjk d34dcea
mjk d34dcea
* Tue Feb 21 2006 Karsten Hopp <karsten@redhat.de> 2.4.0-4
mjk d34dcea
- BuildRequires: libGLU-devel
mjk d34dcea
mjk d34dcea
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 2.4.0-3.2
mjk d34dcea
- bump again for double-long bug on ppc(64)
mjk d34dcea
mjk d34dcea
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.4.0-3.1
mjk d34dcea
- rebuilt for new gcc4.1 snapshot and glibc changes
mjk d34dcea
mjk d34dcea
* Tue Jan 31 2006 Mike A. Harris <mharris@redhat.com> 2.4.0-3
mjk d34dcea
- Added "Requires: libGL-devel libGLU-devel" to fix bug (#179464)
mjk d34dcea
- Change file based GL header build dep to BuildRequires: libGL-devel
mjk d34dcea
mjk d34dcea
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 2.4.0-2.1
mjk d34dcea
- rebuilt
mjk d34dcea
mjk d34dcea
* Fri Nov 18 2005 Bill Nottingham <notting@redhat.com> 2.4.0-2
mjk d34dcea
- Remove references to obsolete /usr/X11R6 paths
mjk d34dcea
mjk d34dcea
* Fri Sep 23 2005 Mike A. Harris <mharris@redhat.com> 2.4.0-1
mjk d34dcea
- Updated to freeglut-2.4.0
mjk d34dcea
- Removed unneeded patches:
mjk d34dcea
  - freeglut-2.2.0-gcc4-fix-invalid-lvalue-in-assignment-cvsps-392-393.patch
mjk d34dcea
- Use "-p /sbin/ldconfig" in post/postun scripts instead of a separate script.
mjk d34dcea
mjk d34dcea
* Sat Mar 05 2005 Mike A. Harris <mharris@redhat.com> 2.2.0-16
mjk d34dcea
- Added freeglut-2.2.0-gcc4-fix-invalid-lvalue-in-assignment-cvsps-392-393.patch
mjk d34dcea
  to fix "invalid lvalue in assignment" bugs reported by gcc 4
mjk d34dcea
- Added "-Wall" to CFLAGS in specfile.
mjk d34dcea
mjk d34dcea
* Thu Mar 03 2005 Mike A. Harris <mharris@redhat.com> 2.2.0-15
mjk d34dcea
- Rebuild with gcc 4 for FC4 development
mjk d34dcea
mjk d34dcea
* Sat Aug 14 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-14
mjk d34dcea
- Add post and postun scripts that call ldconfig (#128413)
mjk d34dcea
mjk d34dcea
* Fri Jun 18 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-13
mjk d34dcea
- Rebuilt with gcc 3.4 for FC3 development
mjk d34dcea
mjk d34dcea
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 2.2.0-12
mjk d34dcea
- rebuilt
mjk d34dcea
mjk d34dcea
* Thu Mar 18 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-11
mjk d34dcea
- Updated "Obsoletes: glut" to be "Obsoletes: glut <= 3.7" and
mjk d34dcea
  "Obsoletes: glut-devel" to be "Obsoletes: glut-devel <= 3.7" as per
mjk d34dcea
  suggestion from Matthias Saou in comment #14 of bug (#107228)
mjk d34dcea
mjk d34dcea
* Sun Mar 07 2004 Mike A. Harris <mharris@redhat.com>
mjk d34dcea
- Made "glut-devel" virtual provides be "glut-devel = 3.7"
mjk d34dcea
mjk d34dcea
* Sun Mar 07 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-10
mjk d34dcea
- Initial Red Hat packaging created by taking the ATrpms src.rpm package from
mjk d34dcea
  http://tinyurl.com/2goog as suggested in bugzilla bug (#107228)
mjk d34dcea
- Bumped the Release field to "10" so our package is newer when people
mjk d34dcea
  upgrade to it, as requested in bug (#107228)
mjk d34dcea
- Removed redundant version/release macros from top of specfile
mjk d34dcea
- Versioned buildroot directory
mjk d34dcea
- Add --enable-warnings arg to ./configure script
mjk d34dcea
- Add HTML documentation to main package
mjk d34dcea
- Made "glut" virtual provides be "glut = 3.7"
mjk d34dcea
- Do not include *.la files
mjk d34dcea
mjk d34dcea
* Sat Feb 21 2004 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> 2.2.0
mjk d34dcea
- Added glut compatibility provides.
mjk d34dcea
- Moved *.so to devel package.
mjk d34dcea
mjk d34dcea
* Tue Jan 13 2004 Andy Piper <andy.piper@freeuk.com>
mjk d34dcea
- updated to freeglut-2.2.0
mjk d34dcea
- fixed library install
mjk d34dcea
mjk d34dcea
* Fri Nov 14 2003 Andy Piper <andy.piper@freeuk.com>
mjk d34dcea
- updated for freeglut-2.0.1
mjk d34dcea
mjk d34dcea
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
mjk d34dcea
- rebuilt
mjk d34dcea
mjk d34dcea
* Tue Jun 03 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.3
mjk d34dcea
- Add BuildRequires on /sbin/ldconfig
mjk d34dcea
- Change ldconfig call to explicit /sbin/ldconfig
mjk d34dcea
mjk d34dcea
* Sun Jun 01 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.2
mjk d34dcea
- Oddly, when I build this on my workstation, it only builds static libs, but
mjk d34dcea
  when I build it in the buildsystem it builds shared and static libs.  Must
mjk d34dcea
  be a twilight zone thing going on.  Add shared libs to file lists.
mjk d34dcea
mjk d34dcea
* Sat May 31 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.1
96a1817
- Added -L/usr/X11R6/%%{_lib} configure script invocation and CFLAGS so lib64
mjk d34dcea
  is treated properly on x86_64/ppc64/s390x architectures
mjk d34dcea
  
mjk d34dcea
* Fri May 30 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.0
mjk d34dcea
- Initial build.