]> git.pld-linux.org Git - packages/aubio.git/blame - aubio.spec
- python 3.6
[packages/aubio.git] / aubio.spec
CommitLineData
79fb52b2 1#
8eebf965 2# Conditional build:
6b1bcd9b
JK
3%bcond_without python2 # python bindings
4%bcond_without python3 # python bindings
8eebf965 5#
691d98ed
JB
6Summary: aubio - library for audio labelling
7Summary(pl.UTF-8): aubio - biblioteka do oznaczania dźwięku
79fb52b2 8Name: aubio
6b1bcd9b 9Version: 0.4.3
1c19f811 10Release: 2
6b1bcd9b 11License: GPL v3+
79fb52b2 12Group: Libraries
6b1bcd9b
JK
13Source0: http://aubio.piem.org/pub/%{name}-%{version}.tar.bz2
14# Source0-md5: 52a960cfc8a3e3125f3a258545d1c7e5
79fb52b2 15URL: http://aubio.piem.org/
21b138b4 16BuildRequires: alsa-lib-devel >= 0.9.0
6b1bcd9b
JK
17BuildRequires: doxygen
18BuildRequires: ffmpeg-devel
21b138b4
JB
19BuildRequires: fftw3-single-devel >= 3.0.0
20BuildRequires: jack-audio-connection-kit-devel >= 0.15.0
21b138b4
JB
21BuildRequires: libsamplerate-devel >= 0.0.15
22BuildRequires: libsndfile-devel >= 1.0.4
21b138b4 23BuildRequires: pkgconfig
6b1bcd9b
JK
24BuildRequires: txt2man
25%if %{with python2} || %{with python3}
21b138b4 26BuildRequires: rpm-pythonprov
6b1bcd9b
JK
27BuildRequires: rpmbuild(macros) >= 1.714
28%endif
29%if %{with python2}
30BuildRequires: python-devel
31BuildRequires: python-numpy-devel
32BuildRequires: python-setuptools
33%endif
34%if %{with python3}
35BuildRequires: python3-devel
36BuildRequires: python3-numpy-devel
37BuildRequires: python3-setuptools
8eebf965 38%endif
cefd6b85 39BuildRequires: sed >= 4.0
79fb52b2
SS
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
691d98ed
JB
43aubio is a library for audio labelling.
44
45%description -l pl.UTF-8
46aubio to biblioteka do oznaczania dźwięku.
79fb52b2
SS
47
48%package devel
9d374366
SS
49Summary: Header files for aubio library
50Summary(pl.UTF-8): Pliki nagłówkowe biblioteki aubio
79fb52b2
SS
51Group: Development/Libraries
52Requires: %{name} = %{version}-%{release}
21b138b4
JB
53Requires: fftw3-single-devel >= 3.0.0
54Requires: libsamplerate-devel >= 0.0.15
55# for libaubioext:
56# alsa-lib-devel >= 0.9.0
57# jack-audio-connection-kit-devel >= 0.15.0
58# libsndfile-devel >= 1.0.4
79fb52b2
SS
59
60%description devel
61Header files for aubio library.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe biblioteki aubio.
65
66%package static
67Summary: Static aubio library
68Summary(pl.UTF-8): Statyczna biblioteka aubio
69Group: Development/Libraries
70Requires: %{name}-devel = %{version}-%{release}
71
72%description static
73Static aubio library.
74
75%description static -l pl.UTF-8
76Statyczna biblioteka aubio.
77
b9d3858a
SS
78%package progs
79Summary: Example applications using aubio library
691d98ed
JB
80Summary(pl.UTF-8): Przykładowe programy korzystajace z biblioteki aubio
81Group: Applications/Sound
b9d3858a
SS
82Requires: %{name} = %{version}-%{release}
83
84%description progs
85A few examples of applications using aubio library:
691d98ed 86- aubioonset: outputs the onset detected.
b9d3858a 87- aubionotes: uses both onset and pitch to extract symbolic music data
6b1bcd9b 88 from an audio source and emit MIDI like data.
691d98ed 89- aubiocut: a Python script that takes an input sound and creates one
6b1bcd9b
JK
90 new sample at each detected onset or beat. The slices produced by
91 aubiocut are useful for use with a sequencer such as Hydrogen.
691d98ed
JB
92- aubiopitch: a Python script to extract pitch tracks from sound
93 files.
94
95%description progs -l pl.UTF-8
96Kilka przykładowych aplikacji korzystających z biblioteki dubio:
97- aubioonset - wypisuje wykryty początek.
98- aubionotes - wykorzystuje początek i wysokość do wyciągnięcia
6b1bcd9b
JK
99 symbolicznych danych muzycznych ze źródła dźwięku i stworzenia danych
100 typu MIDI.
691d98ed
JB
101- aubiocut - skrypt Pythona pobierający dźwięk wejściowy i tworzący
102 nową próbkę dla każdego wykrytego początku lub taktu. Fragmenty
6b1bcd9b
JK
103 tworzone przez aubiocut są przydatne do wykorzystania przez sekwencer,
104 jak np. Hydrogen.
105- aubiopitch - skrypt Pythona do wyciągania ścieżek wysokości z plików
106 dźwiękowych.
b9d3858a 107
8eebf965 108%package -n python-aubio
691d98ed
JB
109Summary: aubio Python bindings
110Summary(pl.UTF-8): Wiązania Pythona do biblioteki aubio
8eebf965
SS
111Group: Libraries/Python
112Requires: %{name} = %{version}-%{release}
113
114%description -n python-aubio
691d98ed
JB
115aubio Python bindings.
116
117%description -n python-aubio -l pl.UTF-8
118Wiązania Pythona do biblioteki aubio.
8eebf965 119
6b1bcd9b
JK
120%package -n python3-aubio
121Summary: aubio Python bindings
122Summary(pl.UTF-8): Wiązania Pythona do biblioteki aubio
123Group: Libraries/Python
124Requires: %{name} = %{version}-%{release}
125
126%description -n python3-aubio
127aubio Python bindings.
128
129%description -n python3-aubio -l pl.UTF-8
130Wiązania Pythona do biblioteki aubio.
131
79fb52b2
SS
132%prep
133%setup -q
134
135%build
6b1bcd9b
JK
136export CC="%{__cc}"
137export CXX="%{__cxx}"
138export CFLAGS="%{rpmcflags}"
139export CXXFLAGS="%{rpmcxxflags}"
140export LDFLAGS="%{rpmldflags}"
141./waf configure \
142 --prefix=%{_prefix} \
143 --libdir=%{_libdir} \
144 --libexecdir=%{_libexecdir} \
145 --enable-fftw3f \
146 --enable-jack \
147 --enable-sndfile \
148 --enable-avcodec \
149 --enable-samplerate \
150 --disable-atlas \
151 --enable-docs
152
153./waf build -v
154
155%if %{with python2}
156%py_build %{?with_tests:test}
157%endif
158
159%if %{with python3}
160%py3_build %{?with_tests:test}
161%endif
79fb52b2
SS
162
163%install
164rm -rf $RPM_BUILD_ROOT
165
6b1bcd9b
JK
166./waf install -v \
167 --destdir=$RPM_BUILD_ROOT \
168 --libdir=%{_libdir} \
169 --prefix=%{_prefix} \
170 --libexecdir=%{_libexecdir}
79fb52b2 171
6b1bcd9b
JK
172%if %{with python2}
173%py_install
174%endif
175
176%if %{with python3}
177%py3_install
178%endif
179
180rm -r $RPM_BUILD_ROOT%{_docdir}/libaubio-doc
21b138b4 181
79fb52b2
SS
182%clean
183rm -rf $RPM_BUILD_ROOT
184
185%post -p /sbin/ldconfig
186%postun -p /sbin/ldconfig
187
188%files
189%defattr(644,root,root,755)
6b1bcd9b
JK
190%doc AUTHORS ChangeLog README.md
191%attr(755,root,root) %{_libdir}/libaubio.so.5.*.*
192%attr(755,root,root) %ghost %{_libdir}/libaubio.so.5
79fb52b2
SS
193
194%files devel
195%defattr(644,root,root,755)
6b1bcd9b 196%doc doc/web/html/*
21b138b4 197%attr(755,root,root) %{_libdir}/libaubio.so
79fb52b2 198%{_includedir}/%{name}
21b138b4 199%{_pkgconfigdir}/aubio.pc
79fb52b2 200
b9d3858a
SS
201%files progs
202%defattr(644,root,root,755)
6b1bcd9b 203%attr(755,root,root) %{_bindir}/aubiomfcc
8eebf965
SS
204%attr(755,root,root) %{_bindir}/aubionotes
205%attr(755,root,root) %{_bindir}/aubioonset
6b1bcd9b
JK
206%attr(755,root,root) %{_bindir}/aubiopitch
207%attr(755,root,root) %{_bindir}/aubioquiet
8eebf965 208%attr(755,root,root) %{_bindir}/aubiotrack
6b1bcd9b 209%{_mandir}/man1/aubiomfcc.1*
21b138b4
JB
210%{_mandir}/man1/aubionotes.1*
211%{_mandir}/man1/aubioonset.1*
6b1bcd9b
JK
212%{_mandir}/man1/aubiopitch.1*
213%{_mandir}/man1/aubioquiet.1*
21b138b4 214%{_mandir}/man1/aubiotrack.1*
8eebf965 215
6b1bcd9b 216%if %{with python2}
8eebf965
SS
217%files -n python-aubio
218%defattr(644,root,root,755)
21b138b4 219%dir %{py_sitedir}/aubio
6b1bcd9b
JK
220%{py_sitedir}/aubio/*.py*
221%attr(755,root,root) %{py_sitedir}/aubio/_aubio.so
222%{py_sitedir}/aubio*.egg-info
223%if %{without python3}
224%attr(755,root,root) %{_bindir}/aubiocut
225%{_mandir}/man1/aubiocut.1*
226%endif
227%endif
228
229%if %{with python3}
230%files -n python3-aubio
231%defattr(644,root,root,755)
232%dir %{py3_sitedir}/aubio
233%{py3_sitedir}/aubio/__pycache__
234%{py3_sitedir}/aubio/*.py
235%attr(755,root,root) %{py3_sitedir}/aubio/_aubio.*.so
236%{py3_sitedir}/aubio*.egg-info
21b138b4 237%attr(755,root,root) %{_bindir}/aubiocut
21b138b4 238%{_mandir}/man1/aubiocut.1*
21b138b4 239%endif
This page took 0.053533 seconds and 4 git commands to generate.