1 |
%define major 2 |
2 |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
4 |
|
5 |
Summary: A library for audio labelling |
6 |
Name: aubio |
7 |
Version: 0.3.2 |
8 |
Release: %mkrel 14 |
9 |
License: GPLv2+ |
10 |
Group: Sound/Utilities |
11 |
Url: http://aubio.org/ |
12 |
Source0: http://aubio.org/pub/%{name}-%{version}.tar.bz2 |
13 |
Patch0: %{name}-0.3.2-format_not_a_string_literal_and_no_format_arguments.patch |
14 |
Patch1: aubio-0.3.2-fix-link.patch |
15 |
# Fix byte-compilation error. Borrowed from Debian |
16 |
Patch2: aubio-numarray-gnuplot.patch |
17 |
BuildRequires: fftw3-devel |
18 |
BuildRequires: libsndfile-devel |
19 |
BuildRequires: libsamplerate-devel |
20 |
BuildRequires: libalsa-devel |
21 |
BuildRequires: swig |
22 |
BuildRequires: lash-devel |
23 |
BuildRequires: pd-devel |
24 |
BuildRequires: docbook-to-man |
25 |
BuildRequires: python-devel |
26 |
Requires: %{libname} = %{version}-%{release} |
27 |
|
28 |
%description |
29 |
A library for audio labelling. Its features include segmenting |
30 |
a sound file before each of its attacks, performing pitch |
31 |
detection, tapping the beat and producing midi streams from |
32 |
live audio. The name aubio comes from 'audio' with a typo: |
33 |
several transcription errors are likely to be found in the |
34 |
results too. |
35 |
|
36 |
%package -n %{libname} |
37 |
Summary: Main library for %{name} |
38 |
Group: System/Libraries |
39 |
Requires: %{name} = %{version}-%{release} |
40 |
|
41 |
%description -n %{libname} |
42 |
Main library for %{name}. |
43 |
|
44 |
%package -n %{develname} |
45 |
Summary: Development files for %{name} |
46 |
Group: Development/C++ |
47 |
Requires: %{libname} = %{version}-%{release} |
48 |
Provides: %{name}-devel = %{version}-%{release} |
49 |
Provides: lib%{name}-devel = %{version}-%{release} |
50 |
|
51 |
%description -n %{develname} |
52 |
Development files and headers for %{name}. |
53 |
|
54 |
%package -n python-%{name} |
55 |
Summary: Python bindings for %{name} |
56 |
Group: Development/Python |
57 |
Requires: %{libname} = %{version}-%{release} |
58 |
Requires: python |
59 |
|
60 |
%description -n python-%{name} |
61 |
Python bindings for %{name}. |
62 |
|
63 |
%prep |
64 |
%setup -q |
65 |
%patch0 -p1 |
66 |
%patch1 -p0 |
67 |
%patch2 -p1 |
68 |
|
69 |
%build |
70 |
%define _disable_ld_no_undefined 1 |
71 |
export CPPFLAGS="%{optflags} -I%{_includedir}/pd" |
72 |
export LDFLAGS="%ldflags -lm" |
73 |
%configure2_5x --disable-static |
74 |
|
75 |
%make |
76 |
|
77 |
%install |
78 |
%makeinstall_std |
79 |
|
80 |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
81 |
|
82 |
%ifarch x86_64 |
83 |
mv -f %{buildroot}%{_prefix}/lib/pd %{buildroot}%{_libdir}/pd |
84 |
%endif |
85 |
|
86 |
%files |
87 |
%doc AUTHORS README THANKS TODO |
88 |
%{_bindir}/* |
89 |
%{_datadir}/sounds/* |
90 |
%{_mandir}/man1/* |
91 |
|
92 |
%files -n %{libname} |
93 |
%{_libdir}/*.so.%{major}* |
94 |
%{_libdir}/pd |
95 |
|
96 |
%files -n %{develname} |
97 |
%{_includedir}/%{name} |
98 |
%{_libdir}/*.so |
99 |
%{_libdir}/pkgconfig/*.pc |
100 |
|
101 |
%files -n python-%{name} |
102 |
%{python_sitelib}/* |
103 |
|
104 |
|