libsamplerate-vl.spec 6.7 KB

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