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