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