6b3f611
# whether to do a verbose build
6b3f611
%bcond_without verbose_build
6b3f611
%if %{with verbose_build}
6b3f611
%global _verbose -v
6b3f611
%else
6b3f611
%global _verbose %{nil}
6b3f611
%endif
1658370
1658370
Name:           aubio
b6188b3
Version:        0.4.2
82d46e1
Release:        10%{?dist}
1658370
Summary:        An audio labelling library
1658370
1658370
Group:          System Environment/Libraries
97623d1
License:        GPLv3+
1658370
URL:            http://aubio.org/
b6188b3
Source0:        http://aubio.org/pub/aubio-%{version}.tar.bz2
a5a57d3
Patch0:         0001-make-version-status-PEP440-compliant.patch
a5a57d3
Patch1:         0002-Python-3-use-explicit-relative-import.patch
a5a57d3
Patch2:         0003-Python-3-coerce-iterators-into-lists-where-necessary.patch
a5a57d3
Patch3:         0004-Python-3-use-Py_TYPE-instead-of-ob_type-member.patch
a5a57d3
Patch4:         0005-Python-3-raise-RuntimeErrors-not-generic-exceptions.patch
a5a57d3
Patch5:         0006-Python-3-use-new-raise-syntax.patch
b6188b3
b6188b3
BuildRequires:  doxygen
b6188b3
BuildRequires:  fftw-devel
78b6efe
BuildRequires:  gcc
b6188b3
BuildRequires:  jack-audio-connection-kit-devel
b6188b3
BuildRequires:  libsamplerate-devel
b6188b3
BuildRequires:  libsndfile-devel
a5abdaf
BuildRequires:  numpy python3-numpy
b6188b3
BuildRequires:  pkgconfig
a5abdaf
BuildRequires:  python2-devel python3-devel
a5abdaf
BuildRequires:  python2-setuptools python3-setuptools
b6188b3
BuildRequires:  txt2man
f33e7ee
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 29 || 0%{?rhel} >= 8
f33e7ee
# This is needed for waf
f33e7ee
BuildRequires:  /usr/bin/python
f33e7ee
%endif
f33e7ee
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
a5abdaf
%package	    python2
a5abdaf
Summary:        Python 2 language bindings for %{name}
4490d5d
Group:          Development/Libraries
4490d5d
Requires:       %{name} = %{version}-%{release}
a5abdaf
Requires:       python2
a5abdaf
Obsoletes:      %{name}-python < 0.4.0
1658370
a5abdaf
%description    python2
a5abdaf
The %{name}-python2 package contains the Python 2 language bindings for
a5abdaf
%{name}.
a5abdaf
a5abdaf
%package	    python3
a5abdaf
Summary:        Python 3 language bindings for %{name}
a5abdaf
Group:          Development/Libraries
a5abdaf
Requires:       %{name} = %{version}-%{release}
a5abdaf
Requires:       python3
a5abdaf
a5abdaf
%description    python3
a5abdaf
The %{name}-python3 package contains the Python 3 language bindings for
a5abdaf
%{name}.
1658370
1658370
%prep
4a57da7
%autosetup -p1
1658370
a5abdaf
# copy python directory for Python 2 support
a5abdaf
rm -rf python2
a5abdaf
cp -r python python2
1658370
b6188b3
%build
b6188b3
./waf configure \
b6188b3
    --prefix="%_prefix" \
b6188b3
    --bindir="%_bindir" \
b6188b3
    --sysconfdir="%_sysconfdir" \
b6188b3
    --datadir="%_datadir" \
b6188b3
    --includedir="%_includedir" \
b6188b3
    --libdir="%_libdir" \
b6188b3
    --mandir="%_mandir" \
b6188b3
    --docdir="%_docdir" \
b6188b3
    --enable-fftw3f \
b6188b3
    --enable-complex \
b6188b3
    --enable-jack \
b6188b3
    --enable-samplerate
b6188b3
6b3f611
./waf build %{_verbose} %{?_smp_mflags}
b6188b3
a5abdaf
pushd python2
b6188b3
%py2_build
b6188b3
popd
1658370
a5abdaf
pushd python
a5abdaf
%py3_build
a5abdaf
popd
a5abdaf
1658370
%install
6b3f611
./waf --destdir=%{buildroot} %{_verbose} install
b6188b3
rm -rf libaubio-doc
b6188b3
cp -r %{buildroot}%{_docdir}/libaubio-doc libaubio-doc
b6188b3
rm -rf %{buildroot}%{_docdir}/libaubio-doc
b6188b3
a5abdaf
pushd python2
b6188b3
%py2_install
b6188b3
popd
1658370
a5abdaf
pushd python
a5abdaf
%py3_install
a5abdaf
popd
1658370
1658370
%post -p /sbin/ldconfig
1658370
1658370
%postun -p /sbin/ldconfig
1658370
1658370
1658370
%files
b6188b3
%license COPYING
b6188b3
%doc AUTHORS ChangeLog README.md
1658370
%{_libdir}/*.so.*
1658370
%{_bindir}/*
b6188b3
%{_mandir}/man1/*
1658370
1658370
%files devel
b6188b3
%doc libaubio-doc/html
1658370
%{_libdir}/pkgconfig/*.pc
1658370
%{_libdir}/*.so
1658370
%{_includedir}/aubio
1658370
a5abdaf
%files python2
b6188b3
%{python2_sitearch}/%{name}
b6188b3
%{python2_sitearch}/%{name}*.egg-info
1658370
a5abdaf
%files python3
a5abdaf
%{python3_sitearch}/%{name}
a5abdaf
%{python3_sitearch}/%{name}*.egg-info
a5abdaf
1658370
%changelog
f33e7ee
* Tue Jul 24 2018 Nils Philippsen <nils@tiptoe.de>
f33e7ee
- BR: /usr/bin/python on Fedora 29 and later
78b6efe
- explicitly require gcc for building
f33e7ee
82d46e1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-10
82d46e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
82d46e1
0fd7716
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-9
0fd7716
- Rebuilt for Python 3.7
0fd7716
68549cd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-8
68549cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
68549cd
3216378
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-7
3216378
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3216378
9b2efd5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-6
9b2efd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9b2efd5
e6a948f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-5
e6a948f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e6a948f
96fc842
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-4
96fc842
- Rebuild for Python 3.6
96fc842
77f735c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
77f735c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
77f735c
0c615c9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
0c615c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0c615c9
b6188b3
* Thu Nov 26 2015 Nils Philippsen <nils@tiptoe.de> - 0.4.2-1
b6188b3
- version 0.4.2
97623d1
- new license: GPLv3+
4a57da7
- use %%autosetup macro
1e640df
- remove some old cruft
6b3f611
- waf: build verbosely
a5abdaf
- rename python subpackage to python2, add python3 subpackage
a5a57d3
- many Python fixes, especially for Python 3
b6188b3
6f57770
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-17
6f57770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6f57770
21f0355
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-16
21f0355
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
21f0355
533b52a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-15
533b52a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
533b52a
508025c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-14
508025c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
508025c
824dceb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-13
824dceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
824dceb
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.