Blame SPECS/freeglut.spec

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