cdf0bef1bcac2fd59b5bb194ad37d46904914792
[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 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:  faad2-devel
20 BuildRequires:  libltdl-devel
21 BuildRequires:  libmad-devel
22 BuildRequires:  libogg-devel
23 BuildRequires:  libsamplerate-devel
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  libvorbis-devel >= 1:1.0
26 BuildRequires:  libx264-devel
27 BuildRequires:  pkgconfig
28 BuildRequires:  pulseaudio-devel >= 0.9.2
29 BuildRequires:  rpmbuild(macros) >= 1.129
30 BuildRequires:  speex-devel
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Audio-decoding framework library.
35
36 %description -l pl
37 Biblioteka szkieletu dekodowania d¼wiêku.
38
39 %package devel
40 Summary:        Header files for akode library
41 Summary(pl):    Pliki nag³ówkowe biblioteki akode
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       libltdl-devel
45 Requires:       libstdc++-devel
46
47 %description devel
48 Header files for akode library.
49
50 %description devel -l pl
51 Pliki nag³ówkowe biblioteki akode.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56
57 %build
58 cp -f /usr/share/automake/config.sub admin
59 %{__make} -f admin/Makefile.common cvs
60
61 USER_INCLUDES="-I%{_includedir}/speex" \
62 %configure \
63 %if "%{_lib}" == "lib64"
64         --enable-libsuffix=64 \
65 %endif
66         --with-flac \
67         --with-speex \
68         --with-libmad \
69         --with-libsamplerate \
70         --with-jack \
71         --with-pulseaudio \
72         --with-ffmpeg \
73         --with-oss \
74         --with-alsa \
75         --with-vorbis \
76         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full}
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/akodeplay
92 %attr(755,root,root) %{_libdir}/libakode.so.*.*.*
93 # plugins
94 %{_libdir}/libakode_alsa_sink.la
95 %attr(755,root,root) %{_libdir}/libakode_alsa_sink.so
96 %{_libdir}/libakode_ffmpeg_decoder.la
97 %attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so
98 %{_libdir}/libakode_jack_sink.la
99 %attr(755,root,root) %{_libdir}/libakode_jack_sink.so
100 %{_libdir}/libakode_mpc_decoder.la
101 %attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so
102 %{_libdir}/libakode_mpeg_decoder.la
103 %attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so
104 %{_libdir}/libakode_oss_sink.la
105 %attr(755,root,root) %{_libdir}/libakode_oss_sink.so
106 %{_libdir}/libakode_polyp_sink.la
107 %attr(755,root,root) %{_libdir}/libakode_polyp_sink.so
108 %{_libdir}/libakode_src_resampler.la
109 %attr(755,root,root) %{_libdir}/libakode_src_resampler.so
110 %{_libdir}/libakode_xiph_decoder.la
111 %attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so
112
113 %files devel
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/akode-config
116 %{_includedir}/akode
117 %{_libdir}/libakode.la
118 %attr(755,root,root) %{_libdir}/libakode.so
This page took 0.032999 seconds and 2 git commands to generate.