SDL2-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. %bcond_with wayland
  2. Name: SDL2
  3. Version: 2.0.14
  4. Release: 1%{?_dist_release}
  5. Summary: A cross-platform multimedia library
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. Packager: iwaim
  10. License: zlib and MIT
  11. URL: https://www.libsdl.org/
  12. Source0: https://www.libsdl.org/release/%{name}-%{version}.tar.gz
  13. Source1: SDL_config.h
  14. Patch0: multilib.patch
  15. BuildRequires: alsa-lib-devel
  16. #BuildRequires: audiofile-devel
  17. BuildRequires: mesa-libGL-devel
  18. BuildRequires: mesa-libGLU-devel
  19. BuildRequires: mesa-libEGL-devel
  20. BuildRequires: mesa-libGLES-devel
  21. BuildRequires: libXext-devel
  22. BuildRequires: libX11-devel
  23. BuildRequires: libXi-devel
  24. BuildRequires: libXrandr-devel
  25. BuildRequires: libXrender-devel
  26. BuildRequires: dbus-devel
  27. BuildRequires: libXScrnSaver-devel
  28. BuildRequires: libusb-devel
  29. BuildRequires: pulseaudio-libs-devel
  30. BuildRequires: libXinerama-devel
  31. BuildRequires: libXcursor-devel
  32. # Wayland
  33. %if %{with wayland}
  34. BuildRequires: libwayland-client-devel
  35. BuildRequires: libwayland-egl-devel
  36. BuildRequires: libwayland-cursor-devel
  37. %endif
  38. BuildRequires: libxkbcommon-devel
  39. %description
  40. Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
  41. to provide fast access to the graphics frame buffer and audio device.
  42. %package devel
  43. Summary: Files needed to develop Simple DirectMedia Layer applications
  44. Group: programming
  45. Requires: %{name}%{?_isa} = %{version}-%{release}
  46. Requires: alsa-lib-devel
  47. Requires: mesa-libGL-devel
  48. Requires: mesa-libGLU-devel
  49. Requires: mesa-libEGL-devel
  50. Requires: mesa-libGLES-devel
  51. Requires: libX11-devel
  52. Requires: libXi-devel
  53. Requires: libXext-devel
  54. Requires: libXrandr-devel
  55. Requires: libXrender-devel
  56. Requires: libXScrnSaver-devel
  57. Requires: libXinerama-devel
  58. Requires: libXcursor-devel
  59. %if %{with wayland}
  60. # Wayland
  61. Requires: libwayland-client-devel
  62. Requires: libwayland-egl-devel
  63. Requires: libwayland-cursor-devel
  64. %endif
  65. Requires: libxkbcommon-devel
  66. %description devel
  67. Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
  68. to provide fast access to the graphics frame buffer and audio device. This
  69. package provides the libraries, include files, and other resources needed for
  70. developing SDL applications.
  71. %debug_package
  72. %prep
  73. %setup -q
  74. #%patch0 -p1 -b .multilib
  75. # Compilation without ESD
  76. sed -i -e 's/.*AM_PATH_ESD.*//' configure.ac
  77. sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt
  78. %build
  79. %configure \
  80. --enable-sdl-dlopen \
  81. --disable-arts \
  82. --disable-esd \
  83. --disable-nas \
  84. --enable-pulseaudio-shared \
  85. --enable-alsa \
  86. %if %{with wayland}
  87. --enable-video-wayland \
  88. %endif
  89. --disable-rpath
  90. make %{?_smp_mflags}
  91. %install
  92. %make_install
  93. # Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
  94. # multilib systems and install SDL_config.h wrapper
  95. mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/SDL_config-%{_arch}.h
  96. install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h
  97. # remove libtool .la file
  98. rm -f %{buildroot}%{_libdir}/*.la
  99. # remove static .a file
  100. rm -f %{buildroot}%{_libdir}/*.a
  101. %post -p /sbin/ldconfig
  102. %postun -p /sbin/ldconfig
  103. %files
  104. %license COPYING.txt
  105. %doc BUGS.txt CREDITS.txt README-SDL.txt
  106. %{_libdir}/lib*.so.*
  107. %files devel
  108. %doc README.txt TODO.txt WhatsNew.txt
  109. %{_bindir}/*-config
  110. %{_libdir}/lib*.so
  111. %{_libdir}/pkgconfig/sdl2.pc
  112. %dir %{_libdir}/cmake/SDL2
  113. %{_libdir}/cmake/SDL2/sdl2-config.cmake
  114. %{_libdir}/cmake/SDL2/sdl2-config-version.cmake
  115. %{_includedir}/SDL2
  116. %{_datadir}/aclocal/*
  117. %changelog
  118. * Mon Feb 01 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.14-1
  119. - new upstream release.
  120. * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.12-1
  121. - new upstream release.
  122. * Wed May 23 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.8-1
  123. - update to 2.0.8
  124. * Sat Apr 15 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.5-1
  125. - initial build for Vine Linux
  126. * Wed Nov 18 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-9
  127. - Use bcond instead
  128. * Tue Aug 11 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-8
  129. - Remove wayland support for Requires.
  130. * Thu Aug 06 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-7
  131. - Remove wayland support.
  132. * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  134. * Tue Jun 2 2015 Tom Callaway <spot@fedoraproject.org> - 2.0.3-5
  135. - remove code preventing builds with ancient gcc
  136. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4
  137. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  138. * Wed Jun 11 2014 Karsten Hopp <karsten@redhat.com> 2.0.3-3
  139. - fix filename of SDL_config.h for ppc64le
  140. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
  141. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  142. * Wed Mar 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1
  143. - 2.0.3 upstream release
  144. * Sat Mar 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
  145. - 2.0.2 upstream release
  146. - Enable wayland backend
  147. * Tue Dec 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-2
  148. - Add libXinerama, libudev, libXcursor support (RHBZ #1039702)
  149. * Thu Oct 24 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.1-1
  150. - update to 2.0.1
  151. * Sat Aug 24 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
  152. - Fix multilib issues
  153. * Tue Aug 13 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
  154. - SDL2 is released. Announce:
  155. - http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html
  156. * Sat Aug 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc4
  157. - Update to latest SDL2 (08.08.2013)
  158. * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc3
  159. - Fix Licenses
  160. - some cleanups in spec
  161. * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc2
  162. - Delete -static package
  163. - Fix License tag
  164. - Fix end-of-line in documents
  165. - Remove all spike-nails EL-specify (if someone will want to do - 'patches are welcome')
  166. - Change Release tag to .rcX%%{?dist} (maintainer has changed released tarballs)
  167. * Mon Jul 29 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc1
  168. - Some fixes in spec and cleanup
  169. * Mon Jul 29 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.0-1
  170. - Ported from SDL 1.2.15-10