Fri, 11 Mar 2011 21:39:41 +0100
Import new package specs for introduction into repository.
michael@1 | 1 | Name: faad2 |
michael@1 | 2 | Summary: Library and frontend for decoding MPEG2/4 AAC |
michael@1 | 3 | Vendor: Europalab Software |
michael@1 | 4 | Packager: Michael Schloh von Bennewitz |
michael@1 | 5 | Distribution: MeeGo Thirdparty |
michael@1 | 6 | Version: 2.7 |
michael@1 | 7 | Release: 20101201 |
michael@1 | 8 | License: GPLv2+ |
michael@1 | 9 | Group: Applications/Multimedia |
michael@1 | 10 | URL: http://www.audiocoding.com/faad2.html |
michael@1 | 11 | Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2 |
michael@1 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@1 | 13 | BuildRequires: gcc-c++ |
michael@1 | 14 | BuildRequires: libid3tag-devel |
michael@0 | 15 | BuildRequires: libsysfs-devel |
michael@1 | 16 | BuildRequires: zlib-devel |
michael@0 | 17 | |
michael@0 | 18 | %description |
michael@1 | 19 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. |
michael@0 | 20 | |
michael@0 | 21 | %package libs |
michael@1 | 22 | Summary: Shared libraries of the FAAD 2 AAC decoder |
michael@1 | 23 | Vendor: Europalab Software |
michael@1 | 24 | Packager: Michael Schloh von Bennewitz |
michael@1 | 25 | Distribution: MeeGo Thirdparty |
michael@1 | 26 | Group: System Environment/Libraries |
michael@0 | 27 | |
michael@0 | 28 | %description libs |
michael@1 | 29 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. |
michael@1 | 30 | This package provides the libraries for %{name}. |
michael@0 | 31 | |
michael@0 | 32 | %package devel |
michael@1 | 33 | Summary: Development libraries of the FAAD 2 AAC decoder |
michael@1 | 34 | Vendor: Europalab Software |
michael@1 | 35 | Packager: Michael Schloh von Bennewitz |
michael@1 | 36 | Distribution: MeeGo Thirdparty |
michael@1 | 37 | Group: Development/Libraries |
michael@1 | 38 | Requires: %{name}-libs = %{version}-%{release} |
michael@0 | 39 | |
michael@0 | 40 | %description devel |
michael@1 | 41 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. |
michael@1 | 42 | This package provides development files and documentation for %{name}. |
michael@0 | 43 | |
michael@0 | 44 | %prep |
michael@0 | 45 | %setup -q |
michael@0 | 46 | find . -name "*.c" -o -name "*.h" | xargs chmod 644 |
michael@1 | 47 | mv \ |
michael@1 | 48 | docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf \ |
michael@1 | 49 | docs/AACDecoderLibrary.pdf |
michael@0 | 50 | |
michael@1 | 51 | for f in AUTHORS COPYING ChangeLog NEWS README* TODO; do |
michael@0 | 52 | tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f |
michael@0 | 53 | done |
michael@0 | 54 | |
michael@0 | 55 | %build |
michael@1 | 56 | %configure |
michael@0 | 57 | |
michael@0 | 58 | # remove rpath from libtool |
michael@0 | 59 | sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
michael@0 | 60 | sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
michael@0 | 61 | |
michael@0 | 62 | %{__make} %{?_smp_mflags} |
michael@0 | 63 | |
michael@0 | 64 | %install |
michael@0 | 65 | %{__rm} -rf %{buildroot} |
michael@0 | 66 | %{__make} install DESTDIR=%{buildroot} |
michael@0 | 67 | install -dm755 %{buildroot}%{_mandir}/man1 |
michael@0 | 68 | %{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1} |
michael@0 | 69 | |
michael@0 | 70 | %clean |
michael@0 | 71 | %{__rm} -rf %{buildroot} |
michael@0 | 72 | |
michael@0 | 73 | %post libs -p /sbin/ldconfig |
michael@0 | 74 | |
michael@0 | 75 | %postun libs -p /sbin/ldconfig |
michael@0 | 76 | |
michael@0 | 77 | %files |
michael@0 | 78 | %defattr(-, root, root, -) |
michael@0 | 79 | %doc AUTHORS COPYING ChangeLog NEWS README* |
michael@0 | 80 | %{_bindir}/faad |
michael@0 | 81 | %{_mandir}/man1/faad.1* |
michael@0 | 82 | |
michael@0 | 83 | %files libs |
michael@0 | 84 | %defattr(-,root,root,-) |
michael@0 | 85 | %{_libdir}/libfaad.so.* |
michael@0 | 86 | |
michael@0 | 87 | %files devel |
michael@0 | 88 | %defattr(-, root, root, -) |
michael@1 | 89 | %doc TODO docs/AACDecoderLibrary.pdf |
michael@0 | 90 | %{_includedir}/faad.h |
michael@0 | 91 | %{_includedir}/neaacdec.h |
michael@1 | 92 | %{_includedir}/mp4ff.h |
michael@1 | 93 | %{_includedir}/mp4ffint.h |
michael@1 | 94 | %{_libdir}/libfaad.a |
michael@1 | 95 | %{_libdir}/libfaad.la |
michael@0 | 96 | %{_libdir}/libfaad.so |
michael@1 | 97 | %{_libdir}/libmp4ff.a |
michael@0 | 98 | |
michael@0 | 99 | %changelog |
michael@1 | 100 | * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 2.7-20101201 |
michael@1 | 101 | - Adjust packaging and patch logic |
michael@1 | 102 | |
michael@0 | 103 | * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 1:2.7-1 |
michael@1 | 104 | - Package for MeeGo 1.1 |