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