Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
1 Name: faac
2 Version: 1.28
3 Release: 1%{?dist}
4 Summary: Encoder and encoding library for MPEG2/4 AAC
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
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 BuildRequires: libmp4v2-devel
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.
22 %package devel
23 Summary: Development libraries of the FAAC AAC encoder
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
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.
32 This package contains development files and documentation for libfaac.
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/*
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
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}
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
58 %clean
59 rm -rf $RPM_BUILD_ROOT
62 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
67 %files
68 %defattr(-,root,root,-)
69 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/*
70 %{_bindir}/*
71 %{_libdir}/*.so.*
72 %{_mandir}/man1/%{name}*
74 %files devel
75 %defattr(-,root,root,-)
76 %exclude %{_libdir}/*.la
77 %{_libdir}/*.so
78 %{_includedir}/*.h
80 %changelog
81 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1
82 - Build for 1.1