1 |
Name: acoustid-fingerprinter |
2 |
Version: 0.6 |
3 |
Release: %mkrel 15 |
4 |
Summary: Music AcoustID fingerprinting application |
5 |
|
6 |
Group: Sound/Utilities |
7 |
License: GPLv2+ |
8 |
URL: http://acoustid.org/fingerprinter |
9 |
Source: https://github.com/downloads/lalinsky/%{name}/%{name}-%{version}.tar.gz |
10 |
Patch0: acoustid-fingerprinter-fix-cmake-for-taglib-1.10.patch |
11 |
Patch1: acoustid-fingerprinter-ffmpeg3.patch |
12 |
Patch2: acoustid-fingerprinter-0.6-ffmpeg-2.0.patch |
13 |
# fix decoding with current ffmpeg |
14 |
# https://bugs.mageia.org/show_bug.cgi?id=9706 |
15 |
Patch3: acoustid-fingerprinter-request-s16-audio-format.patch |
16 |
# from debian: fix build with gcc 7 |
17 |
Patch4: acoustid-fingerprinter-gcc6.patch |
18 |
|
19 |
BuildRequires: cmake |
20 |
BuildRequires: qt4-devel |
21 |
BuildRequires: ffmpeg-devel |
22 |
BuildRequires: pkgconfig(taglib) |
23 |
BuildRequires: desktop-file-utils |
24 |
BuildRequires: pkgconfig(libchromaprint) |
25 |
|
26 |
|
27 |
%description |
28 |
Acoustid fingerprinter is a cross-platform GUI application that uses |
29 |
Chromaprint to submit audio fingerprints from your music collection |
30 |
to the Acoustid database. Only tagged audio files are submitted. |
31 |
Files tagged by MusicBrainz applications such as Picard are preferred, |
32 |
but it will submit fingerprints for any files that have tags such as |
33 |
track title, artist name, album name, etc. |
34 |
|
35 |
%prep |
36 |
%setup -q |
37 |
%autopatch -p1 |
38 |
|
39 |
%build |
40 |
%cmake -DCMAKE_BUILD_TYPE=Debug |
41 |
# removing the -O3 optimization flag for the release building type |
42 |
sed -i "s/-O3 -DNDEBUG//g" CMakeCache.txt |
43 |
%make_build |
44 |
|
45 |
|
46 |
%install |
47 |
%make_install -C build |
48 |
|
49 |
install -d -m755 %{buildroot}%{_datadir}/applications |
50 |
|
51 |
desktop-file-install \ |
52 |
--remove-key Encoding \ |
53 |
--dir %{buildroot}%{_datadir}/applications \ |
54 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
55 |
|
56 |
install -p -D -m 0644 images/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
57 |
|
58 |
%files |
59 |
%doc CHANGES.txt COPYING.txt |
60 |
%{_bindir}/%{name} |
61 |
%{_datadir}/applications/%{name}.desktop |
62 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |