]>
Commit | Line | Data |
---|---|---|
ea99ddb9 JB |
1 | # |
2 | # Conditional build: | |
23ab468a | 3 | %bcond_without openmp # OpenMP support |
ea99ddb9 JB |
4 | %bcond_without static_libs # static library |
5 | # | |
857de13b | 6 | Summary: SoundTouch - sound processing library |
6c5e36bd | 7 | Summary(pl.UTF-8): SoundTouch - biblioteka do przetwarzania dźwięku |
857de13b | 8 | Name: soundtouch |
3b9bdbcd | 9 | Version: 2.3.1 |
ea99ddb9 | 10 | Release: 1 |
d4f11f8f | 11 | License: LGPL v2.1+ |
857de13b | 12 | Group: Libraries |
3b9bdbcd JB |
13 | #Source0Download: https://codeberg.org/soundtouch/soundtouch |
14 | Source0: https://www.surina.net/soundtouch/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: f9690985eee4778706a51d06aa935f6a | |
8e55d961 | 16 | URL: http://www.surina.net/soundtouch/ |
ea99ddb9 | 17 | BuildRequires: autoconf >= 2.50 |
c4e51cdf | 18 | BuildRequires: automake |
86630a7e JB |
19 | %ifarch %{ix86} %{x8664} x32 |
20 | # <cpuid.h> | |
21 | BuildRequires: gcc >= 6:4.3 | |
22 | %endif | |
23ab468a | 23 | %{?with_openmp:BuildRequires: libgomp-devel} |
ea99ddb9 | 24 | BuildRequires: libstdc++-devel >= 6:4.3 |
c4e51cdf | 25 | BuildRequires: libtool >= 2:1.5 |
fa68d178 | 26 | BuildRequires: pkgconfig |
091aeac0 | 27 | BuildRequires: unzip |
857de13b JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
c4e51cdf JB |
30 | # gcc runs out of regs in mmx_gcc.cpp |
31 | %define specflags_ia32 -fomit-frame-pointer | |
32 | ||
857de13b JB |
33 | %description |
34 | SoundTouch is a library for changing tempo, pitch and playback rate of | |
35 | digital sound. | |
36 | ||
971e0a4d JR |
37 | %description -l pl.UTF-8 |
38 | SountTouch jest biblioteką do zmiany tempa, wysokości i częstotliwości | |
39 | odtwarzania dźwięku cyfrowego. | |
857de13b JB |
40 | |
41 | %package devel | |
42 | Summary: Header files for SoundTouch library | |
6c5e36bd | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoundTouch |
857de13b | 44 | Group: Development/Libraries |
b77bcda8 | 45 | Requires: %{name} = %{version}-%{release} |
dcc523ee | 46 | Requires: libstdc++-devel |
857de13b JB |
47 | |
48 | %description devel | |
49 | Header files for SoundTouch library. | |
50 | ||
971e0a4d JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki SoundTouch. | |
857de13b JB |
53 | |
54 | %package static | |
55 | Summary: Static SoundTouch library | |
6c5e36bd | 56 | Summary(pl.UTF-8): Statyczna biblioteka SoundTouch |
857de13b | 57 | Group: Development/Libraries |
b77bcda8 | 58 | Requires: %{name}-devel = %{version}-%{release} |
857de13b JB |
59 | |
60 | %description static | |
61 | Static SoundTouch library. | |
62 | ||
971e0a4d | 63 | %description static -l pl.UTF-8 |
857de13b JB |
64 | Statyczna biblioteka SoundTouch. |
65 | ||
66 | %package soundstretch | |
67 | Summary: SoundStretch - sound processing application | |
6c5e36bd | 68 | Summary(pl.UTF-8): SoundStretch - aplikacja do przetwarzania dźwięku |
857de13b | 69 | Group: Applications/Sound |
ea99ddb9 | 70 | URL: http://www.surina.net/soundtouch/soundstretch.html |
b77bcda8 | 71 | Requires: %{name} = %{version}-%{release} |
857de13b JB |
72 | |
73 | %description soundstretch | |
74 | SoundStretch is a command-line application for changing tempo, pitch | |
75 | and playback rates of WAV sound files. This program also demonstrates | |
76 | how the "SoundTouch" library can be used to process sound in own | |
77 | programs. | |
78 | ||
971e0a4d JR |
79 | %description soundstretch -l pl.UTF-8 |
80 | SoundStretch to działająca z linii poleceń aplikacja do zmiany tempa, | |
81 | wysokości i częstotliwości odtwarzania plików dźwiękowych WAV. Ten | |
82 | program ma także być przykładem, jak można wykorzystywać bibliotekę | |
83 | SoundTouch do przetwarzania dźwięku we własnych programach. | |
857de13b JB |
84 | |
85 | %prep | |
86630a7e | 86 | %setup -q |
857de13b | 87 | |
c4e51cdf JB |
88 | %build |
89 | %{__libtoolize} | |
90 | %{__aclocal} | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
23ab468a | 95 | %{?with_openmp:--enable-openmp} \ |
ea99ddb9 JB |
96 | --disable-silent-rules \ |
97 | %{?with_static_libs:--enable-static} | |
857de13b | 98 | |
c4e51cdf | 99 | %{__make} |
857de13b JB |
100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
857de13b | 103 | |
c4e51cdf JB |
104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
857de13b JB |
106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
7000473f | 110 | %post -p /sbin/ldconfig |
857de13b JB |
111 | %postun -p /sbin/ldconfig |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
c4e51cdf | 115 | %doc README.html |
d4f11f8f | 116 | %attr(755,root,root) %{_libdir}/libSoundTouch.so.*.*.* |
ea99ddb9 | 117 | %attr(755,root,root) %ghost %{_libdir}/libSoundTouch.so.1 |
857de13b JB |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
d4f11f8f JB |
121 | %attr(755,root,root) %{_libdir}/libSoundTouch.so |
122 | %{_libdir}/libSoundTouch.la | |
c4e51cdf JB |
123 | %{_includedir}/soundtouch |
124 | %{_aclocaldir}/soundtouch.m4 | |
ea99ddb9 | 125 | %{_pkgconfigdir}/soundtouch.pc |
857de13b | 126 | |
ea99ddb9 | 127 | %if %{with static_libs} |
857de13b JB |
128 | %files static |
129 | %defattr(644,root,root,755) | |
d4f11f8f | 130 | %{_libdir}/libSoundTouch.a |
ea99ddb9 | 131 | %endif |
857de13b JB |
132 | |
133 | %files soundstretch | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_bindir}/soundstretch |