audiofile.spec revision 10307
10139N/A#
10139N/A# spec file for package audiofile
10139N/A#
10139N/A# Copyright 2007 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#
10139N/A# Owner: yippi
10139N/A#
10139N/AName: audiofile
10139N/ALicense: LGPL
10139N/AGroup: System/Library/GNOME
10139N/AVersion: 0.2.6
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: audiofile -
10139N/ASource: http://www.68k.org/~michael/audiofile/audiofile-%{version}.tar.gz
10139N/A# Note - I sent this patch to the maintainer and he agreed to accept it
10139N/A# into their next build. There is no bug tracking system for this module.
10139N/A#owner:yippi date:2004-02-25 type:feature
10139N/APatch1: audiofile-01-uninstalled.pc.diff
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%patch1 -p1
10139N/A
10139N/A%ifos solaris
10139N/A%ifarch amd64 sparcv9
10139N/Acd ..
10139N/Acp -rp audiofile-%{version} audiofile-%{version}-64
10139N/A%endif
10139N/A%endif
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/A%ifos solaris
10139N/A%ifarch amd64 sparcv9
10139N/Aexport CFLAGS="$CFLAGS64"
10139N/Aexport PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
10139N/A
10139N/Acd ../audiofile-%version-64
10139N/A
10139N/Alibtoolize --force
10139N/Aaclocal
10139N/Aautoconf
10139N/Aautomake -a -c -f
10139N/A./configure --prefix=%{_prefix} \
10139N/A --bindir=%{_bindir}/%{_arch64} \
11965N/A --libdir=%{_libdir}/%{_arch64} \
11965N/A --with-esd-dir=%{_libexecdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir}
10139N/Amake -j$CPUS
11933N/Acd ../audiofile-%version
10139N/A
10139N/Aexport PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
10139N/Aexport CFLAGS="$CFLAGS32"
10139N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/A%endif
10139N/A%endif
10139N/A
10139N/Alibtoolize --force
10139N/Aaclocal
10139N/Aautoconf
10139N/Aautomake -a -c -f
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A./configure --prefix=%{_prefix} \
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/A%ifos solaris
10139N/A%ifarch amd64 sparcv9
10139N/Acd ../audiofile-%version-64
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
11232N/Acd ../audiofile-%version
10139N/A%endif
10139N/A%endif
10139N/A
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
11925N/A
10139N/A%files
10139N/A%defattr (-, root, root)
10139N/A%{_libdir}/*
10139N/A%{_bindir}/*
10139N/A
10139N/A%changelog
10139N/A* Wed Mar 15 2007 - dougs@truemail.co.th
10139N/A- Removed adding ccdir to PATH
10139N/A* Wed Feb 28 2007 - laca@sun.com
10139N/A- update patch to use an uninstalled pkg-config .pc file instead of
10139N/A an uninstalled audiofile-config file, because the new esound only
10139N/A uses the .pc files
10139N/A* Sun Feb 18 2007 - laca@sun.com
10139N/A- create (split from SUNWgnome-audio.spec)
10139N/A