🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
3.0 KiB

  1. Summary: Simple DirectMedia Layer
  2. Name: SDL2
  3. Version: 2.0.22
  4. Release: 2
  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*.txt LICENSE.txt CREDITS.txt BUGS.txt
  56. %{_libdir}/lib*.%{__soext}.*
  57. %files devel
  58. %{__defattr}
  59. %doc docs/README*.md
  60. %{_bindir}/*-config
  61. %{_libdir}/lib*.a
  62. %{_libdir}/lib*.la
  63. %{_libdir}/lib*.%{__soext}
  64. %{_includedir}/*/*.h
  65. %{_libdir}/cmake/*
  66. %{_libdir}/pkgconfig/SDL2/*
  67. %{_datadir}/aclocal/*
  68. %changelog
  69. * Thu Jun 04 2015 Ryan C. Gordon <icculus@icculus.org>
  70. - Fixed README paths.
  71. * Sun Dec 07 2014 Simone Contini <s.contini@oltrelinux.com>
  72. - Fixed changelog date issue and docs filenames
  73. * Sun Jan 22 2012 Sam Lantinga <slouken@libsdl.org>
  74. - Updated for SDL 2.0
  75. * Tue May 16 2006 Sam Lantinga <slouken@libsdl.org>
  76. - Removed support for Darwin, due to build problems on ps2linux
  77. * Sat Jan 03 2004 Anders Bjorklund <afb@algonet.se>
  78. - Added support for Darwin, updated spec file
  79. * Wed Jan 19 2000 Sam Lantinga <slouken@libsdl.org>
  80. - Re-integrated spec file into SDL distribution
  81. - 'name' and 'version' come from configure
  82. - Some of the documentation is devel specific
  83. - Removed SMP support from %build - it doesn't work with libtool anyway
  84. * Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
  85. - Hacked Mandrake sdl spec to build 1.1
  86. * Sun Dec 19 1999 John Buswell <johnb@mandrakesoft.com>
  87. - Build Release
  88. * Sat Dec 18 1999 John Buswell <johnb@mandrakesoft.com>
  89. - Add symlink for libSDL-1.0.so.0 required by sdlbomber
  90. - Added docs
  91. * Thu Dec 09 1999 Lenny Cartier <lenny@mandrakesoft.com>
  92. - v 1.0.0
  93. * Mon Nov 1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
  94. - First spec file for Mandrake distribution.
  95. # end of file