File aubio.spec of Package aubio

#
# spec file for package aubio
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           aubio
Summary:        Library for real-time audio labelling
BuildRequires:  alsa-devel fftw3-devel libjack-devel
BuildRequires:  libsamplerate-devel libsndfile-devel pkg-config python
BuildRequires:  libtool
License:        GPL-2.0
Group:          System/Libraries
AutoReqProv:    on
Version:        0.3.2
Release:        14
Source:         %{name}-%{version}.tar.bz2
Url:            http://aubio.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libaubio2 = %{version}-%{release}

%description
Aubio is a library for real time audio labelling. Its features include
segmenting a sound file before each of its attacks, performing pitch
detection, tapping the beat and producing midi streams from live audio.
The name aubio comes from 'audio' with a typo: several transcription
errors are likely to be found in the results too.



Authors:
--------
    Paul Brossier <piem@altern.org>

%package -n libaubio2
License:        GPL-2.0
Summary:        Library for real-time audio labelling
Group:          System/Libraries

%description -n libaubio2
Aubio is a library for real time audio labelling. Its features include
segmenting a sound file before each of its attacks, performing pitch
detection, tapping the beat and producing midi streams from live audio.
The name aubio comes from 'audio' with a typo: several transcription
errors are likely to be found in the results too.



Authors:
--------
    Paul Brossier <piem@altern.org>

%package -n libaubio-devel
License:        GPL-2.0+
Summary:        Development package for aubio library
Group:          Development/Libraries/C and C++
Requires:       libaubio2 = %{version} glibc-devel

%description -n libaubio-devel
This package contains the files needed to compile programs that use
aubio library.



Authors:
--------
    Paul Brossier <piem@altern.org>

%package tools
License:        GPL-2.0+
Summary:        Example programs for aubio library
Group:          Productivity/Multimedia/Sound/Editors and Convertors

%description tools
This package includes the example programs for aubio library.



Authors:
--------
    Paul Brossier <piem@altern.org>

%prep
%setup -q

%build
autoreconf -fi
%configure \
LDFLAGS="-lm" \
  --disable-static
make %{?jobs:-j %jobs}

%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a

%post -n libaubio2 -p /sbin/ldconfig

%postun -n libaubio2 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libaubio2
%defattr(-, root, root)
%{_libdir}/lib*.so.*

%files -n libaubio-devel
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README THANKS TODO
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/aubio

%files tools
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/sounds/aubio

%changelog