1 |
Name: acoustid-fingerprinter |
2 |
Version: 0.6 |
3 |
Release: %mkrel 6 |
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 |
# fix decoding with current ffmpeg |
11 |
# https://bugs.mageia.org/show_bug.cgi?id=9706 |
12 |
Patch0: acoustid-fingerprinter-request-s16-audio-format.patch |
13 |
Patch1: acoustid-fingerprinter-0.6-ffmpeg-2.0.patch |
14 |
BuildRequires: cmake |
15 |
BuildRequires: qt4-devel |
16 |
BuildRequires: ffmpeg-devel |
17 |
BuildRequires: taglib-devel |
18 |
BuildRequires: desktop-file-utils |
19 |
BuildRequires: pkgconfig(libchromaprint) |
20 |
|
21 |
|
22 |
%description |
23 |
Acoustid fingerprinter is a cross-platform GUI application that uses |
24 |
Chromaprint to submit audio fingerprints from your music collection |
25 |
to the Acoustid database. Only tagged audio files are submitted. |
26 |
Files tagged by MusicBrainz applications such as Picard are preferred, |
27 |
but it will submit fingerprints for any files that have tags such as |
28 |
track title, artist name, album name, etc. |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
%apply_patches |
33 |
|
34 |
%build |
35 |
%cmake -DCMAKE_BUILD_TYPE=Debug |
36 |
# removing the -O3 optimization flag for the release building type |
37 |
sed -i "s/-O3 -DNDEBUG//g" CMakeCache.txt |
38 |
%make |
39 |
|
40 |
|
41 |
%install |
42 |
%makeinstall_std -C build |
43 |
|
44 |
install -d -m755 %{buildroot}%{_datadir}/applications |
45 |
|
46 |
desktop-file-install \ |
47 |
--remove-key Encoding \ |
48 |
--dir %{buildroot}%{_datadir}/applications \ |
49 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
50 |
|
51 |
install -p -D -m 0644 images/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
52 |
|
53 |
%files |
54 |
%doc CHANGES.txt COPYING.txt |
55 |
%{_bindir}/%{name} |
56 |
%{_datadir}/applications/%{name}.desktop |
57 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |