]>
Commit | Line | Data |
---|---|---|
042a8798 | 1 | Summary: Library implementing the AcoustID fingerprinting |
93381a8e | 2 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID |
042a8798 | 3 | Name: chromaprint |
93381a8e | 4 | Version: 0.7 |
65270d72 | 5 | Release: 3 |
93381a8e | 6 | License: LGPL v2.1+ |
042a8798 | 7 | Group: Libraries |
042a8798 | 8 | Source0: https://github.com/downloads/lalinsky/chromaprint/%{name}-%{version}.tar.gz |
93381a8e JB |
9 | # Source0-md5: 3005fc2c69b9ef4a5c6787ef9355a855 |
10 | Patch0: %{name}-ffmpeg.patch | |
0492623a | 11 | Patch1: %{name}-ffmpeg2.0.patch |
93381a8e JB |
12 | URL: http://www.acoustid.org/chromaprint/ |
13 | BuildRequires: boost-devel | |
14 | BuildRequires: cmake >= 2.6 | |
15 | BuildRequires: ffmpeg-devel | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: taglib-devel | |
042a8798 ER |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Chromaprint library is the core component of the AcoustID project. | |
22 | It's a client-side library that implements a custom algorithm for | |
23 | extracting fingerprints from raw audio sources. | |
24 | ||
93381a8e JB |
25 | The library exposes a simple C API and the Python language binding is |
26 | also available. The documentation for the C API can be found in the | |
27 | main header file. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Biblioteka Chromaprint to główny element projektu AcoustID. Jest to | |
31 | biblioteka kliencka implementująca własny algorytm wydobywania | |
32 | odcisków identyfikacyjnych z surowych strumieni dźwiękowych. | |
33 | ||
34 | Biblioteka udostępnia proste API C. Dostępne są także wiązania dla | |
35 | Pythona. Dokumentację dla API C można znaleźć w głównym pliku | |
36 | nagłówkowym. | |
042a8798 ER |
37 | |
38 | %package -n libchromaprint | |
39 | Summary: Library implementing the AcoustID fingerprinting | |
93381a8e JB |
40 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID |
41 | Group: Libraries | |
042a8798 ER |
42 | |
43 | %description -n libchromaprint | |
44 | Chromaprint library is the core component of the AcoustID project. | |
45 | It's a client-side library that implements a custom algorithm for | |
46 | extracting fingerprints from raw audio sources. | |
47 | ||
93381a8e JB |
48 | The library exposes a simple C API and the Python language binding |
49 | is also available. The documentation for the C API can be found in the | |
50 | main header file. | |
51 | ||
52 | %description -n libchromaprint -l pl.UTF-8 | |
53 | Biblioteka Chromaprint to główny element projektu AcoustID. Jest to | |
54 | biblioteka kliencka implementująca własny algorytm wydobywania | |
55 | odcisków identyfikacyjnych z surowych strumieni dźwiękowych. | |
56 | ||
57 | Biblioteka udostępnia proste API C. Dostępne są także wiązania dla | |
58 | Pythona. Dokumentację dla API C można znaleźć w głównym pliku | |
59 | nagłówkowym. | |
042a8798 ER |
60 | |
61 | %package -n libchromaprint-devel | |
93381a8e JB |
62 | Summary: Headers for developing programs that will use libchromaprint |
63 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów wykorzystujących libchromaprint | |
042a8798 ER |
64 | Group: Development/Libraries |
65 | Requires: libchromaprint = %{version}-%{release} | |
042a8798 ER |
66 | |
67 | %description -n libchromaprint-devel | |
68 | This package contains the headers that programmers will need to | |
93381a8e | 69 | develop applications which will use libchromaprint. |
042a8798 | 70 | |
93381a8e JB |
71 | %description -n libchromaprint-devel -l pl.UTF-8 |
72 | Ten pakiet zawiera pliki nagłówkowe potrzebne programistom do | |
73 | tworzenia aplikacji wykorzystujących bibliotekę libchromaprint. | |
042a8798 ER |
74 | |
75 | %prep | |
76 | %setup -q | |
93381a8e | 77 | %patch0 -p1 |
0492623a | 78 | %patch1 -p1 |
042a8798 ER |
79 | |
80 | %build | |
93381a8e JB |
81 | %cmake . \ |
82 | -DBUILD_TOOLS=ON \ | |
83 | -DWITH_AVFFT=ON | |
042a8798 ER |
84 | |
85 | %{__make} | |
86 | ||
042a8798 ER |
87 | %install |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
93381a8e JB |
92 | # omitted by make install |
93 | install -D tools/fpcollect $RPM_BUILD_ROOT%{_bindir}/fpcollect | |
042a8798 ER |
94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -n libchromaprint -p /sbin/ldconfig | |
99 | %postun -n libchromaprint -p /sbin/ldconfig | |
100 | ||
101 | %files -n libchromaprint | |
102 | %defattr(644,root,root,755) | |
93381a8e JB |
103 | %doc CHANGES.txt NEWS.txt README.txt |
104 | %attr(755,root,root) %{_bindir}/fpcollect | |
042a8798 | 105 | %attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.* |
93381a8e | 106 | %attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.0 |
042a8798 ER |
107 | |
108 | %files -n libchromaprint-devel | |
109 | %defattr(644,root,root,755) | |
93381a8e | 110 | %attr(755,root,root) %{_libdir}/libchromaprint.so |
042a8798 | 111 | %{_includedir}/chromaprint.h |
042a8798 | 112 | %{_pkgconfigdir}/libchromaprint.pc |