SDL2_mixer.spec 3.3 KB

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