]>
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 | ||
19 | # kurwa, ja nie potrafie, niech ktos temu palantowi powie zeby sie od tego odczepil | |
20 | #%%define _noautoreqdep "libsndfile.so.1(libsndfile.so.1.0)" | |
21 | ||
22 | %description | |
23 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
24 | completely written from scratch. | |
25 | ||
26 | %package devel | |
27 | Summary: Devel files for faad2 | |
28 | Group: Development/Libraries | |
29 | ||
30 | %description devel | |
31 | Devel files for faad2. | |
32 | ||
33 | %package static | |
34 | Summary: Static faad2 library | |
35 | Group: Development/Libraries | |
36 | ||
37 | %description static | |
38 | Static faad2 library. | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{name} | |
42 | %patch0 -p1 | |
43 | ||
44 | %build | |
45 | rm -f missing | |
46 | %{__libtoolize} | |
47 | %{__aclocal} | |
48 | %{__autoconf} | |
49 | %{__automake} | |
50 | %configure | |
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post -p /sbin/ldconfig | |
61 | %postun -p /sbin/ldconfig | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc AUTHORS ChangeLog NEWS README TODO | |
66 | %attr(755,root,root) %{_bindir}/* | |
67 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
68 | ||
69 | %files devel | |
70 | %defattr(644,root,root,755) | |
71 | %attr(755,root,root) %{_libdir}/lib*.so | |
72 | %{_libdir}/lib*.la | |
73 | %{_includedir}/*.h | |
74 | ||
75 | %files static | |
76 | %defattr(644,root,root,755) | |
77 | %{_libdir}/lib*.a |