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