913a27e
Name:           sonic-visualiser
12d192c
Version:        1.7.2
8b5b37d
Release:        1%{?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
cda6867
Source1:        sonic-visualiser.desktop
cda6867
Patch0:         sonic-visualiser-1.5-gcc44.patch
cda6867
Patch1:         sonic-visualiser-1.5-alsa.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
b5469b5
BuildRequires:  alsa-lib-devel jack-audio-connection-kit-devel
b5469b5
BuildRequires:  pulseaudio-libs-devel
43cc204
BuildRequires:  redland-devel rubberband-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
b5469b5
# https://sourceforge.net/tracker/?func=detail&aid=2715387&group_id=162924&atid=825705
b5469b5
%patch0 -p1 -b .gcc44
b5469b5
# https://sourceforge.net/tracker/?func=detail&aid=2715381&group_id=162924&atid=825705
b5469b5
%patch1 -p1 -b .alsa
913a27e
913a27e
913a27e
%build
913a27e
qmake-qt4
cda6867
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
cda6867
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
913a27e
913a27e
%postun
cda6867
if [ $1 -eq 0 ] ; then
cda6867
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
cda6867
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
913a27e
fi
913a27e
cda6867
%posttrans
cda6867
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
cda6867
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
a59181b
* Wed Jun 02 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 1.7.2-1
a59181b
- Updated to 1.7.2
a59181b
- Release Notes:
a59181b
- (reference: https://sourceforge.net/projects/sv1/files/sonic-visualiser/1.7.2/CHANGELOG/download)
a59181b
-   The time-value layer now has an origin line and an option to
a59181b
 show derivatives (change from one point to the next) rather than
a59181b
 raw values
a59181b
-   A crash when pressing Play straight after New Session has been
a59181b
 fixed
a59181b
-   Builds with latest liboggz
a59181b
a59181b
* Wed Jun 02 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 1.7.1-2
a59181b
- Bump for new liboggz lib
12d192c
8c2b3f0
* Wed Jan 13 2010 Michel Salim <salimma@fedoraproject.org> - 1.7.1-1
8c2b3f0
- Update to 1.7.1
8c2b3f0
fa8d9aa
* Sun Jan 03 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.6-6
fa8d9aa
- rebuild (redland)
fa8d9aa
ac4fe6c
* Sun Jan 03 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.6-5
ac4fe6c
- rebuild (rasqal/redland)
ac4fe6c
9432d85
* Wed Sep 23 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.6-4
9432d85
- Update desktop file according to F-12 FedoraStudio feature
9432d85
cda6867
* Sun Sep 13 2009 Michel Salim <salimma@fedoraproject.org> - 1.6-3
cda6867
- No longer conflict with RPM Fusion packaging
cda6867
- Updated icon cache scriptlet
cda6867
cda6867
* Sun Aug 23 2009 Michel Salim <salimma@fedoraproject.org> - 1.6-2
cda6867
- Package now conflicts with RPM Fusion packaging
cda6867
cda6867
* Fri Aug 21 2009 Michel Salim <salimma@fedoraproject.org> - 1.6-1
cda6867
- Update to 1.6
cda6867
c634e59
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
c634e59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c634e59
b5469b5
* Thu Mar 26 2009 Michel Salim <salimma@fedoraproject.org> - 1.5-1
b5469b5
- Update to 1.5
b5469b5
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