1
0
Files
sonic-visualiser/sonic-visualiser.spec
Konstantin Voinov a27ee38e13 - Use gcc-12 for Leap 15.6
- Update to 5.0
  * Port to Qt6. The code now builds only with Qt6, and Qt5 is no
    longer supported
  * Add mechanism to ignore plugins on subsequent runs if they fail to
    load, and to review ignored plugins from the preferences dialog
  * Add Mel scale to the options for vertical spectrogram scale
  
  * Add an opaque toggle to the spectrogram; switching it off gives
    spectrograms some transparency, so they can be overlaid over other
    layers, including other spectrograms
  
  * Update opaque toggle in colour 3d layers so that it works like the
    new one in the spectrogram. Previously colour 3d plot layers could
    be translucent at low resolutions but not at higher ones; now the
    setting affects all resolutions. Correspondingly make it default to
    off, as in the spectrogram
  * Add smoothing toggle directly to spectrogram parameters, like the
    one already found in colour 3d plot layers. Previously spectrogram
    smoothing could be toggled only from the preferences
  * Stop snapping spectrogram frequency range to bin frequencies. This
    already-confusing feature caused problems with the new support for
    translucent spectrograms, which permits overlaying spectrograms of
    differing bin counts that would be too hard to line up properly if
    the frequency extents were always snapped to the nearest bin
  * Clarify keyboard and mouse shortcut descriptions in the Key And
    Mouse Reference window, especially for the platform-specific
    descriptions used on the Mac, and add a few more alternative
    shortcuts including more standard zoom in/out shortcuts
  * Fix disappearing peaks in peak-bin display mode in the spectrogram,
    caused by overzealous smoothing
  * Fix jumps in spectrogram when changing zoom level between certain
    values in hi-dpi pixel-doubled situations, caused by a failure of
    cache invalidation
  * Fix some very slow spectrogram painting
  * Fix disappearance of right-button Transforms menu after file load
  * Fix inconsistent default vs set threshold values in spectrogram
  * Fix crash on painting very low-resolution dense 3d plots

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/sonic-visualiser?expand=0&rev=44
2024-09-09 22:44:05 +00:00

201 lines
6.7 KiB
RPMSpec

#
# spec file for package sonic-visualiser
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2016 Tom Mbrt <tom.mbrt@googlemail.com>
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
# Copyright (c) 2011 Evstifeev Roman <someuniquename@gmail.com>
# Copyright (c) 2005-2010 oc2pus <oc2pus@arcor.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#%%define urlcode 2786
Name: sonic-visualiser
Version: 5.0
Release: 0
Summary: A program for viewing and analysing contents of audio files
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Utilities
URL: http://www.sonicvisualiser.org/
#Source: https://code.soundsoftware.ac.uk/attachments/download/%%{urlcode}/%%{name}-%%{version}.tar.gz
Source0: https://github.com/sonic-visualiser/sonic-visualiser/releases/download/sv_v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.xml
# PATCH-FIX-OPENSUSE sonic-visualiser-system-dataquay.patch aloisio@gmx.com -- force use of system libdataquay
Patch0: sonic-visualiser-system-dataquay.patch
BuildRequires: capnproto
BuildRequires: dssi
BuildRequires: flac
%if 0%{?is_opensuse} && 0%{?suse_version} <= 1600
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: ladspa
BuildRequires: meson
BuildRequires: ninja
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: portaudio-devel
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6Platform)
BuildRequires: pkgconfig(Qt6Svg)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(capnp)
%if 0%{?BUILD_ORIG}
BuildRequires: pkgconfig(dataquay) >= 0.9
%endif
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(fishsound)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(id3tag)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(liblo)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(lrdf)
BuildRequires: pkgconfig(mad)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(oggz) >= 0.9.5
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(raptor2) >= 2.0.4
BuildRequires: pkgconfig(rasqal)
BuildRequires: pkgconfig(redland) >= 1.0.14
BuildRequires: pkgconfig(rubberband)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(serd-0)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(sord-0)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(vamp-hostsdk) >= 2.10
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
Requires: dssi
Requires: ladspa
%description
Sonic Visualiser is a program for viewing and analysing the contents
of music audio files.
With Sonic Visualiser you can:
* Load audio files in various formats and view their waveforms
* Look at audio visualisations such as spectrogram views, with
interactive adjustment of display parameters
* Annotate audio data by adding labelled time points and defining
segments, point values and curves
* Run feature-extraction plugins to calculate annotations
automatically, using algorithms such as beat trackers, pitch
detectors and so on
* Import annotation data from various text formats and MIDI files
* Play back the original audio with synthesised annotations, taking
care to synchronise playback with the display position
* Slow down playback and loop segments of interest, including
seamless looping of complex non-contiguous areas
* Export annotations and audio selections to external files.
* Sonic Visualiser can also be controlled remotely using the Open Sound
Control (OSC) protocol
%prep
%setup -q
%if 0%{?BUILD_ORIG}
%patch -P 0 -p1
%endif
# required with capnproto 0.7.0
for x in *.pr* config* Makefile* ; do perl -i -p -e 's/c\+\+11/c++14/g' "$x" ; done
# Don't use -Werror on releases
find . -name configure -o -name "*.pro" -o -name "*.pri" -exec sed -i s'# -Werror##g' {} \;
# fix arch lib dir
sed -e 's|/usr/lib/|/usr/%{_lib}/|g;s|/usr/local/lib/|/usr/local/%{_lib}/|g' \
-i checker/src/knownplugins.cpp svcore/system/System.h \
vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp
%build
export LC_ALL=en_US.UTF-8
%if 0%{?is_opensuse} && 0%{?suse_version} <= 1600
export CC=gcc-12 CXX=g++-12
%endif
%meson
%meson_build
%install
%meson_install
# fix executable bit for helper programs
chmod +x %{buildroot}%{_bindir}/*vamp-*
# plugin dir
install -dm 755 %{buildroot}%{_libdir}/vamp
# icon
for size in 16 22 24 32 48 64 128 ; do
install -Dm 644 icons/sv-${size}x${size}.png %{buildroot}/%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
done
install -Dm 644 icons/sv-icon.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
ln -s sonic-visualiser.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/sv-icon.svg
# mime types
install -Dm 644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
install -Dm 644 x-sonicvisualiser.desktop %{buildroot}/%{_datadir}/mimelnk/application/x-sonicvisualiser.desktop
install -Dm 644 x-sonicvisualiser-layer.desktop %{buildroot}/%{_datadir}/mimelnk/application/x-sonicvisualiser-layer.desktop
# Menu
%suse_update_desktop_file -i %{name} AudioVideo Audio Music
%post
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%files
%doc CHANGELOG README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/piper-convert
%{_bindir}/piper-vamp-simple-server
%{_bindir}/vamp-plugin-load-checker
%dir %{_libdir}/vamp
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/icons/hicolor/scalable/apps/sv-icon.svg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%dir %{_datadir}/mimelnk
%dir %{_datadir}/mimelnk/application
%{_datadir}/mimelnk/application/x-sonicvisualiser*
%changelog