faad2/faad2.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.

     1 Summary:	Library and frontend for decoding MPEG2/4 AAC
     2 Name:		faad2
     3 Epoch:		1
     4 Version:	2.7
     5 Release:	1%{?dist}
     6 License:	GPLv2+
     7 Group:		Applications/Multimedia
     8 URL:		http://www.audiocoding.com/faad2.html
     9 Source:		http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2
    10 # fix non-PIC objects in libmp4ff.a
    11 Patch0:		%{name}-pic.patch
    12 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
    13 BuildRequires:	gcc-c++
    14 BuildRequires:	id3lib-devel
    15 BuildRequires: libsysfs-devel
    16 BuildRequires:	zlib-devel
    18 %description
    19 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
    20 written from scratch.
    22 %package libs
    23 Summary:	Shared libraries of the FAAD 2 AAC decoder
    24 Group:		System Environment/Libraries
    25 Obsoletes:	%{name} < 1:2.6.1-3
    27 %description libs
    28 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
    29 written from scratch.
    31 This package contains libfaad.
    33 %package devel
    34 Summary:	Development libraries of the FAAD 2 AAC decoder
    35 Group:		Development/Libraries
    36 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
    38 %description devel
    39 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
    40 written from scratch.
    42 This package contains development files and documentation for libfaad.
    44 %prep
    45 %setup -q
    46 %patch0 -p1 -b .pic
    47 find . -name "*.c" -o -name "*.h" | xargs chmod 644
    49 for f in AUTHORS COPYING ChangeLog NEWS README* TODO ; do
    50     tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f
    51 done
    53 %build
    54 %configure  --disable-static 
    56 # remove rpath from libtool
    57 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    58 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    60 %{__make} %{?_smp_mflags}
    62 %install
    63 %{__rm} -rf %{buildroot}
    64 %{__make} install DESTDIR=%{buildroot}
    65 %{__rm} %{buildroot}%{_libdir}/libfaad.la
    66 %{__rm} %{buildroot}%{_includedir}/mp4ff{,int}.h
    67 %{__rm} %{buildroot}%{_libdir}/libmp4ff.a
    68 install -dm755 %{buildroot}%{_mandir}/man1
    69 %{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1}
    71 %clean
    72 %{__rm} -rf %{buildroot}
    74 %post libs -p /sbin/ldconfig
    76 %postun libs -p /sbin/ldconfig
    78 %files
    79 %defattr(-, root, root, -)
    80 %doc AUTHORS COPYING ChangeLog NEWS README*
    81 %{_bindir}/faad
    82 %{_mandir}/man1/faad.1*
    84 %files libs
    85 %defattr(-,root,root,-)
    86 %{_libdir}/libfaad.so.*
    88 %files devel
    89 %defattr(-, root, root, -)
    90 %doc TODO docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf
    91 %{_includedir}/faad.h
    92 %{_includedir}/neaacdec.h
    93 %{_libdir}/libfaad.so
    95 %changelog
    96 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 1:2.7-1
    97 - Build for MeeGo 1.1

mercurial