faac/faac.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/faac/faac.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,82 @@
     1.4 +Name:           faac
     1.5 +Version:        1.28
     1.6 +Release:        1%{?dist}
     1.7 +Summary:        Encoder and encoding library for MPEG2/4 AAC
     1.8 +
     1.9 +Group:          Applications/Multimedia
    1.10 +License:        LGPLv2+
    1.11 +URL:            http://www.audiocoding.com/
    1.12 +Source0:        http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
    1.13 +Patch0:         %{name}-libmp4v2.patch
    1.14 +
    1.15 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.16 +
    1.17 +BuildRequires:  libmp4v2-devel
    1.18 +
    1.19 +
    1.20 +%description
    1.21 +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
    1.22 +COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
    1.23 +multichannel and gapless encoding.
    1.24 +
    1.25 +%package devel
    1.26 +Summary:        Development libraries of the FAAC AAC encoder
    1.27 +Group:          Development/Libraries
    1.28 +Requires:       %{name} = %{version}-%{release}
    1.29 +
    1.30 +%description devel
    1.31 +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
    1.32 +COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
    1.33 +multichannel and gapless encoding.
    1.34 +
    1.35 +This package contains development files and documentation for libfaac.
    1.36 +
    1.37 +%prep
    1.38 +%setup -q
    1.39 +%patch0 -p1 -b .mp4v2
    1.40 +touch -r configure.in.mp4v2 configure.in
    1.41 +#fix permissions
    1.42 +find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \;
    1.43 +chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/*
    1.44 +
    1.45 +#fix encoding
    1.46 +/usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS
    1.47 +
    1.48 +%build
    1.49 +%configure --disable-static
    1.50 +# remove rpath from libtool
    1.51 +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    1.52 +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    1.53 +make %{?_smp_mflags}
    1.54 +
    1.55 +
    1.56 +%install
    1.57 +rm -rf $RPM_BUILD_ROOT
    1.58 +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
    1.59 +
    1.60 +
    1.61 +%clean
    1.62 +rm -rf $RPM_BUILD_ROOT
    1.63 +
    1.64 +
    1.65 +%post -p /sbin/ldconfig
    1.66 +
    1.67 +%postun -p /sbin/ldconfig
    1.68 +
    1.69 +
    1.70 +%files 
    1.71 +%defattr(-,root,root,-)
    1.72 +%doc AUTHORS COPYING ChangeLog NEWS README TODO docs/*
    1.73 +%{_bindir}/*
    1.74 +%{_libdir}/*.so.*
    1.75 +%{_mandir}/man1/%{name}*
    1.76 +
    1.77 +%files devel
    1.78 +%defattr(-,root,root,-)
    1.79 +%exclude  %{_libdir}/*.la
    1.80 +%{_libdir}/*.so
    1.81 +%{_includedir}/*.h
    1.82 +
    1.83 +%changelog
    1.84 +* Fri Oct 29 2010 Kozinov Ivan - 1.25-1
    1.85 +- Build for 1.1

mercurial