libsamplerate-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Audio Sample Rate Converter library
  3. Summary(ja): 音声サンプリングレート変換ライブラリ
  4. Name: libsamplerate
  5. Version: 0.1.7
  6. Release: 1%{?_dist_release}
  7. Source0: %{name}-%{version}.tar.gz
  8. URL: http://www.mega-nerd.com/SRC/index.html
  9. License: GPLv2
  10. Group: System Environment/Libraries
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libsndfile-devel >= 1.0.6
  13. %description
  14. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  15. audio. One example of where such a thing would be useful is
  16. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  17. sample rate used by DAT players.
  18. SRC is capable of arbitrary and time varying conversions ; from
  19. downsampling by a factor of 12 to upsampling by the same
  20. factor. Arbitrary in this case means that the ratio of input and
  21. output sample rates can be an irrational number. The conversion ratio
  22. can also vary with time for speeding up and slowing down effects.
  23. SRC provides a small set of converters to allow quality to be traded
  24. off against computation cost. The current best converter provides a
  25. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  26. 96% of the theoretical best bandwidth for a given pair of input and
  27. output sample rates.
  28. %package devel
  29. Summary: Audio Sample Rate Converter development files
  30. Summary(ja): 音声サンプリングレート変換ライブラリの開発用ファイル
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description devel
  35. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  36. audio. One example of where such a thing would be useful is
  37. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  38. sample rate used by DAT players.
  39. SRC is capable of arbitrary and time varying conversions ; from
  40. downsampling by a factor of 12 to upsampling by the same
  41. factor. Arbitrary in this case means that the ratio of input and
  42. output sample rates can be an irrational number. The conversion ratio
  43. can also vary with time for speeding up and slowing down effects.
  44. SRC provides a small set of converters to allow quality to be traded
  45. off against computation cost. The current best converter provides a
  46. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  47. 96% of the theoretical best bandwidth for a given pair of input and
  48. output sample rates.
  49. %package progs
  50. Summary: Audio Sample Rate Converter
  51. Summary(ja): 音楽サンプリングレート変換ツール
  52. Group: Applications/Multimedia
  53. Requires: %{name} = %{version}
  54. %description progs
  55. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  56. audio. One example of where such a thing would be useful is
  57. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  58. sample rate used by DAT players.
  59. SRC is capable of arbitrary and time varying conversions ; from
  60. downsampling by a factor of 12 to upsampling by the same
  61. factor. Arbitrary in this case means that the ratio of input and
  62. output sample rates can be an irrational number. The conversion ratio
  63. can also vary with time for speeding up and slowing down effects.
  64. SRC provides a small set of converters to allow quality to be traded
  65. off against computation cost. The current best converter provides a
  66. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  67. 96% of the theoretical best bandwidth for a given pair of input and
  68. output sample rates.
  69. # compat32
  70. %package -n compat32-%{name}
  71. Summary: Audio Sample Rate Converter library
  72. Summary(ja): 音声サンプリングレート変換ライブラリ
  73. Group: System Environment/Libraries
  74. %description -n compat32-%{name}
  75. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  76. audio. One example of where such a thing would be useful is
  77. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  78. sample rate used by DAT players.
  79. SRC is capable of arbitrary and time varying conversions ; from
  80. downsampling by a factor of 12 to upsampling by the same
  81. factor. Arbitrary in this case means that the ratio of input and
  82. output sample rates can be an irrational number. The conversion ratio
  83. can also vary with time for speeding up and slowing down effects.
  84. SRC provides a small set of converters to allow quality to be traded
  85. off against computation cost. The current best converter provides a
  86. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  87. 96% of the theoretical best bandwidth for a given pair of input and
  88. output sample rates.
  89. %package -n compat32-%{name}-devel
  90. Summary: Audio Sample Rate Converter development files
  91. Summary(ja): 音声サンプリングレート変換ライブラリの開発用ファイル
  92. Group: Development/Libraries
  93. Requires: compat32-%{name} = %{version}-%{release}
  94. Requires: %{name}-devel = %{version}-%{release}
  95. %description -n compat32-%{name}-devel
  96. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  97. audio. One example of where such a thing would be useful is
  98. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  99. sample rate used by DAT players.
  100. SRC is capable of arbitrary and time varying conversions ; from
  101. downsampling by a factor of 12 to upsampling by the same
  102. factor. Arbitrary in this case means that the ratio of input and
  103. output sample rates can be an irrational number. The conversion ratio
  104. can also vary with time for speeding up and slowing down effects.
  105. SRC provides a small set of converters to allow quality to be traded
  106. off against computation cost. The current best converter provides a
  107. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  108. 96% of the theoretical best bandwidth for a given pair of input and
  109. output sample rates.
  110. %prep
  111. %setup -q
  112. %build
  113. %configure
  114. make
  115. %install
  116. rm -rf $RPM_BUILD_ROOT
  117. %makeinstall
  118. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
  119. %clean
  120. rm -rf $RPM_BUILD_ROOT
  121. %post -p /sbin/ldconfig
  122. %postun -p /sbin/ldconfig
  123. %post -n compat32-%{name} -p /sbin/ldconfig
  124. %postun -n compat32-%{name} -p /sbin/ldconfig
  125. %files
  126. %defattr(-,root,root)
  127. %doc AUTHORS ChangeLog COPYING NEWS README
  128. %doc doc/*.html doc/SRC.*
  129. %{_libdir}/*.so.*
  130. %files devel
  131. %defattr(-,root,root)
  132. %{_libdir}/*.so
  133. %{_libdir}/pkgconfig/samplerate.pc
  134. %{_includedir}/samplerate.h
  135. %files progs
  136. %defattr(-,root,root)
  137. %{_bindir}/sndfile-resample
  138. # compat32
  139. %if %{build_compat32}
  140. %files -n compat32-%{name}
  141. %defattr(-,root,root)
  142. %{_libdir}/*.so.*
  143. %files -n compat32-%{name}-devel
  144. %defattr(-,root,root)
  145. %{_libdir}/*.so
  146. %{_libdir}/pkgconfig/samplerate.pc
  147. %endif
  148. %changelog
  149. * Sat Jan 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.7-1
  150. - new upstream release
  151. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.1.4-3
  152. - added compat32 package for x86_64 arch support
  153. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-2
  154. - spec in utf-8
  155. - remove static lib
  156. * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.4-1
  157. - new upstream release
  158. - applied new versioning policy
  159. - removed lib*.la files from devel package
  160. * Mon May 01 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl2
  161. - rebuilt with libsndfile for VineSeed Plus
  162. * Wed Feb 08 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 0.1.2-0vl0.1
  163. - rebuild for VinePlus/3.0
  164. - added BuildRequires: libsndfile-devel to progs subpackage
  165. - fixed %%doc section
  166. * Wed Sep 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl1
  167. - new upstream release
  168. - fixed %doc section
  169. - fixed spec file encoding
  170. * Tue Apr 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.0-0vl1
  171. - initial build for Vine Linux