]>
Commit | Line | Data |
---|---|---|
e7f32f62 | 1 | # |
2 | # Conditional build: | |
93ea4fe1 JB |
3 | %bcond_without alsa # without ALSA support (implies without JACK) |
4 | %bcond_without jack # without JACK support | |
d6c18626 | 5 | %bcond_without ruby # without ruby support |
93ea4fe1 | 6 | %bcond_with arts # with aRts support |
e7f32f62 | 7 | # |
8d9b8c33 | 8 | Summary: Software package for multitrack audio processing |
832fd09f | 9 | Summary(pl.UTF-8): Oprogramowanie do wielościeżkowego przetwarzania dźwięku |
8d9b8c33 | 10 | Name: ecasound |
256d6748 | 11 | Version: 2.8.1 |
7ddf45c8 | 12 | Release: 1 |
3d603d2e | 13 | License: GPL v2+ |
8d9b8c33 | 14 | Group: Applications/Sound |
8d9b8c33 | 15 | Source0: http://ecasound.seul.org/download/%{name}-%{version}.tar.gz |
256d6748 | 16 | # Source0-md5: d9ded0074a8eeb59dd507c248220d010 |
e7f32f62 | 17 | Patch0: %{name}-link.patch |
dc713a61 | 18 | Patch1: %{name}-acam.patch |
7ddf45c8 | 19 | URL: http://www.eca.cx/ecasound/ |
4761a83b | 20 | %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0} |
93ea4fe1 | 21 | %{?with_arts:BuildRequires: arts-devel} |
5f4f2bac | 22 | BuildRequires: autoconf >= 2.50 |
1c1dbf6f | 23 | BuildRequires: automake >= 1.6.1 |
93ea4fe1 | 24 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
03ed783d | 25 | BuildRequires: ladspa-devel |
7ddf45c8 JB |
26 | BuildRequires: liblo-devel |
27 | BuildRequires: liboil-devel >= 0.3 | |
623441f4 | 28 | BuildRequires: libsamplerate-devel |
1c1dbf6f | 29 | BuildRequires: libsndfile-devel >= 1.0.12 |
58b3e884 | 30 | BuildRequires: libstdc++-devel |
5db075a1 | 31 | BuildRequires: libtool >= 2:1.4d |
7ddf45c8 JB |
32 | BuildRequires: ncurses-devel |
33 | BuildRequires: pkgconfig | |
4f372315 | 34 | BuildRequires: python-devel >= 2.2 |
97c63cc8 | 35 | BuildRequires: python-modules >= 2.2 |
d2597bfe | 36 | BuildRequires: readline-devel >= 5.0 |
29a59427 | 37 | BuildRequires: rpm-pythonprov |
f73a17ac | 38 | %if %{with ruby} |
39 | BuildRequires: rpmbuild(macros) >= 1.277 | |
40 | BuildRequires: ruby-devel | |
f73a17ac | 41 | %endif |
cbc1046d | 42 | Obsoletes: libecasound |
8d9b8c33 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3e379c18 | 44 | |
45 | %description | |
57ff1371 | 46 | Ecasound is a software package designed for multitrack audio |
47 | processing. It can be used for simple tasks like audio playback, | |
48 | recording and format conversions, as well as for multitrack effect | |
49 | processing, mixing, recording and signal recycling. Ecasound supports | |
50 | a wide range of audio inputs, outputs and effect algorithms. Several | |
1c1dbf6f JB |
51 | open-source audio packages, like for instance ALSA, OSS, mpg123, lame |
52 | and MikMod, are directly supported. One of the advantages of | |
53 | ecasound's chain-based design is that effects can easily be combined | |
54 | both in series and in parallel. Oscillators and MIDI-CCs can be used | |
55 | for controlling effect parameters. Included user-interfaces are | |
56 | ecasound - a versatile console mode interface, ecawave - a Qt-based | |
57 | X-interface and various command-line utils suitable for batch | |
57ff1371 | 58 | processing. |
9bab5da3 | 59 | |
33242adf JR |
60 | %description -l pl.UTF-8 |
61 | Ecasound jest programem do wielościeżkowej edycji dźwięku, który może | |
62 | być używany tak do prostych zadań typu odtwarzanie i nagrywanie muzyki | |
63 | czy też konwersji pomiędzy formatami plików muzycznych jak i do | |
64 | wielościeżkowego nakładania efektów, miksowania (przenikania, | |
65 | wyciszania), nagrywania i odzyskiwania (w domyśle odszumiania lub | |
66 | wyrzucania zniekształceń) sygnału. | |
66464718 | 67 | |
33242adf | 68 | Ecasound wspiera szeroką gamę źródeł i wyjść dźwięku oraz algorytmów |
57ff1371 | 69 | do jego przetwarzania. Ecasound wspiera wiele wolnych (open source) |
33242adf JR |
70 | projektów, takich jak ALSA, OSS, mpg123, lame czy też MikMod. Jedną z |
71 | zalet programu ecasound jest możliwość łańcuchowego (szeregowego) lub | |
72 | równoległego łączenia efektów, które mogą być kontrolowane poprzez | |
1c1dbf6f | 73 | oscylatory lub MIDI-CC. Pakiet ten zawiera tekstowy interfejs |
33242adf JR |
74 | użytkownika oraz kilka innych narzędzi nadających się do przetwarzania |
75 | wsadowego. Dostępny jest także graficzny, oparty na Qt interfejs | |
76 | użytkownika - ecawave. | |
3e379c18 | 77 | |
4c8d1d09 JB |
78 | %package devel |
79 | Summary: Header files for ecasound libraries | |
832fd09f | 80 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek ecasound |
4c8d1d09 | 81 | Group: Development/Libraries |
7ed0a343 | 82 | Requires: %{name} = %{version}-%{release} |
07ebcfa1 JB |
83 | %{?with_alsa:Requires: alsa-lib-devel} |
84 | %{?with_arts:Requires: arts-devel} | |
85 | %{?with_jack:Requires: jack-audio-connection-kit-devel} | |
7ddf45c8 JB |
86 | Requires: liblo-devel |
87 | Requires: liboil-devel >= 0.3 | |
93ea4fe1 | 88 | Requires: libsamplerate-devel |
07ebcfa1 | 89 | Requires: libsndfile-devel |
93ea4fe1 | 90 | Requires: libstdc++-devel |
4c8d1d09 JB |
91 | Obsoletes: libecasound-devel |
92 | ||
93 | %description devel | |
94 | Header files for ecasound libraries. | |
95 | ||
33242adf JR |
96 | %description devel -l pl.UTF-8 |
97 | Pliki nagłówkowe bibliotek ecasound. | |
4c8d1d09 JB |
98 | |
99 | %package static | |
100 | Summary: Static ecasound libraries | |
832fd09f | 101 | Summary(pl.UTF-8): Statyczne biblioteki ecasound |
4c8d1d09 | 102 | Group: Development/Libraries |
7ed0a343 | 103 | Requires: %{name}-devel = %{version}-%{release} |
4c8d1d09 JB |
104 | Obsoletes: libecasound-static |
105 | ||
106 | %description static | |
107 | Static ecasound libraries. | |
108 | ||
33242adf | 109 | %description static -l pl.UTF-8 |
4c8d1d09 JB |
110 | Statyczne biblioteki ecasound. |
111 | ||
0d5d27e1 | 112 | %package -n python-%{name} |
113 | Summary: Python module for Ecasound | |
832fd09f | 114 | Summary(pl.UTF-8): Moduł języka Python dla programu ecasound |
45b52d91 | 115 | Group: Libraries/Python |
7ed0a343 | 116 | Requires: %{name} = %{version}-%{release} |
e7f32f62 | 117 | %pyrequires_eq python-modules |
0d5d27e1 | 118 | |
119 | %description -n python-%{name} | |
e7f32f62 | 120 | Python module for Ecasound. |
0d5d27e1 | 121 | |
33242adf JR |
122 | %description -n python-%{name} -l pl.UTF-8 |
123 | Moduł języka Python dla programu ecasound. | |
0d5d27e1 | 124 | |
8c052ed5 JB |
125 | %package -n ruby-%{name} |
126 | Summary: Ruby module for Ecasound | |
832fd09f | 127 | Summary(pl.UTF-8): Moduł języka Ruby dla programu ecasound |
8c052ed5 | 128 | Group: Libraries |
7ed0a343 | 129 | Requires: %{name} = %{version}-%{release} |
4dc76b24 | 130 | %{?ruby_mod_ver_requires_eq} |
8c052ed5 JB |
131 | |
132 | %description -n ruby-%{name} | |
133 | Ruby module for Ecasound. | |
134 | ||
33242adf JR |
135 | %description -n ruby-%{name} -l pl.UTF-8 |
136 | Moduł języka Ruby dla programu ecasound. | |
8c052ed5 | 137 | |
3e379c18 | 138 | %prep |
139 | %setup -q | |
0cfbad65 | 140 | %patch0 -p1 |
dc713a61 | 141 | %patch1 -p1 |
3e379c18 | 142 | |
143 | %build | |
601d6619 | 144 | %{__libtoolize} |
cbc1046d | 145 | %{__aclocal} |
cdf12d9a | 146 | %{__autoconf} |
147 | %{__automake} | |
256d6748 | 148 | CXXFLAGS="%{rpmcflags} -D_REENTRANT %{!?debug:-DNDEBUG}" |
e7f32f62 | 149 | # disable audiofile - ecasound has native support for wav and raw formats |
150 | # disable oss - ecasound works nicely with alsa oss emulation; | |
151 | # in case of alsa building conditional, the oss should | |
152 | # be enabled | |
153 | # disable arts - 'not really useful' as said by ecasound author | |
8d9b8c33 | 154 | %configure \ |
93ea4fe1 JB |
155 | %{!?with_alsa:--disable-alsa} \ |
156 | %{!?with_arts:--disable-arts} \ | |
d59c1d02 | 157 | --disable-audiofile \ |
93ea4fe1 JB |
158 | %{!?with_jack:--disable-jack} \ |
159 | %{?with_alsa:--disable-oss} \ | |
623441f4 | 160 | --enable-samplerate \ |
f16f7ba7 | 161 | --enable-shared \ |
d59c1d02 PG |
162 | --enable-sys-readline \ |
163 | --enable-pyecasound \ | |
164 | --with-largefile \ | |
165 | --with-python-includes=%{py_incdir} \ | |
166 | --with-python-modules=%{py_libdir} | |
2e638d5c | 167 | |
256d6748 JB |
168 | %{__make} \ |
169 | termcap_library_ncurses="-lncurses -ltinfo" \ | |
170 | ncurses_library="-lncurses -ltinfo" | |
3e379c18 | 171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
ebc4a1ea | 174 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
6a2076e0 | 175 | |
d59c1d02 PG |
176 | %{__make} install \ |
177 | DESTDIR=$RPM_BUILD_ROOT \ | |
178 | mandir=%{_mandir} | |
3e379c18 | 179 | |
13bd5966 | 180 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
181 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
1c1dbf6f | 182 | %py_postclean |
dc713a61 | 183 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
0d5d27e1 | 184 | |
3e379c18 | 185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
4c8d1d09 JB |
188 | %post -p /sbin/ldconfig |
189 | %postun -p /sbin/ldconfig | |
190 | ||
3e379c18 | 191 | %files |
8d9b8c33 | 192 | %defattr(644,root,root,755) |
7ddf45c8 JB |
193 | # COPYING is licensing note, not GPL/LGPL text |
194 | %doc AUTHORS BUGS COPYING NEWS README TODO | |
e7f32f62 | 195 | %attr(755,root,root) %{_bindir}/eca* |
dc713a61 | 196 | %attr(755,root,root) %{_libdir}/libecasound.so.*.*.* |
256d6748 | 197 | %attr(755,root,root) %ghost %{_libdir}/libecasound.so.23 |
dc713a61 JB |
198 | %attr(755,root,root) %{_libdir}/libecasoundc.so.*.*.* |
199 | %attr(755,root,root) %ghost %{_libdir}/libecasoundc.so.1 | |
200 | %attr(755,root,root) %{_libdir}/libkvutils.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/libkvutils.so.4 | |
e7f32f62 | 202 | %{_datadir}/ecasound |
dc713a61 JB |
203 | %{_mandir}/man1/eca*.1* |
204 | %{_mandir}/man5/ecasoundrc.5* | |
3e379c18 | 205 | |
4c8d1d09 JB |
206 | %files devel |
207 | %defattr(644,root,root,755) | |
dc713a61 JB |
208 | %attr(755,root,root) %{_bindir}/libecasound-config |
209 | %attr(755,root,root) %{_bindir}/libecasoundc-config | |
210 | %attr(755,root,root) %{_libdir}/libecasound.so | |
211 | %attr(755,root,root) %{_libdir}/libecasoundc.so | |
212 | %attr(755,root,root) %{_libdir}/libkvutils.so | |
213 | %{_libdir}/libecasound.la | |
214 | %{_libdir}/libecasoundc.la | |
215 | %{_libdir}/libkvutils.la | |
4c8d1d09 JB |
216 | %{_includedir}/kvutils |
217 | %{_includedir}/libecasound | |
218 | %{_includedir}/libecasoundc | |
219 | ||
220 | %files static | |
221 | %defattr(644,root,root,755) | |
dc713a61 JB |
222 | %{_libdir}/libecasound.a |
223 | %{_libdir}/libecasoundc.a | |
224 | %{_libdir}/libkvutils.a | |
4c8d1d09 | 225 | |
0d5d27e1 | 226 | %files -n python-%{name} |
227 | %defattr(644,root,root,755) | |
dc713a61 JB |
228 | %attr(755,root,root) %{py_sitedir}/pyecasound.so |
229 | %{py_sitedir}/ecacontrol.py[co] | |
230 | %{py_sitedir}/eci.py[co] | |
231 | %{py_sitedir}/pyeca.py[co] | |
8c052ed5 | 232 | |
d6c18626 | 233 | %if %{with ruby} |
8c052ed5 JB |
234 | %files -n ruby-%{name} |
235 | %defattr(644,root,root,755) | |
236 | %{ruby_sitelibdir}/ecasound.rb | |
d6c18626 | 237 | %endif |