- drop obsolete files
[packages/akode.git] / akode.spec
1 # TODO
2 # - split plugins by deps
3 #
4 Summary:        Audio-decoding framework library
5 Summary(pl.UTF-8):      Biblioteka szkieletu dekodowania dźwięku
6 Name:           akode
7 Version:        2.0.2
8 Release:        4
9 License:        LGPL
10 Group:          Libraries
11 Source0:        http://www.kde-apps.org/CONTENT/content-files/30375-%{name}-%{version}.tar.bz2
12 # Source0-md5:  659ced0c9c735cb3e55b9138ff02342c
13 Patch0:         %{name}-pulseaudio.patch
14 Patch1:         kde-common-PLD.patch
15 Patch2:         kde-ac260-lt.patch
16 Patch3:         %{name}-gcc4.patch
17 URL:            http://www.carewolf.com/akode/
18 BuildRequires:  alsa-lib-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  faad2-devel
22 BuildRequires:  ffmpeg-devel >= 0.4.9-3.20050806.5
23 BuildRequires:  flac-devel >= 1.1.1
24 BuildRequires:  jack-audio-connection-kit-devel >= 0.90
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.UTF-8
41 Biblioteka szkieletu dekodowania dźwięku.
42
43 %package devel
44 Summary:        Header files for akode library
45 Summary(pl.UTF-8):      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.UTF-8
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
64 %build
65 cp -f /usr/share/automake/config.sub admin
66 %{__make} -f admin/Makefile.common cvs
67
68 USER_INCLUDES="-I%{_includedir}/speex" \
69 %configure \
70 %if "%{_lib}" == "lib64"
71         --enable-libsuffix=64 \
72 %endif
73         --with-flac \
74         --with-speex \
75         --with-libmad \
76         --with-libsamplerate \
77         --with-jack \
78         --with-pulseaudio \
79         --with-ffmpeg \
80         --without-libltdl \
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 rm $RPM_BUILD_ROOT%{_libdir}/libakode_*.la
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/akodeplay
105 %attr(755,root,root) %{_libdir}/libakode.so.*.*.*
106 # plugins
107 %attr(755,root,root) %{_libdir}/libakode_alsa_sink.so
108 %attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so
109 %attr(755,root,root) %{_libdir}/libakode_jack_sink.so
110 %attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so
111 %attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so
112 %attr(755,root,root) %{_libdir}/libakode_oss_sink.so
113 %attr(755,root,root) %{_libdir}/libakode_polyp_sink.so
114 %attr(755,root,root) %{_libdir}/libakode_src_resampler.so
115 %attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/akode-config
120 %attr(755,root,root) %{_libdir}/libakode.so
121 %{_libdir}/libakode.la
122 %{_includedir}/akode
This page took 0.095943 seconds and 4 git commands to generate.