]> git.pld-linux.org Git - packages/faac.git/blob - faac.spec
- updated to 1.30 (fixes CVE-2018-19886)
[packages/faac.git] / faac.spec
1 #
2 # Conditional build:
3 %bcond_without  mp4v2           # without MPEG4 support in frontend (which requires mp4v2)
4 %bcond_without  static_libs     # don't build static libraries
5 #
6 Summary:        Freeware Advanced Audio Codec
7 Summary(pl.UTF-8):      Freeware Advanced Audio Codec - darmowy zaawansowany kodek dźwięku
8 Name:           faac
9 Version:        1.28
10 Release:        3
11 License:        LGPL v2.1+
12 Group:          Applications/Sound
13 Source0:        http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz
14 # Source0-md5:  80763728d392c7d789cde25614c878f6
15 Patch0:         %{name}-link.patch
16 Patch1:         %{name}-mp4v2.patch
17 Patch2:         format-security.patch
18 URL:            http://www.audiocoding.com/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  dos2unix
22 BuildRequires:  libtool
23 %{?with_mp4v2:BuildRequires:    mp4v2-devel >= 2.0.0}
24 Requires:       %{name}-libs = %{version}-%{release}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware
29 Advanced Audio Coding project.
30
31 %description -l pl.UTF-8
32 FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu
33 Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania
34 dźwięku).
35
36 %package libs
37 Summary:        Freeware Advanced Audio Codec library
38 Summary(pl.UTF-8):      Freeware Advanced Audio Codec - biblioteka darmowego zaawansowanego kodeka dźwięku
39 Group:          Libraries
40
41 %description libs
42 FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware
43 Advanced Audio Coding project.
44
45 %description libs -l pl.UTF-8
46 FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu
47 Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania
48 dźwięku).
49
50 %package devel
51 Summary:        Header files for faac library
52 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki faac
53 Group:          Development/Libraries
54 Requires:       %{name}-libs = %{version}-%{release}
55
56 %description devel
57 Header files for faac library.
58
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki faac.
61
62 %package static
63 Summary:        Static faac library
64 Summary(pl.UTF-8):      Statyczna biblioteka faac
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static faac library.
70
71 %description static -l pl.UTF-8
72 Statyczna biblioteka faac.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 %configure \
87         %{!?with_mp4v2:--without-mp4v2} \
88         %{!?with_static_libs:--disable-static}
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   libs -p /sbin/ldconfig
101 %postun libs -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/faac
106 %{_mandir}/man1/faac.1*
107
108 %files libs
109 %defattr(644,root,root,755)
110 %doc ChangeLog README TODO docs/faac.html
111 %attr(755,root,root) %{_libdir}/libfaac.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libfaac.so.0
113
114 %files devel
115 %defattr(644,root,root,755)
116 %doc docs/libfaac.html
117 %attr(755,root,root) %{_libdir}/libfaac.so
118 %{_libdir}/libfaac.la
119 %{_includedir}/faac*.h
120
121 %if %{with static_libs}
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libfaac.a
125 %endif
This page took 0.085346 seconds and 3 git commands to generate.