1658370
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1658370
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
1658370
1658370
1658370
Name:           aubio
1658370
Version:        0.3.2
1658370
Release:        3%{?dist}
1658370
Summary:        An audio labelling library
1658370
1658370
Group:          System Environment/Libraries
1658370
License:        GPLv2+
1658370
URL:            http://aubio.org/
1658370
Source0:        http://aubio.org/pub/aubio-%{version}.tar.gz
1658370
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1658370
1658370
BuildRequires:  libsndfile-devel libsamplerate-devel fftw-devel
1658370
BuildRequires:  lash-devel jack-audio-connection-kit-devel
1658370
1658370
%description
1658370
aubio is a library for audio labelling. Its features include
1658370
segmenting a sound file before each of its attacks, performing pitch
1658370
detection, tapping the beat and producing midi streams from live
1658370
audio. The name aubio comes from 'audio' with a typo: several
1658370
transcription errors are likely to be found in the results too.
1658370
1658370
The aim of this project is to provide these automatic labelling
1658370
features to other audio softwares. Functions can be used offline in
1658370
sound editors and software samplers, or online in audio effects and
1658370
virtual instruments.
1658370
1658370
%package        devel
1658370
Summary:        Development files for %{name}
1658370
Group:          Development/Libraries
1658370
Requires:       %{name} = %{version}-%{release}
1658370
Requires:       pkgconfig
1658370
1658370
%description    devel
1658370
The %{name}-devel package contains libraries and header files for
1658370
developing applications that use %{name}.
1658370
1658370
%package	python
1658370
Summary:	Python language bindings for %{name}
1658370
Group:		Development/Libraries
1658370
Requires:	%{name} = %{version}-%{release}
1658370
Requires:       python
1658370
BuildRequires:	python swig
1658370
1658370
%description	python
1658370
The %{name}-python package contains the Python language bindings for %{name}.
1658370
1658370
%prep
1658370
%setup -q
1658370
1658370
1658370
%build
1658370
%configure --disable-static
1658370
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
1658370
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
1658370
make %{?_smp_mflags}
1658370
1658370
1658370
%install
1658370
rm -rf $RPM_BUILD_ROOT
1658370
make install DESTDIR=$RPM_BUILD_ROOT
1658370
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
1658370
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1658370
# Move everything to sitearch...
1658370
if [ %{python_sitearch} != %{python_sitelib} ]; then
1658370
  mkdir -p $RPM_BUILD_ROOT%{python_sitearch}
1658370
  mv $RPM_BUILD_ROOT%{python_sitelib}/%{name} $RPM_BUILD_ROOT%{python_sitearch}
1658370
fi
1658370
1658370
%clean
1658370
rm -rf $RPM_BUILD_ROOT
1658370
1658370
1658370
%post -p /sbin/ldconfig
1658370
1658370
%postun -p /sbin/ldconfig
1658370
1658370
1658370
%files
1658370
%defattr(-,root,root,-)
1658370
%doc AUTHORS ChangeLog COPYING README THANKS
1658370
%{_libdir}/*.so.*
1658370
%{_bindir}/*
1658370
%{_datadir}/sounds/%{name}
1658370
1658370
%files devel
1658370
%defattr(-,root,root,-)
1658370
%{_libdir}/pkgconfig/*.pc
1658370
%{_libdir}/*.so
1658370
%{_includedir}/aubio
1658370
1658370
%files python
1658370
%defattr(-,root,root,-)
1658370
%{python_sitearch}/%{name}
1658370
1658370
%changelog
1658370
* Sun Jul 13 2008 Anthony Green <green@redhat.com> 0.3.2-3
1658370
- Fix python package installation.
1658370
1658370
* Sun Jul 13 2008 Anthony Green <green@redhat.com> 0.3.2-2
1658370
- Untabify.
1658370
- Don't use rpath.
1658370
- Add python subpackage.
1658370
1658370
* Thu Jul 10 2008 Anthony Green <green@redhat.com> 0.3.2-1
1658370
- Created.