soundtouch-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Name: soundtouch
  2. Version: 1.7.1
  3. Release: 1%{?_dist_release}
  4. Summary: Audio Processing library for changing Tempo, Pitch and Playback Rates
  5. Summary(ja): テンポ/ピッチ/再生レートを変更するためのオーディオプロセッシングライブラリー
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://www.surina.net/soundtouch/
  9. Source0: http://www.surina.net/soundtouch/%{name}-%{version}.tar.gz
  10. #Patch0: soundtouch-1.4.0-x86_64-asm-broken.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: gcc-c++
  13. %description
  14. SoundTouch is a LGPL-licensed open-source audio processing library for
  15. changing the Tempo, Pitch and Playback Rates of audio streams or
  16. files. The SoundTouch library is suited for application developers
  17. writing sound processing tools that require tempo/pitch control
  18. functionality, or just for playing around with the sound effects.
  19. The SoundTouch library source kit includes an example utility
  20. SoundStretch which allows processing .wav audio files from a
  21. command-line interface.
  22. %package devel
  23. Summary: Libraries, headers and etc to develop soundtouch applications
  24. Summary(ja): soundtouch アプリケーションを開発するためのライブラリー/ヘッダー等
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: pkgconfig
  28. %description devel
  29. Libraries, include files, etc you can use to develop soundtouch applications.
  30. %prep
  31. %setup -q -n %{name}
  32. #%patch0 -p1
  33. sed -i 's|-O3||' source/SoundStretch/Makefile.*
  34. sed -i 's|\r||g' README.html source/SoundTouch/RateTransposer.cpp
  35. %build
  36. ./bootstrap
  37. %configure --disable-dependency-tracking --disable-static --enable-shared
  38. # Don't use rpath!
  39. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  40. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  46. # remove redundant installed docs
  47. rm -rf $RPM_BUILD_ROOT%{_prefix}/doc/%{name}
  48. # pkgconfig compat links for compat with older (API compatible) releases
  49. # dunno why upstream keeps changing the pkgconfig name
  50. #ln -s soundtouch-1.4.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libSoundTouch.pc
  51. #ln -s soundtouch-1.4.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/soundtouch-1.0.pc
  52. # soundtouch installs an autoheader generated header file which could very
  53. # well conflict with other autoheader generated header files, so we override
  54. # this with our own version which contains only the bare minimum:
  55. echo '#define FLOAT_SAMPLES 1' \
  56. > $RPM_BUILD_ROOT%{_includedir}/soundtouch/soundtouch_config.h
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %post -p /sbin/ldconfig
  60. %postun -p /sbin/ldconfig
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc COPYING.TXT README.html
  64. %{_bindir}/soundstretch
  65. %{_libdir}/lib*.so.*
  66. %files devel
  67. %defattr(-,root,root,-)
  68. %{_libdir}/lib*.so
  69. %{_libdir}/pkgconfig/*.pc
  70. %{_includedir}/%{name}
  71. %{_datadir}/aclocal/%{name}.m4
  72. %changelog
  73. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.1-1
  74. - new upstream release
  75. * Fri Sep 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-1
  76. - new upstream release
  77. - deleted Patch0
  78. * Fri Jun 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.0-1
  79. - initial build for VineSeed
  80. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  82. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  86. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  88. * Sat Feb 14 2009 Hans de Goede <hdegoede@redhat.com> 1.4.0-1
  89. - New upstream release 1.4.0
  90. * Sat Dec 20 2008 Hans de Goede <hdegoede@redhat.com> 1.3.1-11
  91. - Fix compilation with libtool 2.x
  92. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-10
  93. - Autorebuild for GCC 4.3
  94. * Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-9
  95. - Fix compilation with gcc 4.3
  96. * Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-8
  97. - Rebuild for buildId
  98. - Update license tag for new license guidelines compliance
  99. * Mon Feb 19 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-7
  100. - Fix building with automake-1.10
  101. * Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-6
  102. - FE6 Rebuild
  103. * Wed Aug 2 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-5
  104. - Patch makefiles so that our RPM_OPT_FLAGS get used instead of the custom
  105. upstream CFLAGS.
  106. * Mon Jul 31 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-4
  107. - Add Requires: pkgconfig to -devel subpackage
  108. - Replace installed autoheader generated header file with our own version
  109. which contains only the nescesarry soundtouch specific defines, thus avoiding
  110. possible conflicts with other autoheader generated headers.
  111. * Mon Jul 31 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.3.1-3
  112. - Add BR libtool
  113. * Mon Jul 31 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-2
  114. - Add BR: automake, because upstream uses symlinks to instead of copies of some
  115. needed automake files.
  116. * Sat Jul 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-1
  117. - New upstream version 1.3.1
  118. - Minor specfile cleanups for livna submission.
  119. - Give the .so a proper version instead of 0.0.0
  120. - Don't use rpath in soundstretch binary
  121. * Thu Aug 26 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.2.1-1
  122. - initial build.