]>
Commit | Line | Data |
---|---|---|
1 | Summary: Library implementing the AcoustID fingerprinting | |
2 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID | |
3 | Name: chromaprint | |
4 | Version: 1.2 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: https://bitbucket.org/acoustid/chromaprint/downloads/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 748da044a8f0ee5f31edec8b67045b3e | |
10 | URL: https://acoustid.org/chromaprint | |
11 | BuildRequires: boost-devel | |
12 | BuildRequires: cmake >= 2.6 | |
13 | BuildRequires: ffmpeg-devel >= 0.6 | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRequires: taglib-devel | |
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 | ||
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. | |
35 | ||
36 | %package -n libchromaprint | |
37 | Summary: Library implementing the AcoustID fingerprinting | |
38 | Summary(pl.UTF-8): Biblioteka implementująca odciski AcoustID | |
39 | Group: Libraries | |
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 | ||
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. | |
58 | ||
59 | %package -n libchromaprint-devel | |
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 | |
62 | Group: Development/Libraries | |
63 | Requires: libchromaprint = %{version}-%{release} | |
64 | ||
65 | %description -n libchromaprint-devel | |
66 | This package contains the headers that programmers will need to | |
67 | develop applications which will use libchromaprint. | |
68 | ||
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. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %cmake . \ | |
78 | -DBUILD_EXAMPLES=ON \ | |
79 | -DWITH_AVFFT=ON | |
80 | ||
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
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) | |
96 | %doc NEWS.txt README.md | |
97 | %attr(755,root,root) %{_bindir}/fpcalc | |
98 | %attr(755,root,root) %{_libdir}/libchromaprint.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libchromaprint.so.0 | |
100 | ||
101 | %files -n libchromaprint-devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libchromaprint.so | |
104 | %{_includedir}/chromaprint.h | |
105 | %{_pkgconfigdir}/libchromaprint.pc |