10139N/A#
10139N/A# spec file for package audiofile
10139N/A#
18588N/A# Copyright 2010 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner yippi
10139N/A#
17177N/A
17177N/A%define OSR delivered in s10:0.2.6
17177N/A
10139N/AName: audiofile
19097N/ALicense: LGPL v2, MIT, Sun Public Domain, binaries use GPL v2
10139N/AGroup: System/Library/GNOME
18588N/AVersion: 0.2.7
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18615N/AVendor: 68k.org
10139N/ASummary: audiofile -
10139N/ASource: http://www.68k.org/~michael/audiofile/audiofile-%{version}.tar.gz
10139N/AURL: http://www.68k.org/~michael/audiofile/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/%{name}
10139N/AAutoreqprov: on
10139N/ARequires: audiofile
10139N/A
10139N/A%description
10139N/AThe Audio File Library provides a uniform and elegant API for accessing
10139N/Aa variety of audio file formats, such as AIFF/AIFF-C, WAVE, NeXT/Sun
10139N/A.snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual Research, Amiga
10139N/AIFF/8SVX, and NIST SPHERE. Supported compression formats are currently
10139N/AG.711 mu-law and A-law and IMA and MS ADPCM.
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Alibtoolize --force
10139N/Aaclocal
10139N/Aautoconf
10139N/Aautomake -a -c -f
10429N/Aexport CFLAGS="%optflags"
10429N/Aexport LDFLAGS="%_ldflags"
10139N/A./configure --prefix=%{_prefix} \
10429N/A --libdir=%{_libdir} \
10429N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-esd-dir=%{_libexecdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --mandir=%{_mandir}
10139N/Amake -j$CPUS
10139N/A
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr (-, root, root)
10139N/A%{_libdir}/*
10139N/A%{_bindir}/*
10139N/A
10139N/A%changelog
19799N/A* Thu Dec 02 2010 - brian.cameron@oracle.com
19799N/A- No longer need the unintalled-pc patch since we no longer build ESounD.
18588N/A* Tue Apr 13 2010 - brian.cameron@sun.com
18588N/A- Bump to 0.2.7.
18172N/A* Fri Jan 22 2009 - brian.cameron@sun.com
18172N/A- Add patch audiofile-02-22_CVE-2008-5824.patch to fix bugster bug
18172N/A #6917569.
10429N/A* Wed Apr 4 2007 - laca@sun.com
10429N/A- convert to new style 64-bit build
10307N/A* Wed Mar 15 2007 - dougs@truemail.co.th
10307N/A- Removed adding ccdir to PATH
10148N/A* Wed Feb 28 2007 - laca@sun.com
10148N/A- update patch to use an uninstalled pkg-config .pc file instead of
10148N/A an uninstalled audiofile-config file, because the new esound only
10148N/A uses the .pc files
10139N/A* Sun Feb 18 2007 - laca@sun.com
10139N/A- create (split from SUNWgnome-audio.spec)