]>
Commit | Line | Data |
---|---|---|
4c907dcf JB |
1 | # |
2 | # Conditional build: | |
d806df6c | 3 | %bcond_without tests # do not perform "make check" |
4c907dcf JB |
4 | # |
5 | Summary: Sample Rate Converter library | |
082076b6 | 6 | Summary(pl.UTF-8): Biblioteka do konwersji częstotliwości próbkowania |
4c907dcf | 7 | Name: libsamplerate |
8c2c071a JB |
8 | Version: 0.1.9 |
9 | Release: 1 | |
10 | License: BSD | |
4c907dcf JB |
11 | Group: Libraries |
12 | #Source0Download: http://www.mega-nerd.com/SRC/download.html | |
13 | Source0: http://www.mega-nerd.com/SRC/%{name}-%{version}.tar.gz | |
8c2c071a | 14 | # Source0-md5: 2b78ae9fe63b36b9fbb6267fad93f259 |
4c907dcf | 15 | URL: http://www.mega-nerd.com/SRC/ |
5984f551 | 16 | %{?with_tests:BuildRequires: fftw3-devel >= 0.15.0} |
2eac785b | 17 | BuildRequires: libsndfile-devel >= 1.0.10 |
b8337037 | 18 | BuildRequires: pkgconfig |
6785ce66 | 19 | Requires: libsndfile >= 1.0.10 |
4c907dcf JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for | |
24 | audio. SRC is capable of arbitrary and time varying conversions; from | |
25 | downsampling by a factor of 12 to upsampling by the same factor. SRC | |
26 | provides a small set of converters to allow quality to be traded off | |
27 | against computation cost. The current best converter provides a | |
28 | signal-to-noise ratio of 97dB with -3dB passband extending from DC to | |
29 | 96% of the theoretical best bandwidth for a given pair of input and | |
30 | output sample rates. | |
31 | ||
0a6575c4 JR |
32 | %description -l pl.UTF-8 |
33 | Biblioteka libsamplerate (zwana także Secret Rabbit Code lub Sample | |
34 | Rate Converter - w skrócie SRC) służy do konwersji częstotliwości | |
35 | próbkowania dźwięku. SRC może wykonywać dowolnych konwersji - od | |
36 | zmniejszania częstotliwości do 12 razy do zwiększania o ten sam | |
37 | współczynnik. SRC udostępnia niewielki zestaw konwerterów | |
38 | pozwalających na pogodzenie jakości i czasu trwania konwersji. | |
39 | Aktualnie najlepszy konwerter udostępnia współczynnik sygnał/szum 97dB | |
4c907dcf | 40 | z rozszerzeniem zakresu pasma -3dB z DC do 96% teoretycznie |
0a6575c4 JR |
41 | najlepszego pasma dla danej pary częstotliwości próbkowania wejścia i |
42 | wyjścia. | |
4c907dcf JB |
43 | |
44 | %package devel | |
45 | Summary: Header file for libsamplerate library | |
082076b6 | 46 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libsamplerate |
4c907dcf | 47 | Group: Development/Libraries |
18f42ad8 | 48 | Requires: %{name} = %{version}-%{release} |
4c907dcf JB |
49 | |
50 | %description devel | |
51 | Header file for libsamplerate library. | |
52 | ||
0a6575c4 JR |
53 | %description devel -l pl.UTF-8 |
54 | Plik nagłówkowy biblioteki libsamplerate. | |
4c907dcf JB |
55 | |
56 | %package static | |
57 | Summary: libsamplerate static library | |
082076b6 | 58 | Summary(pl.UTF-8): Statyczna biblioteka libsamplerate |
4c907dcf | 59 | Group: Development/Libraries |
18f42ad8 | 60 | Requires: %{name}-devel = %{version}-%{release} |
4c907dcf JB |
61 | |
62 | %description static | |
63 | libsamplerate static library. | |
64 | ||
0a6575c4 | 65 | %description static -l pl.UTF-8 |
4c907dcf JB |
66 | Statyczna biblioteka libsamplerate. |
67 | ||
68 | %package tools | |
69 | Summary: libsamplerate utilities | |
082076b6 | 70 | Summary(pl.UTF-8): Narzędzia do libsamplerate |
4c907dcf | 71 | Group: Applications/Sound |
18f42ad8 | 72 | Requires: %{name} = %{version}-%{release} |
4c907dcf JB |
73 | |
74 | %description tools | |
75 | libsamplerate utilities - currently include one program to resample | |
76 | audio files read and written using libsndfile. | |
77 | ||
0a6575c4 JR |
78 | %description tools -l pl.UTF-8 |
79 | Narzędzia do libsamplerate - aktualnie zawierają program do zmiany | |
80 | częstotliwości próbkowania plików dźwiękowych czytanych i zapisywanych | |
4c907dcf JB |
81 | przez libsndfile. |
82 | ||
83 | %prep | |
84 | %setup -q | |
85 | ||
86 | %build | |
d0ce04e3 | 87 | cp -f /usr/share/automake/config.sub Cfg |
2ae12e13 ŁK |
88 | %configure \ |
89 | --disable-silent-rules | |
4c907dcf JB |
90 | %{__make} |
91 | ||
d806df6c | 92 | %{?with_tests:%{__make} -C tests check} |
4c907dcf JB |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
4986a853 JB |
100 | # packaged as %doc |
101 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libsamplerate0-dev | |
102 | ||
4c907dcf JB |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
8c2c071a | 111 | %doc AUTHORS COPYING ChangeLog NEWS README doc/*.{html,css,png} |
5984f551 JB |
112 | %attr(755,root,root) %{_libdir}/libsamplerate.so.*.*.* |
113 | %attr(755,root,root) %ghost %{_libdir}/libsamplerate.so.0 | |
4c907dcf JB |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
5984f551 JB |
117 | %attr(755,root,root) %{_libdir}/libsamplerate.so |
118 | %{_libdir}/libsamplerate.la | |
119 | %{_includedir}/samplerate.h | |
120 | %{_pkgconfigdir}/samplerate.pc | |
4c907dcf JB |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
5984f551 | 124 | %{_libdir}/libsamplerate.a |
4c907dcf JB |
125 | |
126 | %files tools | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_bindir}/sndfile-resample |