- release 2 for rebuild with polypaudio-0.8.
[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 Release:        2
7 License:        LGPL
8 Group:          Libraries
9 Source0:        http://www.kde-apps.org/content/files/30375-%{name}-%{version}.tar.gz
10 # Source0-md5:  04f79cda65c8e9966fa462eaaaa282dc
11 Patch0:         %{name}-polypaudio-0_8.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:  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.8
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
53 %patch0 -p1
54
55 %build
56 cp -f /usr/share/automake/config.sub admin
57 %{__make} -f admin/Makefile.common cvs
58
59 USER_INCLUDES="-I%{_includedir}/speex" \
60 %configure \
61 %if "%{_lib}" == "lib64"
62         --enable-libsuffix=64 \
63 %endif
64         --with-flac \
65         --with-speex \
66         --with-libmad \
67         --with-libsamplerate \
68         --with-jack \
69         --with-polypaudio \
70         --with-ffmpeg \
71         --with-oss \
72         --with-alsa \
73         --with-vorbis \
74         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/akodeplay
90 %attr(755,root,root) %{_libdir}/libakode.so.*.*.*
91 # plugins
92 %{_libdir}/libakode_alsa_sink.la
93 %attr(755,root,root) %{_libdir}/libakode_alsa_sink.so
94 %{_libdir}/libakode_ffmpeg_decoder.la
95 %attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so
96 %{_libdir}/libakode_jack_sink.la
97 %attr(755,root,root) %{_libdir}/libakode_jack_sink.so
98 %{_libdir}/libakode_mpc_decoder.la
99 %attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so
100 %{_libdir}/libakode_mpeg_decoder.la
101 %attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so
102 %{_libdir}/libakode_oss_sink.la
103 %attr(755,root,root) %{_libdir}/libakode_oss_sink.so
104 %{_libdir}/libakode_polyp_sink.la
105 %attr(755,root,root) %{_libdir}/libakode_polyp_sink.so
106 %{_libdir}/libakode_src_resampler.la
107 %attr(755,root,root) %{_libdir}/libakode_src_resampler.so
108 %{_libdir}/libakode_xiph_decoder.la
109 %attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/akode-config
114 %{_includedir}/akode
115 %{_libdir}/libakode.la
116 %attr(755,root,root) %{_libdir}/libakode.so
This page took 0.063707 seconds and 3 git commands to generate.