a49664dabdbc22c39331cb0b82646dd27cc6a534
[packages/akode.git] / akode.spec
1 #
2 # TODO:
3 #                       - split plugins by deps
4 #
5 Summary:        Audio-decoding framework library
6 Summary(pl.UTF-8):      Biblioteka szkieletu dekodowania dźwięku
7 Name:           akode
8 Version:        2.0.2
9 Release:        2
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://www.kde-apps.org/CONTENT/content-files/30375-%{name}-%{version}.tar.bz2
13 # Source0-md5:  659ced0c9c735cb3e55b9138ff02342c
14 Patch0:         %{name}-pulseaudio.patch
15 Patch1:         kde-common-PLD.patch
16 Patch2:         kde-ac260-lt.patch
17 Patch3:         %{name}-gcc4.patch
18 URL:            http://www.carewolf.com/akode/
19 BuildRequires:  alsa-lib-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
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:  faad2-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.UTF-8
42 Biblioteka szkieletu dekodowania dźwięku.
43
44 %package devel
45 Summary:        Header files for akode library
46 Summary(pl.UTF-8):      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.UTF-8
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
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         --without-libltdl \
82         --with-oss \
83         --with-alsa \
84         --with-vorbis \
85         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full}
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 rm $RPM_BUILD_ROOT%{_libdir}/libakode_*.la
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/akodeplay
106 %attr(755,root,root) %{_libdir}/libakode.so.*.*.*
107 # plugins
108 %attr(755,root,root) %{_libdir}/libakode_alsa_sink.so
109 %attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so
110 %attr(755,root,root) %{_libdir}/libakode_jack_sink.so
111 %attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so
112 %attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so
113 %attr(755,root,root) %{_libdir}/libakode_oss_sink.so
114 %attr(755,root,root) %{_libdir}/libakode_polyp_sink.so
115 %attr(755,root,root) %{_libdir}/libakode_src_resampler.so
116 %attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/akode-config
121 %attr(755,root,root) %{_libdir}/libakode.so
122 %{_libdir}/libakode.la
123 %{_includedir}/akode
This page took 0.089204 seconds and 3 git commands to generate.