summaryrefslogtreecommitdiff
path: root/ecasound.spec
blob: 4085fdb10baedb8987721e99de6704362ae63b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# todo:
# - jack-audio-connection-kit support
#
# Conditional build:
# _without_alsa	- without ALSA support
#
%include	/usr/lib/rpm/macros.python
Summary:	Software package for multitrack audio processing
Summary(pl):	Oprogramowanie do wielościeżkowego przetwarzania dźwięku
Name:		ecasound
Version:	2.2.3
Release:	1
License:	GPL
Group:		Applications/Sound
Source0:	http://ecasound.seul.org/download/%{name}-%{version}.tar.gz
# Source0-md5:	40a3f0213c30b18e1b4e7879faa6b454
Patch0:		%{name}-link.patch
%ifnarch sparc sparc64
%{!?_without_alsa:BuildRequires:	alsa-lib-devel}
%endif
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	ladspa-devel
BuildRequires:	libsamplerate-devel
BuildRequires:	libstdc++-devel
BuildRequires:	libtool >= 2:1.4d
BuildRequires:	python-devel >= 2.2
BuildRequires:	python-modules >= 2.2
BuildRequires:	readline-devel >= 4.2
BuildRequires:	rpm-pythonprov
Obsoletes:	libecasound
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Ecasound is a software package designed for multitrack audio
processing. It can be used for simple tasks like audio playback,
recording and format conversions, as well as for multitrack effect
processing, mixing, recording and signal recycling. Ecasound supports
a wide range of audio inputs, outputs and effect algorithms. Several
open-source audio packages, like for instance ALSA, OSS, mpg123, lame,
libaudiofile and MikMod, are directly supported. One of the advantages
of ecasound's chain-based design is that effects can easily be
combined both in series and in parallel. Oscillators and MIDI-CCs can
be used for controlling effect parameters. Included user-interfaces
are ecasound - a versatile console mode interface, qtecasound - a
Qt-based X-interface and various command-line utils suitable for batch
processing.

%description -l pl
Ecasound jest programem do wielościeżkowej edycji dźwięku, który może
być używany tak do prostych zadań typu odtwarzanie i nagrywanie muzyki
czy też konwersji pomiędzy formatami plików muzycznych jak i do
wielościeżkowego nakładania efektów, miksowania (przenikania,
wyciszania), nagrywania i odzyskiwania (w domyśle odszumiania lub
wyrzucania zniekształceń) sygnału.

Ecasound wspiera szeroką gamę źródeł i wyjść dźwięku oraz algorytmów
do jego przetwarzania. Ecasound wspiera wiele wolnych (open source)
projektów, takich jak ALSA, OSS, mpg123, lame, libaudiofile czy też
MikMod. Jedną z zalet programu ecasound jest możliwość łańcuchowego
(szeregowego) lub równoległego łączenia efektów, które mogą być
kontrolowane poprzez oscylatory lub MIDI-CC. Pakiet ten zawiera
tekstowy interfejs użytkownika oraz kilka innych narzędzi nadających
się do przetwarzania wsadowego. Dostępny jest także graficzny
interfejs użytkownika - qtecasound.

%package devel
Summary:	Header files for ecasound libraries
Summary(pl):	Pliki nagłówkowe bibliotek ecasound
Group:		Development/Libraries
Requires:	%{name} = %{version}
Obsoletes:	libecasound-devel

%description devel
Header files for ecasound libraries.

%description devel -l pl
Pliki nagłówkowe bibliotek ecasound.

%package static
Summary:	Static ecasound libraries
Summary(pl):	Statyczne biblioteki ecasound
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}
Obsoletes:	libecasound-static

%description static
Static ecasound libraries.

%description static -l pl
Statyczne biblioteki ecasound.

%package -n python-%{name}
Summary:	Python module for Ecasound
Summary(pl):	Moduł języka Python dla programu ecasound
Group:		Libraries/Python
%pyrequires_eq	python-modules

%description -n python-%{name}
Python module for Ecasound.

%description -n python-%{name} -l pl
Moduł języka Python dla programu ecasound.

%prep
%setup -q
%patch0 -p1

%build
rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
CXXFLAGS="%{rpmcflags} -D_REENTRANT %{!?debug:-DNDEBUG} -I/usr/include/ncurses"
# disable audiofile - ecasound has native support for wav and raw formats
# disable oss       - ecasound works nicely with alsa oss emulation;
#                     in case of alsa building conditional, the oss should
#                     be enabled
# disable arts      - 'not really useful' as said by ecasound author
%configure \
	%{?_without_alsa:--disable-alsa} \
	--disable-arts \
	--disable-audiofile \
	%{!?_without_alsa:--disable-oss} \
	--enable-samplerate \
	--enable-sys-readline \
	--enable-pyecasound \
	--with-largefile \
	--with-python-includes=%{py_incdir} \
	--with-python-modules=%{py_libdir}

%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_sitedir}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	mandir=%{_mandir}

install pyecasound/*.py $RPM_BUILD_ROOT%{py_sitedir}
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc BUGS NEWS README TODO
%attr(755,root,root) %{_bindir}/eca*
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%{_datadir}/ecasound
%{_mandir}/man1/eca*
%{_mandir}/man5/eca*

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*-config
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_includedir}/kvutils
%{_includedir}/libecasound
%{_includedir}/libecasoundc

%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a

%files -n python-%{name}
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/*.so
%{py_sitedir}/*.py[co]