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