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