faac/faac.spec

changeset 0
4f133201e207
child 1
4667f24fe848
equal deleted inserted replaced
-1:000000000000 0:b8e77ae12c81
1 Name: faac
2 Version: 1.28
3 Release: 1%{?dist}
4 Summary: Encoder and encoding library for MPEG2/4 AAC
5
6 Group: Applications/Multimedia
7 License: LGPLv2+
8 URL: http://www.audiocoding.com/
9 Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
10 Patch0: %{name}-libmp4v2.patch
11
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: libmp4v2-devel
15
16
17 %description
18 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
19 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
20 multichannel and gapless encoding.
21
22 %package devel
23 Summary: Development libraries of the FAAC AAC encoder
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
26
27 %description devel
28 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
29 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
30 multichannel and gapless encoding.
31
32 This package contains development files and documentation for libfaac.
33
34 %prep
35 %setup -q
36 %patch0 -p1 -b .mp4v2
37 touch -r configure.in.mp4v2 configure.in
38 #fix permissions
39 find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \;
40 chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/*
41
42 #fix encoding
43 /usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS
44
45 %build
46 %configure --disable-static
47 # remove rpath from libtool
48 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
49 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
50 make %{?_smp_mflags}
51
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
56
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61
62 %post -p /sbin/ldconfig
63
64 %postun -p /sbin/ldconfig
65
66
67 %files
68 %defattr(-,root,root,-)
69 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/*
70 %{_bindir}/*
71 %{_libdir}/*.so.*
72 %{_mandir}/man1/%{name}*
73
74 %files devel
75 %defattr(-,root,root,-)
76 %exclude %{_libdir}/*.la
77 %{_libdir}/*.so
78 %{_includedir}/*.h
79
80 %changelog
81 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1
82 - Build for 1.1

mercurial