libsamplerate-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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.8
  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. %package docs
  70. Summary: Documentation for %{name}
  71. Summary(ja): %{name} 用のドキュメント
  72. Group: Documentation
  73. Requires: %{name} = %{version}-%{release}
  74. BuildArch: noarch
  75. %description docs
  76. This package contains documentation for %{name}.
  77. # compat32
  78. %package -n compat32-%{name}
  79. Summary: Audio Sample Rate Converter library
  80. Summary(ja): 音声サンプリングレート変換ライブラリ
  81. Group: System Environment/Libraries
  82. %description -n compat32-%{name}
  83. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  84. audio. One example of where such a thing would be useful is
  85. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  86. sample rate used by DAT players.
  87. SRC is capable of arbitrary and time varying conversions ; from
  88. downsampling by a factor of 12 to upsampling by the same
  89. factor. Arbitrary in this case means that the ratio of input and
  90. output sample rates can be an irrational number. The conversion ratio
  91. can also vary with time for speeding up and slowing down effects.
  92. SRC provides a small set of converters to allow quality to be traded
  93. off against computation cost. The current best converter provides a
  94. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  95. 96% of the theoretical best bandwidth for a given pair of input and
  96. output sample rates.
  97. %package -n compat32-%{name}-devel
  98. Summary: Audio Sample Rate Converter development files
  99. Summary(ja): 音声サンプリングレート変換ライブラリの開発用ファイル
  100. Group: Development/Libraries
  101. Requires: compat32-%{name} = %{version}-%{release}
  102. Requires: %{name}-devel = %{version}-%{release}
  103. %description -n compat32-%{name}-devel
  104. Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
  105. audio. One example of where such a thing would be useful is
  106. converting audio from the CD sample rate of 44.1kHz to the 48kHz
  107. sample rate used by DAT players.
  108. SRC is capable of arbitrary and time varying conversions ; from
  109. downsampling by a factor of 12 to upsampling by the same
  110. factor. Arbitrary in this case means that the ratio of input and
  111. output sample rates can be an irrational number. The conversion ratio
  112. can also vary with time for speeding up and slowing down effects.
  113. SRC provides a small set of converters to allow quality to be traded
  114. off against computation cost. The current best converter provides a
  115. signal-to-noise ratio of 97dB with -3dB passband extending from DC to
  116. 96% of the theoretical best bandwidth for a given pair of input and
  117. output sample rates.
  118. %prep
  119. %setup -q
  120. %build
  121. %configure
  122. make
  123. %install
  124. rm -rf $RPM_BUILD_ROOT
  125. make install DESTDIR=$RPM_BUILD_ROOT
  126. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
  127. %clean
  128. rm -rf $RPM_BUILD_ROOT
  129. %post -p /sbin/ldconfig
  130. %postun -p /sbin/ldconfig
  131. %post -n compat32-%{name} -p /sbin/ldconfig
  132. %postun -n compat32-%{name} -p /sbin/ldconfig
  133. %files
  134. %defattr(-,root,root)
  135. %doc AUTHORS ChangeLog COPYING NEWS README
  136. %doc doc/*.html doc/SRC.*
  137. %{_libdir}/*.so.*
  138. %files devel
  139. %defattr(-,root,root)
  140. %{_libdir}/*.so
  141. %{_libdir}/pkgconfig/samplerate.pc
  142. %{_includedir}/samplerate.h
  143. %files progs
  144. %defattr(-,root,root)
  145. %{_bindir}/sndfile-resample
  146. %files docs
  147. %defattr(-,root,root)
  148. %{_docdir}/%{name}0-dev
  149. # compat32
  150. %if %{build_compat32}
  151. %files -n compat32-%{name}
  152. %defattr(-,root,root)
  153. %{_libdir}/*.so.*
  154. %files -n compat32-%{name}-devel
  155. %defattr(-,root,root)
  156. %{_libdir}/*.so
  157. %endif
  158. %changelog
  159. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.8-1
  160. - update to 0.1.8
  161. - create %%{name}-docs subpackage
  162. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.7-2
  163. - rebuild with rpm-4.8.1 for pkg-config file
  164. * Sat Jan 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.7-1
  165. - new upstream release
  166. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.1.4-3
  167. - added compat32 package for x86_64 arch support
  168. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-2
  169. - spec in utf-8
  170. - remove static lib
  171. * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.4-1
  172. - new upstream release
  173. - applied new versioning policy
  174. - removed lib*.la files from devel package
  175. * Mon May 01 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl2
  176. - rebuilt with libsndfile for VineSeed Plus
  177. * Wed Feb 08 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 0.1.2-0vl0.1
  178. - rebuild for VinePlus/3.0
  179. - added BuildRequires: libsndfile-devel to progs subpackage
  180. - fixed %%doc section
  181. * Wed Sep 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl1
  182. - new upstream release
  183. - fixed %doc section
  184. - fixed spec file encoding
  185. * Tue Apr 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.0-0vl1
  186. - initial build for Vine Linux