File spek.spec of Package spek

78
 
1
#
2
# spec file for package spek
3
#
4
# Copyright (c) 2020 SUSE LLC
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
19
Name:           spek
20
Version:        0.8.3
21
Release:        0
22
Summary:        Tool for audio spectrum analysis and visualization
23
License:        GPL-3.0-only
24
Group:          Productivity/Multimedia/Sound/Utilities
25
URL:            http://spek.cc/
26
Source:         https://github.com/alexkay/spek/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
27
Patch0:         ffmpeg_2.9.patch
28
Patch1:         fix-compilation-with-libav-8.patch
29
BuildRequires:  autoconf
30
BuildRequires:  automake
31
BuildRequires:  gcc-c++
32
BuildRequires:  hicolor-icon-theme
33
BuildRequires:  intltool
34
BuildRequires:  pkgconfig
35
BuildRequires:  update-desktop-files
36
BuildRequires:  wxGTK-devel
37
BuildRequires:  pkgconfig(libavcodec) >= 53.25
38
BuildRequires:  pkgconfig(libavformat) >= 53.17
39
BuildRequires:  pkgconfig(libavutil) >= 51.17
40
41
%description
42
Spek helps to analyse your audio files by showing their spectrogram.
43
It supports all popular lossy and lossless audio file formats.
44
45
Features:
46
  * Ultra-fast signal processing, uses multiple threads to further
47
    speed up the analysis
48
  * Shows the codec name and the audio signal parameters
49
  * Can save the spectrogram as an image file
50
  * Drag-and-drop support; associates with common audio file formats
51
  * Auto-fitting time, frequency and spectral density rulers
52
  * Adjustable spectral density range
53
54
%prep
55
%setup -q
56
%patch0 -p1
57
%patch1 -p1
58
59
%build
60
./autogen.sh
61
%configure
62
%make_build
63
64
%install
65
%make_install
66
%suse_update_desktop_file -r %{name} AudioVideo Player
67
%find_lang %{name}
68
69
%files -f %{name}.lang
70
%license LICENCE.md
71
%doc README.md
72
%{_bindir}/%{name}
73
%{_datadir}/applications/%{name}.desktop
74
%{_datadir}/icons/hicolor/*/apps/%{name}.*
75
%{_mandir}/man1/%{name}.1%{?ext_man}
76
77
%changelog
78