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