freeglut-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. Name: freeglut
  2. Summary: A freely licensed alternative to the GLUT library
  3. Summary(ja): 自由なライセンスで提供される GLUT ライブラリ
  4. Version: 2.8.0
  5. Release: 1%{?_dist_release}
  6. URL: http://freeglut.sourceforge.net
  7. License: MIT
  8. Group: System Environment/Libraries
  9. Source0: http://sourceforge.net/projects/freeglut/files/%{name}-%{version}.tar.gz
  10. # patch from Fedora
  11. Patch0: freeglut-2.8.0-fixld.patch
  12. Patch1: freeglut-glextconflict.patch
  13. Patch2: freeglut-2.8.0-fixXInput.patch
  14. Patch3: freeglut-2.8.0-btnmask.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: pkgconfig
  17. BuildRequires: libXext-devel, libXxf86vm-devel, mesa-libGLU-devel
  18. BuildRequires: libXi-devel
  19. # The virtual Provides below is present so that this freeglut package is a
  20. # drop in binary replacement for "glut" which will satisfy rpm dependancies
  21. # properly. The Obsoletes tag is required in order for any pre-existing
  22. # "glut" package to be removed and replaced with freeglut when upgrading to
  23. # freeglut. Note: This package will NOT co-exist with the glut package.
  24. Provides: glut = 3.7
  25. Obsoletes: glut <= 3.7
  26. Requires(post): /sbin/ldconfig
  27. Requires(postun): /sbin/ldconfig
  28. %description
  29. freeglut is a completely open source alternative to the OpenGL Utility Toolkit
  30. (GLUT) library with an OSI approved free software license. GLUT was originally
  31. written by Mark Kilgard to support the sample programs in the second edition
  32. OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical
  33. applications because it is simple, universally available and highly portable.
  34. freeglut allows the user to create and manage windows containing OpenGL
  35. contexts on a wide range of platforms and also read the mouse, keyboard and
  36. joystick functions.
  37. %package devel
  38. Summary: freeglut developmental libraries and header files
  39. Summary(ja): freeglut の開発用ファイル
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: mesa-libGL-devel
  43. Requires: mesa-libGLU-devel
  44. Provides: glut-devel = 3.7
  45. Obsoletes: glut-devel <= 3.7
  46. %description devel
  47. Developmental libraries and header files required for developing or compiling
  48. software which links to the freeglut library, which is an open source
  49. alternative to the popular GLUT library, with an OSI approved free software
  50. license.
  51. %prep
  52. %setup -q
  53. %patch0 -p1 -b .fixld
  54. %patch1 -p1 -b .noxwarn
  55. %build
  56. %configure --disable-static --disable-warnings
  57. make %{?_smp_mflags}
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. make install DESTDIR=$RPM_BUILD_ROOT
  61. chmod 644 doc/*.{html,png}
  62. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{a,la}
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %files
  68. %defattr(-,root,root,-)
  69. %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO doc/*.png doc/*.html
  70. # don't include contents of doc/ directory as it is mostly obsolete
  71. %{_libdir}/libglut*.so.*
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %{_includedir}/GL/*.h
  75. %{_libdir}/libglut.so
  76. %changelog
  77. * Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-1
  78. - update to 2.8.0
  79. - build with mesa-9.0
  80. * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.0-2
  81. - add BuildRequires: libXi-devel
  82. - add Patch0 (freeglut-2.6.0-fixld.patch)
  83. - add Patch1 (freeglut-2.6.0-noxwarn.patch)
  84. * Sun Mar 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.0-1
  85. - new upstream release
  86. - dropt static libraries
  87. * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-6
  88. - rebuild with mesa-7.1
  89. * Thu May 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-5
  90. - new versioning policy
  91. * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4vl2
  92. - build with xorg-x11-7.3 and mesa-7.0.2
  93. * Sun Sep 03 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.0-4vl1
  94. - imported from Fedora Core 5
  95. * Tue Feb 21 2006 Karsten Hopp <karsten@redhat.de> 2.4.0-4
  96. - BuildRequires: libGLU-devel
  97. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.4.0-3.2
  98. - bump again for double-long bug on ppc(64)
  99. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.4.0-3.1
  100. - rebuilt for new gcc4.1 snapshot and glibc changes
  101. * Tue Jan 31 2006 Mike A. Harris <mharris@redhat.com> 2.4.0-3
  102. - Added "Requires: libGL-devel libGLU-devel" to fix bug (#179464)
  103. - Change file based GL header build dep to BuildRequires: libGL-devel
  104. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 2.4.0-2.1
  105. - rebuilt
  106. * Fri Nov 18 2005 Bill Nottingham <notting@redhat.com> 2.4.0-2
  107. - Remove references to obsolete /usr/X11R6 paths
  108. * Fri Sep 23 2005 Mike A. Harris <mharris@redhat.com> 2.4.0-1
  109. - Updated to freeglut-2.4.0
  110. - Removed unneeded patches:
  111. - freeglut-2.2.0-gcc4-fix-invalid-lvalue-in-assignment-cvsps-392-393.patch
  112. - Use "-p /sbin/ldconfig" in post/postun scripts instead of a separate script.
  113. * Sat Mar 5 2005 Mike A. Harris <mharris@redhat.com> 2.2.0-16
  114. - Added freeglut-2.2.0-gcc4-fix-invalid-lvalue-in-assignment-cvsps-392-393.patch
  115. to fix "invalid lvalue in assignment" bugs reported by gcc 4
  116. - Added "-Wall" to CFLAGS in specfile.
  117. * Thu Mar 3 2005 Mike A. Harris <mharris@redhat.com> 2.2.0-15
  118. - Rebuild with gcc 4 for FC4 development
  119. * Sat Aug 14 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-14
  120. - Add post and postun scripts that call ldconfig (#128413)
  121. * Fri Jun 18 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-13
  122. - Rebuilt with gcc 3.4 for FC3 development
  123. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 2.2.0-12
  124. - rebuilt
  125. * Thu Mar 18 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-11
  126. - Updated "Obsoletes: glut" to be "Obsoletes: glut <= 3.7" and
  127. "Obsoletes: glut-devel" to be "Obsoletes: glut-devel <= 3.7" as per
  128. suggestion from Matthias Saou in comment #14 of bug (#107228)
  129. * Sun Mar 7 2004 Mike A. Harris <mharris@redhat.com>
  130. - Made "glut-devel" virtual provides be "glut-devel = 3.7"
  131. * Sun Mar 7 2004 Mike A. Harris <mharris@redhat.com> 2.2.0-10
  132. - Initial Red Hat packaging created by taking the ATrpms src.rpm package from
  133. http://tinyurl.com/2goog as suggested in bugzilla bug (#107228)
  134. - Bumped the Release field to "10" so our package is newer when people
  135. upgrade to it, as requested in bug (#107228)
  136. - Removed redundant version/release macros from top of specfile
  137. - Versioned buildroot directory
  138. - Add --enable-warnings arg to ./configure script
  139. - Add HTML documentation to main package
  140. - Made "glut" virtual provides be "glut = 3.7"
  141. - Do not include *.la files
  142. * Sat Feb 21 2004 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> 2.2.0
  143. - Added glut compatibility provides.
  144. - Moved *.so to devel package.
  145. * Tue Jan 13 2004 Andy Piper <andy.piper@freeuk.com>
  146. - updated to freeglut-2.2.0
  147. - fixed library install
  148. * Fri Nov 14 2003 Andy Piper <andy.piper@freeuk.com>
  149. - updated for freeglut-2.0.1
  150. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  151. - rebuilt
  152. * Tue Jun 3 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.3
  153. - Add BuildRequires on /sbin/ldconfig
  154. - Change ldconfig call to explicit /sbin/ldconfig
  155. * Sun Jun 1 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.2
  156. - Oddly, when I build this on my workstation, it only builds static libs, but
  157. when I build it in the buildsystem it builds shared and static libs. Must
  158. be a twilight zone thing going on. Add shared libs to file lists.
  159. * Sat May 31 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.1
  160. - Added -L/usr/X11R6/%{_lib} configure script invocation and CFLAGS so lib64
  161. is treated properly on x86_64/ppc64/s390x architectures
  162. * Fri May 30 2003 Mike A. Harris <mharris@www.linux.org.uk> 1.3-0.20020125.0
  163. - Initial build.