Sisyphus repository
Last update: 4 july 2020 | SRPMs: 17682 | Visits: 18834860
en ru br
ALT Linux repos
S:2.7-alt6
5.0: 2.6.1-alt4
4.1: 2.6.1-alt4
4.0: 2.0-alt3.20040923
3.0: 2.0-alt1.2_20040923

Group :: Sound
RPM: faad

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define soversion 2
%def_with xmms

Name: faad
Version: 2.7
Release: alt5

Summary: FAAD is a Freeware Advanced Audio Decoder
License: GPL
Group: Sound

Url: http://www.audiocoding.com
Source: http://prdownloads.sourceforge.net/faac/%{name}2-%version.tar.bz2
Patch1: faad2-alt-fix-no-ext-segfault.patch
Patch2: faad2-alt-make-mp4ff-shared.patch
Packager: Pavlov Konstantin <thresh at altlinux.ru>

%define libsndfile_ver 1.0.5

Requires: lib%name%soversion = %version-%release

BuildPreReq: libsndfile >= %libsndfile_ver

BuildRequires: gcc-c++ id3lib-devel libstdc++-devel zlib-devel
%{?_with_xmms:BuildRequires: libxmms-devel glib-devel gtk+-devel}

%description
FAAD is a LC, MAIN and LTP profile MPEG2 and MPEG-4 AAC decoder.

%package -n lib%name%soversion
Summary: Freeware Advanced Audio Decoder (FAAD) libraries
Group: System/Libraries
Provides: lib%name = %version-%release

%description -n lib%name%soversion
This package contains Freeware Advanced Audio Decoder (FAAD) shared
libraries.

%package -n lib%name-devel
Summary: Development files for the FAAD AAC decoder libraries
Group: Development/C++
Requires: lib%name%soversion = %version-%release
Requires: libsndfile-devel >= %libsndfile_ver

%description -n lib%name-devel
This package provides header files development libraries and
documentation for lib%name.

%package -n xmms-in-faad
Summary: FAAD input plugin for XMMS
Group: Sound
Requires: lib%name%soversion = %version-%release
Requires: xmms
Provides: xmms-input-faad = %version-%release
Obsoletes: xmms-input-faad <= %version-%release

%description -n xmms-in-faad
This package provides input plugin allowing XMMS to read .aac and .mp4
files.

%prep
%setup -n %{name}2-%version

%patch1 -p2
%patch2 -p2

find ./ -type f -name "Makefile*" -print0 | \
xargs -r0 subst 's,^\(CFLAGS\),AM_\1,g
   s,^\(LDFLAGS\),AM_\1,g
   s,^[[:blank:]*],\t,' --

%if_with xmms
%define _xmms_input_plugin_dir %(xmms-config --input-plugin-dir)
%endif

%build
%add_optflags %optflags_shared
#_buildshell ./bootstrap
%autoreconf
%configure --disable-static \
   --without-drm \
   %{subst_with xmms}

%make_build

%install
%makeinstall_std

# remove non-packaged files

rm -f %buildroot%_libdir/*.la

%files
%_bindir/*
#_man1dir/*

%files -n lib%name%soversion
%_libdir/*.so.*
%doc AUTHORS ChangeLog NEWS README TODO

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so

%if_with xmms
%files -n xmms-in-faad
%_xmms_input_plugin_dir/*
%doc plugins/xmms/{AUTHORS,ChangeLog,NEWS,README,TODO}
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin