author | Jon Tibble <meths@btinternet.com> |
Thu, 15 Mar 2012 09:58:35 +0000 | |
branch | s11express-2010-11 |
changeset 22104 | cde243cbe3f6 |
parent 20083 | 450635fa0066 |
child 20343 | 4198ebdad7ef |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package audiofile |
|
3 |
# |
|
17837 | 4 |
# Copyright 2010 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
9397 | 9 |
# |
16426 | 10 |
|
11 |
%define OSR delivered in s10:0.2.6 |
|
12 |
||
9397 | 13 |
Name: audiofile |
20083
450635fa0066
Synced Brian Cameron's relicensing changes for November release
davelam
parents:
17864
diff
changeset
|
14 |
License: LGPL v2, MIT, Sun Public Domain, binaries use GPLv2 |
9397 | 15 |
Group: System/Library/GNOME |
17837 | 16 |
Version: 0.2.7 |
9397 | 17 |
Release: 1 |
18 |
Distribution: Java Desktop System |
|
17864 | 19 |
Vendor: 68k.org |
9397 | 20 |
Summary: audiofile - |
21 |
Source: http://www.68k.org/~michael/audiofile/audiofile-%{version}.tar.gz |
|
9415 | 22 |
# Note - I sent this patch to the maintainer and he agreed to accept it |
23 |
# into their next build. There is no bug tracking system for this module. |
|
9397 | 24 |
#owner:yippi date:2004-02-25 type:feature |
16627 | 25 |
Patch1: audiofile-01-uninstalled-pc.diff |
9397 | 26 |
URL: http://www.68k.org/~michael/audiofile/ |
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
Docdir: %{_defaultdocdir}/%{name} |
|
29 |
Autoreqprov: on |
|
30 |
Requires: audiofile |
|
31 |
||
32 |
%description |
|
33 |
The Audio File Library provides a uniform and elegant API for accessing |
|
34 |
a variety of audio file formats, such as AIFF/AIFF-C, WAVE, NeXT/Sun |
|
35 |
.snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual Research, Amiga |
|
36 |
IFF/8SVX, and NIST SPHERE. Supported compression formats are currently |
|
37 |
G.711 mu-law and A-law and IMA and MS ADPCM. |
|
38 |
||
39 |
%prep |
|
40 |
%setup -q |
|
41 |
%patch1 -p1 |
|
42 |
||
43 |
%build |
|
44 |
%ifos linux |
|
45 |
if [ -x /usr/bin/getconf ]; then |
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
47 |
fi |
|
48 |
%else |
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
50 |
%endif |
|
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
52 |
CPUS=1 |
|
53 |
fi |
|
54 |
||
55 |
libtoolize --force |
|
56 |
aclocal |
|
57 |
autoconf |
|
58 |
automake -a -c -f |
|
9687 | 59 |
export CFLAGS="%optflags" |
60 |
export LDFLAGS="%_ldflags" |
|
9397 | 61 |
./configure --prefix=%{_prefix} \ |
9687 | 62 |
--libdir=%{_libdir} \ |
63 |
--bindir=%{_bindir} \ |
|
9397 | 64 |
--sysconfdir=%{_sysconfdir} \ |
65 |
--with-esd-dir=%{_libexecdir} \ |
|
66 |
--libexecdir=%{_libexecdir} \ |
|
67 |
--mandir=%{_mandir} |
|
68 |
make -j$CPUS |
|
69 |
||
70 |
||
71 |
%install |
|
72 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
73 |
||
74 |
%clean |
|
75 |
rm -rf $RPM_BUILD_ROOT |
|
76 |
||
77 |
%files |
|
78 |
%defattr (-, root, root) |
|
79 |
%{_libdir}/* |
|
80 |
%{_bindir}/* |
|
81 |
||
82 |
%changelog |
|
17837 | 83 |
* Tue Apr 13 2010 - [email protected] |
84 |
- Bump to 0.2.7. |
|
17421 | 85 |
* Fri Jan 22 2009 - [email protected] |
86 |
- Add patch audiofile-02-22_CVE-2008-5824.patch to fix bugster bug |
|
87 |
#6917569. |
|
9687 | 88 |
* Wed Apr 4 2007 - [email protected] |
89 |
- convert to new style 64-bit build |
|
9565 | 90 |
* Wed Mar 15 2007 - [email protected] |
91 |
- Removed adding ccdir to PATH |
|
9406 | 92 |
* Wed Feb 28 2007 - [email protected] |
93 |
- update patch to use an uninstalled pkg-config .pc file instead of |
|
94 |
an uninstalled audiofile-config file, because the new esound only |
|
95 |
uses the .pc files |
|
9397 | 96 |
* Sun Feb 18 2007 - [email protected] |
97 |
- create (split from SUNWgnome-audio.spec) |