Summary: Library for decoding ATSC A/52 (aka AC-3) audio streams Name: a52dec Version: 0.7.4 Release: 1 License: GPL Group: Applications/Multimedia URL: http://liba52.sourceforge.net/ Source0: http://liba52.sourceforge.net/files/a52dec-%{version}.tar.gz Patch0: a52dec-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3. The library is available as 32-bit and 64-bit. %package devel Summary: Development header files and static library for liba52 Group: Development/Libraries Requires: %{name} = %{version} %description devel liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3. These are the header files and static libraries from liba52 that are needed to build programs that use it. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "xlc -q64" or "gcc -maix64". %prep %setup -q %patch0 %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} cp liba52/.libs/liba52.so.0 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q liba52/.libs/liba52.a ./liba52.so.0 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system,0755) %doc AUTHORS ChangeLog COPYING doc/liba52.txt HISTORY NEWS README TODO %{_bindir}/* %{_libdir}/*.a %{_mandir}/man1/* %files devel %defattr(-,root,system,0755) %{_includedir}/* %{_libdir}/*.la %changelog * Tue Jan 29 2008 Michael Perzl - 0.7.4-1 - first version for AIX V5.1 and higher