3 %bcond_without ffmpeg # fpcalc build + libchromaprint using avfft
4 %bcond_with fftw3 # libchromaprint using fftw3 instead of avfft
9 Summary: Library implementing the AcoustID fingerprinting
10 Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID
16 #Source0Download: https://github.com/acoustid/chromaprint/releases
17 Source0: https://github.com/acoustid/chromaprint/releases/download/v%{version}/%{name}-%{version}.tar.gz
18 # Source0-md5: 54e71f86bcf1d34989db639044ba9628
20 Patch1: ffmpeg5-decode-retry.patch
21 URL: https://acoustid.org/chromaprint
22 BuildRequires: cmake >= 3.3
23 %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6}
24 %{?with_fftw3:BuildRequires: fftw3-devel >= 3}
25 BuildRequires: libstdc++-devel >= 6:4.7
26 BuildRequires: taglib-devel
27 Requires: libchromaprint = %{version}-%{release}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Chromaprint library is the core component of the AcoustID project.
32 It's a client-side library that implements a custom algorithm for
33 extracting fingerprints from raw audio sources.
35 The library exposes a simple C API and the Python language binding is
36 also available. The documentation for the C API can be found in the
39 %description -l pl.UTF-8
40 Biblioteka Chromaprint to główny element projektu AcoustID. Jest to
41 biblioteka kliencka implementująca własny algorytm wydobywania
42 odcisków identyfikacyjnych z surowych strumieni dźwiękowych.
44 Biblioteka udostępnia proste API C. Dostępne są także wiązania dla
45 Pythona. Dokumentację dla API C można znaleźć w głównym pliku
48 %package -n libchromaprint
49 Summary: Library implementing the AcoustID fingerprinting
50 Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID
53 %description -n libchromaprint
54 Chromaprint library is the core component of the AcoustID project.
55 It's a client-side library that implements a custom algorithm for
56 extracting fingerprints from raw audio sources.
58 The library exposes a simple C API and the Python language binding
59 is also available. The documentation for the C API can be found in the
62 %description -n libchromaprint -l pl.UTF-8
63 Biblioteka Chromaprint to główny element projektu AcoustID. Jest to
64 biblioteka kliencka implementująca własny algorytm wydobywania
65 odcisków identyfikacyjnych z surowych strumieni dźwiękowych.
67 Biblioteka udostępnia proste API C. Dostępne są także wiązania dla
68 Pythona. Dokumentację dla API C można znaleźć w głównym pliku
71 %package -n libchromaprint-devel
72 Summary: Headers for developing programs that will use libchromaprint
73 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów wykorzystujących libchromaprint
74 Group: Development/Libraries
75 Requires: libchromaprint = %{version}-%{release}
77 %description -n libchromaprint-devel
78 This package contains the headers that programmers will need to
79 develop applications which will use libchromaprint.
81 %description -n libchromaprint-devel -l pl.UTF-8
82 Ten pakiet zawiera pliki nagłówkowe potrzebne programistom do
83 tworzenia aplikacji wykorzystujących bibliotekę libchromaprint.
94 %{?with_ffmpeg:-DBUILD_TOOLS=ON} \
95 %{!?with_fftw3:-DWITH_AVFFT=ON} \
96 %{?with_fftw3:-DWITH_FFTW3=ON}
101 rm -rf $RPM_BUILD_ROOT
103 %{__make} -C build install \
104 DESTDIR=$RPM_BUILD_ROOT
107 rm -rf $RPM_BUILD_ROOT
109 %post -n libchromaprint -p /sbin/ldconfig
110 %postun -n libchromaprint -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/fpcalc
118 %files -n libchromaprint
119 %defattr(644,root,root,755)
120 %doc NEWS.txt README.md
121 %attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.1
124 %files -n libchromaprint-devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libchromaprint.so
127 %{_includedir}/chromaprint.h
128 %{_pkgconfigdir}/libchromaprint.pc