SDL2_mixer-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. %define ver 2.0.2
  2. %define rel 1
  3. Name: SDL2_mixer
  4. Version: %{ver}
  5. Release: %{rel}%{?_dist_release}
  6. Summary: Simple DirectMedia Layer - Sample Mixer Library
  7. Group: System Environment/Libraries
  8. License: zlib
  9. URL: http://www.libsdl.org/projects/SDL_mixer/
  10. Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
  11. BuildRequires: SDL2-devel
  12. BuildRequires: libvorbis-devel
  13. BuildRequires: flac-devel
  14. BuildRequires: chrpath
  15. BuildRequires: libmodplug-devel
  16. BuildRequires: fluidsynth-devel
  17. BuildRequires: libmikmod-devel
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: iwaim
  21. %description
  22. SDL_mixer is a sample multi-channel audio mixer library.
  23. It supports any number of simultaneously playing channels of 16 bit stereo
  24. audio, plus a single channel of music, mixed by the popular FLAC,
  25. MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
  26. %package devel
  27. Summary: Development files for %{name}
  28. Group: Development/Libraries
  29. Requires: %{name}%{?_isa} = %{version}-%{release}
  30. Requires: SDL2-devel
  31. Requires: libvorbis-devel
  32. %description devel
  33. The %{name}-devel package contains libraries and header files for
  34. developing applications that use %{name}.
  35. %prep
  36. %autosetup -p1
  37. sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt
  38. rm -rf external/
  39. %build
  40. %configure --disable-dependency-tracking \
  41. --disable-static
  42. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  43. %make_build
  44. %install
  45. %make_install install-bin
  46. for i in playmus playwave
  47. do
  48. chrpath -d %{buildroot}%{_bindir}/${i}
  49. mv %{buildroot}%{_bindir}/${i} %{buildroot}%{_bindir}/${i}2
  50. done
  51. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %license COPYING.txt
  56. %doc CHANGES.txt
  57. %{_bindir}/playmus2
  58. %{_bindir}/playwave2
  59. %{_libdir}/lib*.so.*
  60. %files devel
  61. %doc README.txt
  62. %{_libdir}/lib*.so
  63. %{_libdir}/pkgconfig/%{name}.pc
  64. %{_includedir}/SDL2/*
  65. %changelog
  66. * Wed May 23 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.2-1
  67. - update to 2.0.2
  68. * Sun Apr 16 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.1-1
  69. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  71. * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1
  72. - Update to 2.0.1 (RHBZ #1296752)
  73. * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  75. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  77. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  79. * Thu May 01 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-5
  80. - Fix FTBFS with autoreconf
  81. * Thu May 01 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-4
  82. - Add patch for properly include modplug (RHBZ #1093378)
  83. * Wed Nov 20 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
  84. - Add some BuildRequires (cicku)
  85. - Delete pkgconfig from -devel subpackage (cicku)
  86. - Removing external folder in prep section (ignatenkobrain)
  87. - Fix license to correct zlib (cicku & ignatenkobrain)
  88. * Mon Nov 18 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
  89. - Update for review
  90. * Sat Sep 7 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1
  91. - Based on SDL_mixer