base-specs/esound.spec
author drdoug
Thu, 15 Mar 2007 03:43:11 +0000
changeset 9565 4f6ed9cc5ede
parent 9406 2ded3de706ff
child 9687 e826ffbe7b08
permissions -rw-r--r--
2007-03-15 Doug Scott <[email protected]> * base-specs/dbus-glib.spec: Removed CC64 and CC32 - Not required * base-specs/dbus.spec: Removed CC64 and CC32 - Not required * base-specs/dbus-python.spec: Removed CC64 and CC32 - Not required * SUNWPython.spec: Removed CC64 - Not required * SUNWlibpopt.spec: Removed CC64 and CC32 - Not required * SUNWpng.spec: Removed adding ccdir to PATH * SUNWTiff.spec: Removed adding ccdir to PATH * SUNWjpg.spec: Removed adding ccdir to PATH * base-specs/audiofile.spec: Removed adding ccdir to PATH * base-specs/gtk2.spec: Removed adding ccdir to PATH * base-specs/esound.spec: Removed adding ccdir to PATH * base-specs/libIDL.spec: Removed adding ccdir to PATH * base-specs/libbonobo.spec: Removed adding ccdir to PATH * base-specs/libglade.spec: Removed adding ccdir to PATH * base-specs/pango.spec: Removed adding ccdir to PATH * base-specs/atk.spec: Removed adding ccdir to PATH * base-specs/GConf.spec: Removed adding ccdir to PATH * base-specs/ORBit2.spec: Removed adding ccdir to PATH * base-specs/cairo.spec: Removed adding ccdir to PATH * base-specs/glib2.spec: Removed adding ccdir to PATH
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package esound
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright 2007 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: yippi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
Name:         esound
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
License:      LGPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
Group:        System/Library/GNOME
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Version:      0.2.37
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Vendor:       Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:      esound - The Enlightened Sound Daemon
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Source:       http://ftp.gnome.org/pub/GNOME/sources/esound/0.2/esound-%{version}.tar.bz2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
# This patch works with the audiofile-01-uninstalled-config.diff to
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
# allow esound to be built when audiofile isn't acutally installed on the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
# system.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
#owner:yippi date:2004-05-07 type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Patch1:       esound-01-esd-config.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
URL:          http://www.tux.org/~ricdude/overview.html
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Docdir:       %{_defaultdocdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Requires:     audiofile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
The Enlightened Sound Daemon (ESD or EsounD) is the sound server for
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Enlightenment and GNOME. It mixes several sound streams into one for output.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
It can also manage network-transparent audio.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
cp -rp esound-%{version} esound-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%if %debug_build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%define debug_opt --enable-debugging
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%define debug_opt --disable-debugging
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
export CFLAGS="$CFLAGS64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
save_AUDIOFILE_CONFIG="$AUDIOFILE_CONFIG"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
export AUDIOFILE_CONFIG="$AUDIOFILE_CONFIG64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
cd ../esound-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
libtoolize --force
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
aclocal $ACLOCAL_FLAGS -I .
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
autoconf
9406
2ded3de706ff 2007-02-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    76
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
./configure --prefix=%{_prefix}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
	    --bindir=%{_bindir}/%{_arch64}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
	    --libdir=%{_libdir}/%{_arch64}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
            --with-esd-dir=%{_libexecdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
	    --libexecdir=%{_libexecdir}                 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
	    --sysconfdir=%{_sysconfdir}                 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
            --disable-audiofiletest                     \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
	    --mandir=%{_mandir} %{debug_opt}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
make -j$CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
cd ../esound-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
export AUDIOFILE_CONFIG="$save_AUDIOFILE_CONFIG"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
export CFLAGS="$CFLAGS32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
libtoolize --force
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
aclocal $ACLOCAL_FLAGS -I .
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
autoconf
9406
2ded3de706ff 2007-02-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    98
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
./configure --prefix=%{_prefix}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
	    --sysconfdir=%{_sysconfdir} 		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
            --with-esd-dir=%{_libexecdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
            --libexecdir=%{_libexecdir}                 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
            --disable-audiofiletest                     \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
	    --mandir=%{_mandir} %{debug_opt}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
make -j$CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
cd ../esound-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
cd ../esound-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
%defattr (-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
%{_libdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
%{_sysconfdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
%changelog
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9406
diff changeset
   129
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9406
diff changeset
   130
- Removed adding ccdir to PATH
9406
2ded3de706ff 2007-02-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   131
* Wed Feb 28 2007 - [email protected]
2ded3de706ff 2007-02-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   132
- need to run automake because the maintainer's version is incompatible with
2ded3de706ff 2007-02-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   133
  our version of autoconf
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
* Wed Feb 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- Bump to 0.2.37.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Sun Feb 18 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- create (split from SUNWgnome-audio.spec)