]>
Commit | Line | Data |
---|---|---|
b2a6d082 JB |
1 | Summary: Open Source implementation of Audio Processing Technology codec (aptX) |
2 | Summary(pl.UTF-8): Otwarta implementacja kodeka Audio Processing Technology (aptX) | |
3 | Name: libopenaptx | |
f8381e1f | 4 | Version: 0.2.1 |
b2a6d082 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/pali/libopenaptx/releases | |
9 | Source0: https://github.com/pali/libopenaptx/releases/download/%{version}/%{name}-%{version}.tar.gz | |
f8381e1f | 10 | # Source0-md5: 83e12a34b86ee514fc5bb6f3ab060611 |
b2a6d082 JB |
11 | Patch0: %{name}-norpath.patch |
12 | URL: https://github.com/pali/libopenaptx | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | This is Open Source implementation of Audio Processing Technology | |
17 | codec (aptX) derived from ffmpeg 4.0 project and licensed under LGPL | |
18 | v2.1+. This codec is mainly used in Bluetooth A2DP profile. | |
19 | ||
20 | %description -l pl.UTF-8 | |
21 | Ten pakiet zawiera mającą otwarte źródła implementację kodeka Audio | |
22 | Processing Technology (aptX), wywodzącą się z projektu ffmpeg 4.0 i | |
23 | udostępnioną na licencji LGPL w wersji 2.1+. Kodek jest używany | |
24 | głównie w profilu Bluetooth A2DP. | |
25 | ||
26 | %package devel | |
27 | Summary: Header files for openaptx library | |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki openaptx | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Header files for openaptx library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki openaptx. | |
37 | ||
38 | %package static | |
39 | Summary: Static openaptx library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka openaptx | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static openaptx library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka openaptx. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | %patch0 -p1 | |
53 | ||
54 | %build | |
55 | %{__make} \ | |
56 | CC="%{__cc}" \ | |
57 | CFLAGS="%{rpmcflags} -W -Wall" \ | |
58 | CPPFLAGS="%{rpmcppflags}" \ | |
59 | LDFLAGS="%{rpmldflags}" | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT \ | |
66 | PREFIX=%{_prefix} \ | |
67 | LIBDIR=%{_lib} | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc README | |
78 | %attr(755,root,root) %{_bindir}/openaptxdec | |
79 | %attr(755,root,root) %{_bindir}/openaptxenc | |
80 | %attr(755,root,root) %{_libdir}/libopenaptx.so.*.*.* | |
81 | %attr(755,root,root) %ghost %{_libdir}/libopenaptx.so.0 | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_libdir}/libopenaptx.so | |
86 | %{_includedir}/openaptx.h | |
87 | %{_pkgconfigdir}/libopenaptx.pc | |
88 | ||
89 | %files static | |
90 | %defattr(644,root,root,755) | |
91 | %{_libdir}/libopenaptx.a |