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