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