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