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