]>
Commit | Line | Data |
---|---|---|
9c3cb898 | 1 | # TODO: |
2 | # - xmms plugin | |
3 | Summary: Freeware Advanced Audio Decoder 2 | |
4 | Summary(pl): Darmowy zaawansowany dekoder audio | |
5 | Name: faad2 | |
6 | Version: 1.1 | |
7 | Release: 1 | |
8 | License: GPL | |
9 | Group: Libraries | |
10 | Source0: http://faac.sourceforge.net/files/%{name}-%{version}.tar.gz | |
11 | Patch0: %{name}-libsndfile.patch | |
12 | URL: http://www.audiocoding.com/ | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: libsndfile-devel >= 1.0.4 | |
16 | BuildRequires: libtool | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
9c3cb898 | 19 | %description |
20 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
21 | completely written from scratch. | |
22 | ||
23 | %package devel | |
24 | Summary: Devel files for faad2 | |
25 | Group: Development/Libraries | |
26 | ||
27 | %description devel | |
28 | Devel files for faad2. | |
29 | ||
30 | %package static | |
31 | Summary: Static faad2 library | |
32 | Group: Development/Libraries | |
33 | ||
34 | %description static | |
35 | Static faad2 library. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{name} | |
39 | %patch0 -p1 | |
40 | ||
41 | %build | |
42 | rm -f missing | |
43 | %{__libtoolize} | |
44 | %{__aclocal} | |
45 | %{__autoconf} | |
46 | %{__automake} | |
47 | %configure | |
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc AUTHORS ChangeLog NEWS README TODO | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_libdir}/lib*.so | |
69 | %{_libdir}/lib*.la | |
70 | %{_includedir}/*.h | |
71 | ||
72 | %files static | |
73 | %defattr(644,root,root,755) | |
74 | %{_libdir}/lib*.a |