913a27e
# rebuild with --with libmad to enable support for MP3 files
913a27e
Name:           sonic-visualiser
43cc204
Version:        1.4
52072ed
Release:        4%{?dist}
913a27e
Summary:        A program for viewing and exploring audio data
913a27e
913a27e
Group:          Applications/Multimedia
913a27e
License:        GPLv2+
913a27e
URL:            http://www.sonicvisualiser.org/
2896366
Source0:        http://downloads.sourceforge.net/sv1/sonic-visualiser-%{version}.tar.bz2
913a27e
Source1:        %{name}.desktop
65893bc
Patch0:         %{name}-1.4-specfix.patch
0d59bd6
Patch1:         %{name}-1.4-gcc44.patch
913a27e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
913a27e
913a27e
BuildRequires:  qt4-devel vamp-plugin-sdk-devel
913a27e
BuildRequires:  libsndfile-devel libsamplerate-devel fftw-devel bzip2-devel
43cc204
BuildRequires:  jack-audio-connection-kit-devel pulseaudio-libs-devel
43cc204
BuildRequires:  redland-devel rubberband-devel
913a27e
%{?_with_libmad:BuildRequires:  libmad-devel}
43cc204
BuildRequires:  liboggz-devel libfishsound-devel liblo-devel
913a27e
BuildRequires:  desktop-file-utils
913a27e
Requires:       hicolor-icon-theme
913a27e
913a27e
%description
913a27e
Sonic Visualiser is an application for viewing and analysing the
913a27e
contents of music audio files.
913a27e
913a27e
The aim of Sonic Visualiser is to be the first program you reach for
913a27e
when want to study a musical recording rather than simply listen to
913a27e
it.
913a27e
913a27e
As well as a number of features designed to make exploring audio data
913a27e
as revealing and fun as possible, Sonic Visualiser also has powerful
913a27e
annotation capabilities to help you to describe what you find, and the
913a27e
ability to run automated annotation and analysis plugins in the Vamp
913a27e
analysis plugin format – as well as applying standard audio effects.
913a27e
913a27e
913a27e
%prep
913a27e
%setup -q
65893bc
%patch0 -p1 -b .specfix
0d59bd6
%patch1 -p1 -b .gcc44
913a27e
913a27e
913a27e
%build
913a27e
qmake-qt4
ba35dcf
# patch in correct optflags
43cc204
sed -i 's|QMAKE_CXXFLAGS_RELEASE += -DNDEBUG -DNO_TIMING .*|QMAKE_CXXFLAGS_RELEASE += -DNDEBUG -DNO_TIMING ${RPM_OPT_FLAGS}|1' sv.prf
913a27e
# parallel build does not work
ba35dcf
make #%{?_smp_mflags}
913a27e
913a27e
913a27e
%install
913a27e
rm -rf $RPM_BUILD_ROOT
913a27e
# install does nothing right now
913a27e
# make install DESTDIR=$RPM_BUILD_ROOT
913a27e
mkdir -p $RPM_BUILD_ROOT%{_bindir}
65893bc
install -m 755 -p sv/sonic-visualiser \
0d59bd6
        $RPM_BUILD_ROOT%{_bindir}/
913a27e
# desktop file and icon
913a27e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
913a27e
install -m 644 -p sv/icons/sv-48x48.png \
913a27e
        $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/sonic-visualiser.png
913a27e
desktop-file-install --vendor="fedora" \
913a27e
                     --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
913a27e
                     %{SOURCE1}
913a27e
913a27e
913a27e
%clean
913a27e
rm -rf $RPM_BUILD_ROOT
913a27e
913a27e
913a27e
%post
913a27e
touch --no-create %{_datadir}/icons/hicolor
913a27e
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
913a27e
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
913a27e
fi
913a27e
913a27e
%postun
913a27e
touch --no-create %{_datadir}/icons/hicolor
913a27e
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
913a27e
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
913a27e
fi
913a27e
913a27e
913a27e
%files
913a27e
%defattr(-,root,root,-)
913a27e
%doc COPYING README README.OSC
913a27e
%{_bindir}/sonic-visualiser
913a27e
%{_datadir}/applications/*.desktop
913a27e
%{_datadir}/icons/hicolor/*/apps/*.png
913a27e
913a27e
913a27e
%changelog
52072ed
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
52072ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
52072ed
0d59bd6
* Sun Feb  8 2009 Michel Salim <salimma@fedoraproject.org> - 1.4-3
0d59bd6
- Fix compilation problem with GCC 4.4
0d59bd6
65893bc
* Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 1.4-2
65893bc
- Fix qmake profiles to properly detect 64-bit Linux
65893bc
43cc204
* Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 1.4-1
43cc204
- Update to 1.4
43cc204
- Replace PortAudio dependency with PulseAudio
43cc204
43cc204
* Thu Jul 17 2008 Michel Salim <salimma@fedoraproject.org> - 1.3-1
2c58d36
- Update to 1.3
2c58d36
2896366
* Sun Mar 30 2008 Michel Salim <michel.sylvan@gmail.com> - 1.2-1
2896366
- Update to 1.2
2896366
bb63be6
* Fri Feb 15 2008 Michel Salim <michel.sylvan@gmail.com> - 1.0-5
bb63be6
- Use correct optflags
bb63be6
fecdfb7
* Wed Feb 13 2008 Michel Salim <michel.sylvan@gmail.com> - 1.0-4
fecdfb7
- Exclude ppc for now. On it, qmake uses wrong (x86) optflags (#432733).
a1413e6
- Add missing BR on libfishsound-devel
fecdfb7
 
846066a
* Sun Feb  3 2008 Michel Salim <michel.sylvan@gmail.com> - 1.0-3
846066a
- Add some #includes, needed due to GCC 4.3's header dependency cleanup
846066a
913a27e
* Sun Jan 27 2008 Michel Salim <michel.sylvan@gmail.com> - 1.0-2
913a27e
- Fix icon placement and license
913a27e
913a27e
* Wed Jan 16 2008 Michel Salim <michel.sylvan@gmail.com> - 1.0-1
913a27e
- Initial Fedora package
913a27e