Blame SPECS/freeglut.spec

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