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