plib-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %define name plib
  2. %define version 1.8.4
  3. %define release 1%{?_dist_release}
  4. Summary: Set of portable libraries especially useful for games
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Source: http://plib.sourceforge.net/dist/%{name}-%{version}.tar.gz
  9. ### from OpenSuse
  10. Patch0: plib-1.8.4-type.diff
  11. Patch1: plib-1.8.4-joystick.diff
  12. Patch2: plib-1.8.4-shared.diff
  13. Patch3: plib-1.8.4-extraqual.diff
  14. ###
  15. License: LGPL
  16. Group: System Environment/Libraries
  17. URL: http://plib.sourceforge.net
  18. #Requires:
  19. #BuildRequires: XOrg-devel, XOrg-gl-devel
  20. BuildRequires: xorg-x11-devel, mesa-libGL-devel
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. %description
  23. This is a set of OpenSource (LGPL) libraries that will permit programmers
  24. to write games and other realtime interactive applications that are 100%
  25. portable across a wide range of hardware and operating systems. Here is
  26. what you need - it's all free and available with LGPL'ed source code on
  27. the web. All of it works well together.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. #Requires: XOrg-gl-devel
  33. Requires: mesa-libGL-devel
  34. %description devel
  35. This package contains the header files and libraries needed to write
  36. or compile programs that use plib.
  37. %prep
  38. rm -rf ${RPM_BUILD_ROOT}
  39. %setup -q
  40. %patch0
  41. %patch1
  42. %patch2
  43. %patch3 -p1
  44. %build
  45. libtoolize --force
  46. aclocal --force
  47. automake -acf
  48. autoconf --force
  49. %configure CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DXF86VIDMODE"
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make DESTDIR=$RPM_BUILD_ROOT install
  54. libtool --finish $RPM_BUILD_ROOT%{_libdir}
  55. ## remove unuse files
  56. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  57. %clean
  58. rm -rf ${RPM_BUILD_ROOT}
  59. %post -p /sbin/ldconfig
  60. %postun -p /sbin/ldconfig
  61. %files
  62. %defattr(-,root,root)
  63. %doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS
  64. %doc NEWS NOTICE README README.GLUT TODO-1.6 TODO-2.0 TODO_AFTER135
  65. %{_libdir}/*.so.*
  66. %files devel
  67. %defattr(-,root,root)
  68. %{_includedir}/plib
  69. %{_libdir}/*.so
  70. #%{_libdir}/*.*a
  71. %{_libdir}/*.a
  72. %changelog
  73. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.8.4-1vl5
  74. - applied new versioning policy
  75. - removed *.la
  76. * Sat Feb 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.8.4-0vl2
  77. - rebuild for VineSeed
  78. * Sun Aug 5 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.8.4-0vl1
  79. - initial build for Vine Linux 4.1
  80. # * Sat Oct 22 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.8.4-0vl1
  81. # - initial build for Vine Linux 3.2
  82. * Wed May 23 2007 prusnak@suse.cz
  83. - move devel files to plib-devel subpackage
  84. * Wed Jan 25 2006 mls@suse.de
  85. - converted neededforbuild to BuildRequires
  86. * Thu Oct 20 2005 mmj@suse.de
  87. - remove extra qualification
  88. * Fri Feb 25 2005 ro@suse.de
  89. - fix filelist (packing complete /usr/lib is not possible)
  90. * Wed Feb 23 2005 mjancar@suse.cz
  91. - build shared libraries (needed by torcs)
  92. * Wed Feb 2 2005 mjancar@suse.cz
  93. - update to 1.8.4 (needed by FlightGear)
  94. * Fri Aug 13 2004 mjancar@suse.cz
  95. - update to 1.8.3
  96. * Sat Jan 10 2004 adrian@suse.de
  97. - add %%defattr
  98. * Mon Oct 13 2003 ro@suse.de
  99. - remove explicit requires for mesa
  100. * Thu Jul 31 2003 mjancar@suse.cz
  101. - use %%run_ldconfig
  102. * Tue Dec 10 2002 prehak@suse.cz
  103. - fixed brace-enclosed initialization (due to gcc-3.3)
  104. * Thu Oct 24 2002 prehak@suse.cz
  105. - updated to version 1.6.0
  106. * Wed Aug 21 2002 nadvornik@suse.cz
  107. - use RPM_OPT_FLAGS instead of -O6
  108. * Thu Jan 10 2002 rvasice@suse.cz
  109. - use %%{_libdir}
  110. * Fri Nov 9 2001 rvasice@suse.cz
  111. - fix to compile with new automake
  112. * Thu Nov 8 2001 ro@suse.de
  113. - use mesa-devel-packages in neededforbuild
  114. * Thu Jul 26 2001 rvasice@suse.cz
  115. - update to version 1.4.2
  116. * Fri Jul 13 2001 rvasice@suse.cz
  117. - update to version 1.4.1
  118. * Mon Jun 4 2001 rvasice@suse.cz
  119. - spec file cleanup
  120. - bzip2 sources
  121. * Thu Mar 15 2001 ro@suse.de
  122. - changed neededforbuild <mesaglu> to <xf86glu>
  123. - changed neededforbuild <mesaglu-devel> to <xf86glu-devel>
  124. * Tue Mar 13 2001 ro@suse.de
  125. - added mesaglut
  126. * Fri Mar 9 2001 ro@suse.de
  127. - added mesaglu
  128. * Wed Mar 7 2001 ro@suse.de
  129. - changed neededforbuild <mesadev> to <mesa-devel>
  130. - added xf86 to neededforbuild
  131. * Fri Feb 9 2001 ro@suse.de
  132. - include float.h in sg.h
  133. * Mon Aug 7 2000 smid@suse.cz
  134. - upgrade to 1.2.0
  135. * Mon May 22 2000 smid@suse.cz
  136. - mesadev added to neededforbuild
  137. * Thu May 4 2000 smid@suse.cz
  138. - upgrade to 1.1.11
  139. * Fri Apr 21 2000 smid@suse.cz
  140. - buildroot added
  141. * Thu Feb 17 2000 grimmer@suse.de
  142. - added URL to spec file
  143. - use full URL to source package
  144. - use version macro
  145. * Tue Dec 28 1999 sndirsch@suse.de
  146. - updated to version 1.0.20
  147. * Mon Sep 13 1999 bs@suse.de
  148. - ran old prepare_spec on spec file to switch to new prepare_spec.
  149. * Wed Aug 18 1999 sndirsch@suse.de
  150. - update to version 1.0.16
  151. * Wed Jul 7 1999 grimmer@suse.de
  152. - initial package created (Version 1.0.12)