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