96a1817
Summary:        A freely licensed alternative to the GLUT library
96a1817
Name:           freeglut
1a988fc
Version:        2.8.0
1a988fc
Release:        1%{?dist}
96a1817
URL:            http://freeglut.sourceforge.net
1ce3dc0
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
481c88d
# For the manpages
481c88d
Source1:        http://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
96a1817
License:        MIT
96a1817
Group:          System Environment/Libraries
96a1817
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
96a1817
BuildRequires:  pkgconfig libGLU-devel libXext-devel libXxf86vm-devel
f613043
BuildRequires:  libXi-devel libICE-devel
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
4ce95ee
# Fix linking of the examples -- we don't package them, they just need to
4ce95ee
# compile and link
4ce95ee
Patch0: freeglut-2.6.0-fixld.patch
4ce95ee
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
Group:          Development/Libraries
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
4ce95ee
%patch0 -p1 -b .fixld
mjk d34dcea
mjk d34dcea
%build
96a1817
# --disable-warnings -> don't add -Werror to CFLAGS
96a1817
%configure --disable-static --disable-warnings
96a1817
make %{?_smp_mflags}
96a1817
mjk d34dcea
mjk d34dcea
%install
mjk d34dcea
rm -rf $RPM_BUILD_ROOT
96a1817
make install DESTDIR=$RPM_BUILD_ROOT
mjk d34dcea
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
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
mjk d34dcea
%clean
mjk d34dcea
rm -rf $RPM_BUILD_ROOT
mjk d34dcea
96a1817
mjk d34dcea
%post -p /sbin/ldconfig
mjk d34dcea
%postun -p /sbin/ldconfig
mjk d34dcea
96a1817
mjk d34dcea
%files
mjk d34dcea
%defattr(-,root,root,-)
mjk d34dcea
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO doc/*.png doc/*.html
mjk d34dcea
# don't include contents of doc/ directory as it is mostly obsolete
mjk d34dcea
%{_libdir}/libglut*.so.*
mjk d34dcea
mjk d34dcea
%files devel
mjk d34dcea
%defattr(-,root,root,-)
mjk d34dcea
%{_includedir}/GL/*.h
mjk d34dcea
%{_libdir}/libglut.so
481c88d
%{_mandir}/man3/*
mjk d34dcea
96a1817
mjk d34dcea
%changelog
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.