SDL2-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. %bcond_with wayland
  2. Name: SDL2
  3. Version: 2.0.12
  4. Release: 1%{?_dist_release}
  5. Summary: A cross-platform multimedia library
  6. Group: System Environment/Libraries
  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: Development/Libraries
  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. %prep
  72. %setup -q
  73. #%patch0 -p1 -b .multilib
  74. # Compilation without ESD
  75. sed -i -e 's/.*AM_PATH_ESD.*//' configure.ac
  76. sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt
  77. %build
  78. %configure \
  79. --enable-sdl-dlopen \
  80. --disable-arts \
  81. --disable-esd \
  82. --disable-nas \
  83. --enable-pulseaudio-shared \
  84. --enable-alsa \
  85. %if %{with wayland}
  86. --enable-video-wayland \
  87. %endif
  88. --disable-rpath
  89. make %{?_smp_mflags}
  90. %install
  91. %make_install
  92. # Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
  93. # multilib systems and install SDL_config.h wrapper
  94. mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/SDL_config-%{_arch}.h
  95. install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h
  96. # remove libtool .la file
  97. rm -f %{buildroot}%{_libdir}/*.la
  98. # remove static .a file
  99. rm -f %{buildroot}%{_libdir}/*.a
  100. %post -p /sbin/ldconfig
  101. %postun -p /sbin/ldconfig
  102. %files
  103. %license COPYING.txt
  104. %doc BUGS.txt CREDITS.txt README-SDL.txt
  105. %{_libdir}/lib*.so.*
  106. %files devel
  107. %doc README.txt TODO.txt WhatsNew.txt
  108. %{_bindir}/*-config
  109. %{_libdir}/lib*.so
  110. %{_libdir}/pkgconfig/sdl2.pc
  111. %dir %{_libdir}/cmake/SDL2
  112. %{_libdir}/cmake/SDL2/sdl2-config.cmake
  113. %{_libdir}/cmake/SDL2/sdl2-config-version.cmake
  114. %{_includedir}/SDL2
  115. %{_datadir}/aclocal/*
  116. %changelog
  117. * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.12-1
  118. - new upstream release.
  119. * Wed May 23 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.8-1
  120. - update to 2.0.8
  121. * Sat Apr 15 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.5-1
  122. - initial build for Vine Linux
  123. * Wed Nov 18 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-9
  124. - Use bcond instead
  125. * Tue Aug 11 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-8
  126. - Remove wayland support for Requires.
  127. * Thu Aug 06 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-7
  128. - Remove wayland support.
  129. * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6
  130. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  131. * Tue Jun 2 2015 Tom Callaway <spot@fedoraproject.org> - 2.0.3-5
  132. - remove code preventing builds with ancient gcc
  133. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4
  134. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  135. * Wed Jun 11 2014 Karsten Hopp <karsten@redhat.com> 2.0.3-3
  136. - fix filename of SDL_config.h for ppc64le
  137. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
  138. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  139. * Wed Mar 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1
  140. - 2.0.3 upstream release
  141. * Sat Mar 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
  142. - 2.0.2 upstream release
  143. - Enable wayland backend
  144. * Tue Dec 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-2
  145. - Add libXinerama, libudev, libXcursor support (RHBZ #1039702)
  146. * Thu Oct 24 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.1-1
  147. - update to 2.0.1
  148. * Sat Aug 24 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
  149. - Fix multilib issues
  150. * Tue Aug 13 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
  151. - SDL2 is released. Announce:
  152. - http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html
  153. * Sat Aug 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc4
  154. - Update to latest SDL2 (08.08.2013)
  155. * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc3
  156. - Fix Licenses
  157. - some cleanups in spec
  158. * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc2
  159. - Delete -static package
  160. - Fix License tag
  161. - Fix end-of-line in documents
  162. - Remove all spike-nails EL-specify (if someone will want to do - 'patches are welcome')
  163. - Change Release tag to .rcX%%{?dist} (maintainer has changed released tarballs)
  164. * Mon Jul 29 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc1
  165. - Some fixes in spec and cleanup
  166. * Mon Jul 29 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.0-1
  167. - Ported from SDL 1.2.15-10