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