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