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