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 Source0: https://bitbucket.org/acoustid/chromaprint/downloads/%{name}-%{version}.tar.gz
17 # Source0-md5: 895c42ba6d769840a2e10e507ad9f14d
18 URL: https://acoustid.org/chromaprint
19 BuildRequires: cmake >= 2.8.12
20 %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6}
21 %{?with_fftw3:BuildRequires: fftw3-devel >= 3}
22 BuildRequires: libstdc++-devel
23 BuildRequires: taglib-devel
24 Requires: libchromaprint = %{version}-%{release}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Chromaprint library is the core component of the AcoustID project.
29 It's a client-side library that implements a custom algorithm for
30 extracting fingerprints from raw audio sources.
32 The library exposes a simple C API and the Python language binding is
33 also available. The documentation for the C API can be found in the
36 %description -l pl.UTF-8
37 Biblioteka Chromaprint to główny element projektu AcoustID. Jest to
38 biblioteka kliencka implementująca własny algorytm wydobywania
39 odcisków identyfikacyjnych z surowych strumieni dźwiękowych.
41 Biblioteka udostępnia proste API C. Dostępne są także wiązania dla
42 Pythona. Dokumentację dla API C można znaleźć w głównym pliku
45 %package -n libchromaprint
46 Summary: Library implementing the AcoustID fingerprinting
47 Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID
50 %description -n libchromaprint
51 Chromaprint library is the core component of the AcoustID project.
52 It's a client-side library that implements a custom algorithm for
53 extracting fingerprints from raw audio sources.
55 The library exposes a simple C API and the Python language binding
56 is also available. The documentation for the C API can be found in the
59 %description -n libchromaprint -l pl.UTF-8
60 Biblioteka Chromaprint to główny element projektu AcoustID. Jest to
61 biblioteka kliencka implementująca własny algorytm wydobywania
62 odcisków identyfikacyjnych z surowych strumieni dźwiękowych.
64 Biblioteka udostępnia proste API C. Dostępne są także wiązania dla
65 Pythona. Dokumentację dla API C można znaleźć w głównym pliku
68 %package -n libchromaprint-devel
69 Summary: Headers for developing programs that will use libchromaprint
70 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów wykorzystujących libchromaprint
71 Group: Development/Libraries
72 Requires: libchromaprint = %{version}-%{release}
74 %description -n libchromaprint-devel
75 This package contains the headers that programmers will need to
76 develop applications which will use libchromaprint.
78 %description -n libchromaprint-devel -l pl.UTF-8
79 Ten pakiet zawiera pliki nagłówkowe potrzebne programistom do
80 tworzenia aplikacji wykorzystujących bibliotekę libchromaprint.
87 %{?with_ffmpeg:-DBUILD_TOOLS=ON} \
88 %{!?with_fftw3:-DWITH_AVFFT=ON} \
89 %{?with_fftw3:-DWITH_FFTW3=ON}
94 rm -rf $RPM_BUILD_ROOT
96 DESTDIR=$RPM_BUILD_ROOT
99 rm -rf $RPM_BUILD_ROOT
101 %post -n libchromaprint -p /sbin/ldconfig
102 %postun -n libchromaprint -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/fpcalc
110 %files -n libchromaprint
111 %defattr(644,root,root,755)
112 %doc NEWS.txt README.md
113 %attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.1
116 %files -n libchromaprint-devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libchromaprint.so
119 %{_includedir}/chromaprint.h
120 %{_pkgconfigdir}/libchromaprint.pc