3 # _without_xmms - without XMMS plugin
5 Summary: Freeware Advanced Audio Decoder 2
6 Summary(pl): Darmowy zaawansowany dekoder audio
12 Source0: http://faac.sourceforge.net/files/%{name}-%{version}.tar.gz
13 Patch0: %{name}-libsndfile.patch
14 URL: http://www.audiocoding.com/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 %{!?_without_xmms:BuildRequires: id3lib-devel}
18 BuildRequires: libsndfile-devel >= 1.0.4
19 BuildRequires: libtool
20 %{!?_without_xmms:BuildRequires: xmms-devel}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %if 0%{!?_without_xmms:1}
24 %define _xmms_plugin_dir %(xmms-config --input-plugin-dir)
28 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
29 completely written from scratch.
32 FAAD 2 to napisany ca³kowicie od pocz±tku dekoder MPEG2 i MPEG-4
33 obs³uguj±cy profile LC, MAIN i LTP.
36 Summary: Devel files for faad2
37 Summary(pl): Pliki nag³ówkowe faad2
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
42 Devel files for faad2.
44 %description devel -l pl
45 Pliki nag³ówkowe faad2.
48 Summary: Static faad2 library
49 Summary(pl): Statyczna biblioteka faad2
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}
56 %description static -l pl
57 Statyczna biblioteka faad2.
59 %package -n xmms-input-faad2
60 Summary: XMMS plugin for AAC files
61 Summary(pl): Wtyczka XMMS do plików AAC
62 Group: X11/Applications/Sound
63 Requires: %{name} = %{version}
65 %description -n xmms-input-faad2
66 XMMS plugin for AAC files.
68 %description -n xmms-input-faad2 -l pl
69 Wtyczka XMMS do plików AAC.
84 %if 0%{!?_without_xmms:1}
86 %{__cc} -shared -fPIC -o libaac-XMMS.so aac-XMMS.c \
87 `xmms-config --cflags --libs` \
89 -L../../libfaad/.libs -lfaad -lid3 -lz
93 rm -rf $RPM_BUILD_ROOT
96 DESTDIR=$RPM_BUILD_ROOT
98 %if 0%{!?_without_xmms:1}
99 install -d $RPM_BUILD_ROOT%{_xmms_plugin_dir}
100 install plugins/xmms/libaac-XMMS.so $RPM_BUILD_ROOT%{_xmms_plugin_dir}
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README TODO
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so
122 %defattr(644,root,root,755)
125 %if 0%{!?_without_xmms:1}
126 %files -n xmms-input-faad2
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_xmms_plugin_dir}/*.so