SDL2.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Summary: Simple DirectMedia Layer
  2. Name: SDL2
  3. Version: 2.0.3
  4. Release: 1
  5. Source: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
  6. URL: http://www.libsdl.org/
  7. License: zlib
  8. Group: System Environment/Libraries
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  10. Prefix: %{_prefix}
  11. %ifos linux
  12. Provides: libSDL2-2.0.so.0
  13. %endif
  14. %define __defattr %defattr(-,root,root)
  15. %define __soext so
  16. %description
  17. This is the Simple DirectMedia Layer, a generic API that provides low
  18. level access to audio, keyboard, mouse, and display framebuffer across
  19. multiple platforms.
  20. %package devel
  21. Summary: Libraries, includes and more to develop SDL applications.
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}
  24. %description devel
  25. This is the Simple DirectMedia Layer, a generic API that provides low
  26. level access to audio, keyboard, mouse, and display framebuffer across
  27. multiple platforms.
  28. This is the libraries, include files and other resources you can use
  29. to develop SDL applications.
  30. %prep
  31. %setup -q
  32. %build
  33. %ifos linux
  34. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-video-directfb
  35. %else
  36. %configure
  37. %endif
  38. make
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. %ifos linux
  42. make install prefix=$RPM_BUILD_ROOT%{prefix} \
  43. bindir=$RPM_BUILD_ROOT%{_bindir} \
  44. libdir=$RPM_BUILD_ROOT%{_libdir} \
  45. includedir=$RPM_BUILD_ROOT%{_includedir} \
  46. datadir=$RPM_BUILD_ROOT%{_datadir} \
  47. mandir=$RPM_BUILD_ROOT%{_mandir}
  48. %else
  49. %makeinstall
  50. %endif
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files
  54. %{__defattr}
  55. %doc README-SDL.txt COPYING.txt CREDITS.txt BUGS.txt
  56. %{_libdir}/lib*.%{__soext}.*
  57. %files devel
  58. %{__defattr}
  59. %doc README README-SDL.txt COPYING CREDITS BUGS WhatsNew
  60. %{_bindir}/*-config
  61. %{_libdir}/lib*.a
  62. %{_libdir}/lib*.la
  63. %{_libdir}/lib*.%{__soext}
  64. %{_includedir}/*/*.h
  65. %{_libdir}/pkgconfig/*
  66. %{_datadir}/aclocal/*
  67. %changelog
  68. * Sun Jan 22 2012 Sam Lantinga <slouken@libsdl.org>
  69. - Updated for SDL 2.0
  70. * Tue May 16 2006 Sam Lantinga <slouken@libsdl.org>
  71. - Removed support for Darwin, due to build problems on ps2linux
  72. * Mon Jan 03 2004 Anders Bjorklund <afb@algonet.se>
  73. - Added support for Darwin, updated spec file
  74. * Wed Jan 19 2000 Sam Lantinga <slouken@libsdl.org>
  75. - Re-integrated spec file into SDL distribution
  76. - 'name' and 'version' come from configure
  77. - Some of the documentation is devel specific
  78. - Removed SMP support from %build - it doesn't work with libtool anyway
  79. * Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
  80. - Hacked Mandrake sdl spec to build 1.1
  81. * Sun Dec 19 1999 John Buswell <johnb@mandrakesoft.com>
  82. - Build Release
  83. * Sat Dec 18 1999 John Buswell <johnb@mandrakesoft.com>
  84. - Add symlink for libSDL-1.0.so.0 required by sdlbomber
  85. - Added docs
  86. * Thu Dec 09 1999 Lenny Cartier <lenny@mandrakesoft.com>
  87. - v 1.0.0
  88. * Mon Nov 1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
  89. - First spec file for Mandrake distribution.
  90. # end of file