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