base-specs/audiofile.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 20026 2da80049f7bb
child 20342 393ae73665bc
permissions -rw-r--r--
update tags

#
# spec file for package audiofile
#
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner yippi
#

%define OSR delivered in s10:0.2.6

Name:         audiofile
License:      LGPL v2, MIT, Sun Public Domain, binaries use GPLv2
Group:        System/Library/GNOME
Version:      0.2.7
Release:      1
Distribution: Java Desktop System
Vendor:       68k.org
Summary:      audiofile - 
Source:       http://www.68k.org/~michael/audiofile/audiofile-%{version}.tar.gz
# Note - I sent this patch to the maintainer and he agreed to accept it
# into their next build.  There is no bug tracking system for this module.
#owner:yippi date:2004-02-25 type:feature
Patch1:       audiofile-01-uninstalled-pc.diff
URL:          http://www.68k.org/~michael/audiofile/
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:       %{_defaultdocdir}/%{name}
Autoreqprov:  on
Requires:     audiofile

%description
The Audio File Library provides a uniform and elegant API for accessing
a variety of audio file formats, such as AIFF/AIFF-C, WAVE, NeXT/Sun
.snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual Research, Amiga
IFF/8SVX, and NIST SPHERE. Supported compression formats are currently
G.711 mu-law and A-law and IMA and MS ADPCM.

%prep
%setup -q
%patch1 -p1

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

libtoolize --force
aclocal
autoconf
automake -a -c -f
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags"
./configure --prefix=%{_prefix}				\
            --libdir=%{_libdir}                         \
            --bindir=%{_bindir}                         \
	    --sysconfdir=%{_sysconfdir} 		\
            --with-esd-dir=%{_libexecdir}		\
            --libexecdir=%{_libexecdir}                 \
	    --mandir=%{_mandir}
make -j$CPUS


%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%{_libdir}/*
%{_bindir}/*

%changelog
* Tue Apr 13 2010 - [email protected]
- Bump to 0.2.7.
* Fri Jan 22 2009 - [email protected]
- Add patch audiofile-02-22_CVE-2008-5824.patch to fix bugster bug 
  #6917569.
* Wed Apr  4 2007 - [email protected]
- convert to new style 64-bit build
* Wed Mar 15 2007 - [email protected]
- Removed adding ccdir to PATH
* Wed Feb 28 2007 - [email protected]
- update patch to use an uninstalled pkg-config .pc file instead of
  an uninstalled audiofile-config file, because the new esound only
  uses the .pc files
* Sun Feb 18 2007 - [email protected]
- create (split from SUNWgnome-audio.spec)