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
3ae5159
Release:        12%{?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
4490d5d
# Fix byte-compilation error. Borrowed from Debian
4490d5d
Patch0:         aubio-numarray-gnuplot.patch
4490d5d
# Fix DSO-linking failure
4490d5d
Patch1:         aubio-linking.patch
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
6e17b68
BuildRequires:  python-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
4490d5d
Summary:        Python language bindings for %{name}
4490d5d
Group:          Development/Libraries
4490d5d
Requires:       %{name} = %{version}-%{release}
1658370
Requires:       python
4490d5d
BuildRequires:  python swig
1658370
4490d5d
%description    python
1658370
The %{name}-python package contains the Python language bindings for %{name}.
1658370
1658370
%prep
1658370
%setup -q
4490d5d
%patch0 -p1
4490d5d
%patch1 -p1 -b .linking
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
3ae5159
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-12
3ae5159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ae5159
e1f3eb8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-11
e1f3eb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e1f3eb8
aa1494e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-10
aa1494e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
aa1494e
e40cf5b
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.2-9
e40cf5b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e40cf5b
4490d5d
* Wed Feb 10 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.3.2-8
4490d5d
- Fix DSO-linking failure
4490d5d
- Fix byte-compilation failure
4490d5d
17f7ecd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-7
17f7ecd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
17f7ecd
2fd73d3
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6
2fd73d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2fd73d3
6474fb8
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.2-5
6474fb8
- Rebuild for Python 2.6
6474fb8
6e17b68
* Sun Jul 13 2008 Anthony Green <green@redhat.com> 0.3.2-4
6e17b68
- BuildRequire python-devel.
6e17b68
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.