]>
Commit | Line | Data |
---|---|---|
6a40a3d4 ER |
1 | # TODO |
2 | # - split plugins by deps | |
9989ee2b | 3 | # |
f0548744 | 4 | Summary: Audio-decoding framework library |
753e99ca | 5 | Summary(pl.UTF-8): Biblioteka szkieletu dekodowania dźwięku |
0aab3d3e | 6 | Name: akode |
22c3ffa6 | 7 | Version: 2.0.2 |
a36d6381 | 8 | Release: 4 |
0aab3d3e | 9 | License: LGPL |
10 | Group: Libraries | |
22c3ffa6 PS |
11 | Source0: http://www.kde-apps.org/CONTENT/content-files/30375-%{name}-%{version}.tar.bz2 |
12 | # Source0-md5: 659ced0c9c735cb3e55b9138ff02342c | |
4706a9d2 | 13 | Patch0: %{name}-pulseaudio.patch |
22c3ffa6 | 14 | Patch1: kde-common-PLD.patch |
5da3bdb0 | 15 | Patch2: kde-ac260-lt.patch |
b4afb541 | 16 | Patch3: %{name}-gcc4.patch |
f0548744 | 17 | URL: http://www.carewolf.com/akode/ |
12433e66 | 18 | BuildRequires: alsa-lib-devel |
0aab3d3e | 19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
6a40a3d4 | 21 | BuildRequires: faad2-devel |
32cb635a | 22 | BuildRequires: ffmpeg-devel >= 0.4.9-3.20050806.5 |
cce9ca5a JB |
23 | BuildRequires: flac-devel >= 1.1.1 |
24 | BuildRequires: jack-audio-connection-kit-devel >= 0.90 | |
12433e66 AM |
25 | BuildRequires: libmad-devel |
26 | BuildRequires: libogg-devel | |
27 | BuildRequires: libsamplerate-devel | |
cce9ca5a JB |
28 | BuildRequires: libstdc++-devel |
29 | BuildRequires: libvorbis-devel >= 1:1.0 | |
b9180cee | 30 | BuildRequires: libx264-devel |
cce9ca5a | 31 | BuildRequires: pkgconfig |
4706a9d2 | 32 | BuildRequires: pulseaudio-devel >= 0.9.2 |
12433e66 AM |
33 | BuildRequires: rpmbuild(macros) >= 1.129 |
34 | BuildRequires: speex-devel | |
0aab3d3e | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
f0548744 JB |
38 | Audio-decoding framework library. |
39 | ||
36854fce JR |
40 | %description -l pl.UTF-8 |
41 | Biblioteka szkieletu dekodowania dźwięku. | |
0aab3d3e | 42 | |
43 | %package devel | |
563b1b9c | 44 | Summary: Header files for akode library |
753e99ca | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki akode |
563b1b9c ER |
46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
cce9ca5a JB |
48 | Requires: libltdl-devel |
49 | Requires: libstdc++-devel | |
0aab3d3e | 50 | |
51 | %description devel | |
cce9ca5a | 52 | Header files for akode library. |
0aab3d3e | 53 | |
36854fce JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki akode. | |
0aab3d3e | 56 | |
57 | %prep | |
928c58f5 | 58 | %setup -q |
e2ded606 | 59 | %patch0 -p1 |
5da3bdb0 PS |
60 | %patch1 -p1 |
61 | %patch2 -p1 | |
b4afb541 | 62 | %patch3 -p1 |
0aab3d3e | 63 | |
64 | %build | |
65 | cp -f /usr/share/automake/config.sub admin | |
66 | %{__make} -f admin/Makefile.common cvs | |
67 | ||
32cb635a | 68 | USER_INCLUDES="-I%{_includedir}/speex" \ |
0aab3d3e | 69 | %configure \ |
70 | %if "%{_lib}" == "lib64" | |
71 | --enable-libsuffix=64 \ | |
72 | %endif | |
32cb635a PS |
73 | --with-flac \ |
74 | --with-speex \ | |
75 | --with-libmad \ | |
76 | --with-libsamplerate \ | |
77 | --with-jack \ | |
4706a9d2 | 78 | --with-pulseaudio \ |
32cb635a | 79 | --with-ffmpeg \ |
9989ee2b | 80 | --without-libltdl \ |
32cb635a PS |
81 | --with-oss \ |
82 | --with-alsa \ | |
83 | --with-vorbis \ | |
cce9ca5a | 84 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} |
32cb635a | 85 | |
0aab3d3e | 86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
0aab3d3e | 90 | |
91 | %{__make} install \ | |
cce9ca5a | 92 | DESTDIR=$RPM_BUILD_ROOT |
0aab3d3e | 93 | |
41825547 PS |
94 | rm $RPM_BUILD_ROOT%{_libdir}/libakode_*.la |
95 | ||
0aab3d3e | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
e5634150 JB |
99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
101 | ||
0aab3d3e | 102 | %files |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_bindir}/akodeplay | |
0aab3d3e | 105 | %attr(755,root,root) %{_libdir}/libakode.so.*.*.* |
32cb635a | 106 | # plugins |
32cb635a | 107 | %attr(755,root,root) %{_libdir}/libakode_alsa_sink.so |
32cb635a | 108 | %attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so |
32cb635a | 109 | %attr(755,root,root) %{_libdir}/libakode_jack_sink.so |
32cb635a | 110 | %attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so |
32cb635a | 111 | %attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so |
32cb635a | 112 | %attr(755,root,root) %{_libdir}/libakode_oss_sink.so |
32cb635a | 113 | %attr(755,root,root) %{_libdir}/libakode_polyp_sink.so |
32cb635a | 114 | %attr(755,root,root) %{_libdir}/libakode_src_resampler.so |
32cb635a | 115 | %attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so |
0aab3d3e | 116 | |
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %attr(755,root,root) %{_bindir}/akode-config | |
928c58f5 | 120 | %attr(755,root,root) %{_libdir}/libakode.so |
e5634150 JB |
121 | %{_libdir}/libakode.la |
122 | %{_includedir}/akode |