]>
Commit | Line | Data |
---|---|---|
32ca7068 | 1 | # |
dee1d8dc | 2 | # Conditional build: |
62dafd42 | 3 | %bcond_without static_libs # don't build static libraries |
32ca7068 | 4 | # |
936dfb3e | 5 | Summary: Freeware Advanced Audio Codec |
d283f377 | 6 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - darmowy zaawansowany kodek dźwięku |
936dfb3e | 7 | Name: faac |
79c58328 JB |
8 | Version: 1.29.9.2 |
9 | Release: 1 | |
0ab2bcf4 | 10 | License: LGPL v2.1+ |
723bb0f2 | 11 | Group: Applications/Sound |
25763d4f | 12 | Source0: http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz |
79c58328 | 13 | # Source0-md5: 2b58d621fad8fda879f07b7cad8bfe10 |
936dfb3e | 14 | URL: http://www.audiocoding.com/ |
0ab2bcf4 | 15 | BuildRequires: autoconf >= 2.50 |
936dfb3e | 16 | BuildRequires: automake |
9c587fa0 | 17 | BuildRequires: dos2unix |
936dfb3e | 18 | BuildRequires: libtool |
723bb0f2 | 19 | Requires: %{name}-libs = %{version}-%{release} |
936dfb3e AF |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
0ab2bcf4 JB |
23 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware |
24 | Advanced Audio Coding project. | |
25 | ||
9e374fd2 | 26 | %description -l pl.UTF-8 |
0ab2bcf4 JB |
27 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu |
28 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
9e374fd2 | 29 | dźwięku). |
936dfb3e | 30 | |
723bb0f2 JB |
31 | %package libs |
32 | Summary: Freeware Advanced Audio Codec library | |
d283f377 | 33 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - biblioteka darmowego zaawansowanego kodeka dźwięku |
723bb0f2 JB |
34 | Group: Libraries |
35 | ||
36 | %description libs | |
37 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware | |
38 | Advanced Audio Coding project. | |
39 | ||
9e374fd2 | 40 | %description libs -l pl.UTF-8 |
723bb0f2 JB |
41 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu |
42 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
9e374fd2 | 43 | dźwięku). |
723bb0f2 | 44 | |
936dfb3e | 45 | %package devel |
0ab2bcf4 | 46 | Summary: Header files for faac library |
d283f377 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki faac |
936dfb3e | 48 | Group: Development/Libraries |
723bb0f2 | 49 | Requires: %{name}-libs = %{version}-%{release} |
936dfb3e AF |
50 | |
51 | %description devel | |
0ab2bcf4 | 52 | Header files for faac library. |
936dfb3e | 53 | |
9e374fd2 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki faac. | |
936dfb3e AF |
56 | |
57 | %package static | |
58 | Summary: Static faac library | |
d283f377 | 59 | Summary(pl.UTF-8): Statyczna biblioteka faac |
936dfb3e | 60 | Group: Development/Libraries |
723bb0f2 | 61 | Requires: %{name}-devel = %{version}-%{release} |
936dfb3e AF |
62 | |
63 | %description static | |
64 | Static faac library. | |
65 | ||
9e374fd2 | 66 | %description static -l pl.UTF-8 |
936dfb3e AF |
67 | Statyczna biblioteka faac. |
68 | ||
69 | %prep | |
7d280872 | 70 | %setup -q |
9c587fa0 | 71 | |
936dfb3e | 72 | %build |
0ab2bcf4 JB |
73 | %{__libtoolize} |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
32ca7068 | 78 | %configure \ |
62dafd42 | 79 | %{!?with_static_libs:--disable-static} |
936dfb3e AF |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
723bb0f2 JB |
91 | %post libs -p /sbin/ldconfig |
92 | %postun libs -p /sbin/ldconfig | |
936dfb3e AF |
93 | |
94 | %files | |
95 | %defattr(644,root,root,755) | |
ba23b05b JB |
96 | %attr(755,root,root) %{_bindir}/faac |
97 | %{_mandir}/man1/faac.1* | |
723bb0f2 JB |
98 | |
99 | %files libs | |
100 | %defattr(644,root,root,755) | |
79c58328 | 101 | %doc AUTHORS ChangeLog NEWS README TODO |
857319e6 JB |
102 | %attr(755,root,root) %{_libdir}/libfaac.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libfaac.so.0 | |
936dfb3e AF |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
857319e6 JB |
107 | %attr(755,root,root) %{_libdir}/libfaac.so |
108 | %{_libdir}/libfaac.la | |
109 | %{_includedir}/faac*.h | |
936dfb3e | 110 | |
62dafd42 | 111 | %if %{with static_libs} |
936dfb3e AF |
112 | %files static |
113 | %defattr(644,root,root,755) | |
857319e6 | 114 | %{_libdir}/libfaac.a |
62dafd42 | 115 | %endif |