Fri, 11 Mar 2011 21:36:51 +0100
Adjust specification build configurations to port packages to MeeGo.
1 Name: faac
2 Summary: Encoder and encoding library for MPEG2/4 AAC
3 Vendor: Europalab Software
4 Packager: Michael Schloh von Bennewitz
5 Distribution: MeeGo Thirdparty
6 Version: 1.28
7 Release: 20101201
8 Group: Applications/Multimedia
9 License: LGPLv2+
10 URL: http://www.audiocoding.com/faac.html
11 Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13 BuildRequires: libmp4v2-devel
15 %description
16 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
17 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
18 multichannel and gapless encoding.
20 %package devel
21 Summary: Development libraries of the FAAC AAC encoder
22 Vendor: Europalab Software
23 Packager: Michael Schloh von Bennewitz
24 Distribution: MeeGo Thirdparty
25 Group: Development/Libraries
26 Requires: %{name} = %{version}-%{release}
28 %description devel
29 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
30 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
31 multichannel and gapless encoding.
33 This package contains development files and documentation for libfaac.
35 %prep
36 %setup -q
37 touch configure.in
38 find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \;
39 chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/*
41 %build
42 %configure
44 # remove rpath from libtool
45 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
46 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
47 make %{?_smp_mflags}
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 make install DESTDIR=$RPM_BUILD_ROOT
53 %clean
54 rm -rf $RPM_BUILD_ROOT
56 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
60 %files
61 %defattr(-,root,root,-)
62 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/*
63 %{_bindir}/*
64 %{_libdir}/*.so.*
65 %{_mandir}/man1/%{name}*
67 %files devel
68 %defattr(-,root,root,-)
69 %{_libdir}/*.a
70 %{_libdir}/*.la
71 %{_libdir}/*.so
72 %{_includedir}/*.h
74 %changelog
75 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.28-20101201
76 - Adjust packaging and patch logic
78 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1
79 - Package for MeeGo 1.1