| 1 | Name: faac
|
|---|
| 2 | Version: 1.29.9.2
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Encoder and encoding library for MPEG2/4 AAC
|
|---|
| 5 |
|
|---|
| 6 | License: LGPLv2+
|
|---|
| 7 | URL: http://www.audiocoding.com/
|
|---|
| 8 | #Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
|---|
| 9 | %scm_source github https://github.com/komh/faac-os2 master
|
|---|
| 10 | BuildRequires: gcc
|
|---|
| 11 | #Patch0: faac-1.29.9.2-drm.patch
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | %description
|
|---|
| 15 | FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
|
|---|
| 16 | COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
|
|---|
| 17 | multichannel and gapless encoding.
|
|---|
| 18 |
|
|---|
| 19 | %package devel
|
|---|
| 20 | Summary: Development libraries of the FAAC AAC encoder
|
|---|
| 21 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 22 |
|
|---|
| 23 | %description devel
|
|---|
| 24 | FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
|
|---|
| 25 | COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
|
|---|
| 26 | multichannel and gapless encoding.
|
|---|
| 27 |
|
|---|
| 28 | This package contains development files and documentation for libfaac.
|
|---|
| 29 |
|
|---|
| 30 | %prep
|
|---|
| 31 | #%setup -q
|
|---|
| 32 | #%patch0 -p1 -b .drm
|
|---|
| 33 | %scm_setup
|
|---|
| 34 | autoreconf -vif
|
|---|
| 35 | #fix encoding
|
|---|
| 36 | #/usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 40 | export LIBS="-lcx"
|
|---|
| 41 | %configure --disable-static
|
|---|
| 42 | #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|---|
| 43 | #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|---|
| 44 | make %{?_smp_mflags}
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | %install
|
|---|
| 48 |
|
|---|
| 49 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 50 | #Remove libtool archives.
|
|---|
| 51 | #find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f
|
|---|
| 52 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|---|
| 53 | #%ldconfig_scriptlets
|
|---|
| 54 |
|
|---|
| 55 | %files
|
|---|
| 56 | %doc AUTHORS ChangeLog NEWS README TODO docs/*
|
|---|
| 57 | %license COPYING
|
|---|
| 58 | %{_bindir}/*.exe
|
|---|
| 59 | %{_libdir}/faac*.dll
|
|---|
| 60 | %{_mandir}/man1/%{name}*
|
|---|
| 61 |
|
|---|
| 62 | %files devel
|
|---|
| 63 | %{_libdir}/*.a
|
|---|
| 64 | %{_includedir}/*.h
|
|---|
| 65 |
|
|---|
| 66 | %changelog
|
|---|
| 67 | * Wed Oct 09 2019 Elbert Pol <elbert.pol@gmail.com> - 1.29.9.2-1
|
|---|
| 68 | - First rpm for OS2
|
|---|
| 69 | - Thankz KO Myung-Hun for the OS2 source
|
|---|
| 70 |
|
|---|
| 71 | * Tue Mar 05 2019 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.29.9.2-6
|
|---|
| 72 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|---|