]>
Commit | Line | Data |
---|---|---|
3c0e7068 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without ffmpeg # fpcalc build + libchromaprint using avfft | |
4 | %bcond_with fftw3 # libchromaprint using fftw3 instead of avfft | |
5 | # | |
6 | %if %{without ffmpeg} | |
7 | %define with_fftw3 1 | |
8 | %endif | |
042a8798 | 9 | Summary: Library implementing the AcoustID fingerprinting |
93381a8e | 10 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID |
042a8798 | 11 | Name: chromaprint |
e281636f | 12 | Version: 1.4.2 |
3478914b | 13 | Release: 3 |
93381a8e | 14 | License: LGPL v2.1+ |
042a8798 | 15 | Group: Libraries |
dd097dae | 16 | Source0: https://bitbucket.org/acoustid/chromaprint/downloads/%{name}-%{version}.tar.gz |
e281636f | 17 | # Source0-md5: 895c42ba6d769840a2e10e507ad9f14d |
dd097dae | 18 | URL: https://acoustid.org/chromaprint |
e281636f | 19 | BuildRequires: cmake >= 2.8.12 |
3c0e7068 JB |
20 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6} |
21 | %{?with_fftw3:BuildRequires: fftw3-devel >= 3} | |
93381a8e JB |
22 | BuildRequires: libstdc++-devel |
23 | BuildRequires: taglib-devel | |
3c0e7068 | 24 | Requires: libchromaprint = %{version}-%{release} |
042a8798 ER |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
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. | |
31 | ||
93381a8e JB |
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 | |
34 | main header file. | |
35 | ||
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. | |
40 | ||
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 | |
43 | nagłówkowym. | |
042a8798 ER |
44 | |
45 | %package -n libchromaprint | |
46 | Summary: Library implementing the AcoustID fingerprinting | |
93381a8e JB |
47 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID |
48 | Group: Libraries | |
042a8798 ER |
49 | |
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. | |
54 | ||
93381a8e JB |
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 | |
57 | main header file. | |
58 | ||
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. | |
63 | ||
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 | |
66 | nagłówkowym. | |
042a8798 ER |
67 | |
68 | %package -n libchromaprint-devel | |
93381a8e JB |
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 | |
042a8798 ER |
71 | Group: Development/Libraries |
72 | Requires: libchromaprint = %{version}-%{release} | |
042a8798 ER |
73 | |
74 | %description -n libchromaprint-devel | |
75 | This package contains the headers that programmers will need to | |
93381a8e | 76 | develop applications which will use libchromaprint. |
042a8798 | 77 | |
93381a8e JB |
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. | |
042a8798 ER |
81 | |
82 | %prep | |
83 | %setup -q | |
84 | ||
85 | %build | |
93381a8e | 86 | %cmake . \ |
e281636f | 87 | %{?with_ffmpeg:-DBUILD_TOOLS=ON} \ |
3c0e7068 JB |
88 | %{!?with_fftw3:-DWITH_AVFFT=ON} \ |
89 | %{?with_fftw3:-DWITH_FFTW3=ON} | |
042a8798 ER |
90 | |
91 | %{__make} | |
92 | ||
042a8798 ER |
93 | %install |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
042a8798 ER |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -n libchromaprint -p /sbin/ldconfig | |
102 | %postun -n libchromaprint -p /sbin/ldconfig | |
103 | ||
3c0e7068 JB |
104 | %if %{with ffmpeg} |
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_bindir}/fpcalc | |
108 | %endif | |
109 | ||
042a8798 ER |
110 | %files -n libchromaprint |
111 | %defattr(644,root,root,755) | |
dd097dae | 112 | %doc NEWS.txt README.md |
042a8798 | 113 | %attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.* |
3c0e7068 | 114 | %attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.1 |
042a8798 ER |
115 | |
116 | %files -n libchromaprint-devel | |
117 | %defattr(644,root,root,755) | |
93381a8e | 118 | %attr(755,root,root) %{_libdir}/libchromaprint.so |
042a8798 | 119 | %{_includedir}/chromaprint.h |
042a8798 | 120 | %{_pkgconfigdir}/libchromaprint.pc |