faac/faac.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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

mercurial