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