2006-12-19 16:57:00 +01:00
|
|
|
#
|
2011-03-24 12:32:59 +01:00
|
|
|
# spec file for package alsa
|
2006-12-19 16:57:00 +01:00
|
|
|
#
|
2011-03-24 12:32:59 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 16:57:00 +01:00
|
|
|
#
|
2008-08-07 01:08:07 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 16:57:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:09:31 +01:00
|
|
|
|
2006-12-19 16:57:00 +01:00
|
|
|
Name: alsa
|
2010-04-24 17:01:26 +02:00
|
|
|
BuildRequires: doxygen pkg-config
|
2011-02-01 15:03:02 +01:00
|
|
|
%define package_version 1.0.24.1
|
2010-04-23 19:20:23 +02:00
|
|
|
License: LGPLv2.1+
|
2006-12-19 16:57:00 +01:00
|
|
|
Group: System/Libraries
|
2007-06-22 00:17:57 +02:00
|
|
|
Requires: alsa-utils
|
2007-04-17 00:28:30 +02:00
|
|
|
Recommends: alsa-plugins alsa-oss
|
2006-12-19 16:57:00 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2007-09-19 18:50:16 +02:00
|
|
|
AutoReqProv: on
|
2009-01-14 17:47:19 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: alsa-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 16:57:00 +01:00
|
|
|
Summary: Advanced Linux Sound Architecture
|
2011-02-01 15:03:02 +01:00
|
|
|
Version: 1.0.24.1
|
2011-07-29 16:48:26 +02:00
|
|
|
Release: 16
|
2007-04-17 00:28:30 +02:00
|
|
|
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{package_version}.tar.bz2
|
2009-12-21 23:15:16 +01:00
|
|
|
Source2: baselibs.conf
|
2006-12-19 16:57:00 +01:00
|
|
|
Source8: 40-alsa.rules
|
|
|
|
Source11: alsasound
|
|
|
|
Source12: sysconfig.sound
|
|
|
|
Source13: joystick
|
|
|
|
Source14: sysconfig.joystick
|
|
|
|
Source16: set_default_volume
|
|
|
|
Source17: test.wav
|
|
|
|
Source20: README.SuSE
|
|
|
|
Source21: README.testwav
|
|
|
|
Source30: all_notes_off
|
|
|
|
Source31: all_notes_off.bin
|
|
|
|
Source32: all_notes_off.mid
|
2008-02-08 17:43:47 +01:00
|
|
|
Source33: alsa-info.sh
|
2008-05-23 17:05:14 +02:00
|
|
|
Source34: alsa-init.sh
|
2009-12-21 23:15:16 +01:00
|
|
|
# Patch: alsa-lib-git-fixes.diff
|
2011-06-03 14:51:39 +02:00
|
|
|
Patch1: 0001-Fix-alsa-lib-to-regard-3D-control-Depth-as-Playback-.patch
|
|
|
|
Patch2: 0002-alsa-lib-add-LaCie-Firewire-Speakers-Griffin-FireWav.patch
|
|
|
|
Patch3: 0003-alsa-lib-ucm-allow-values-to-be-read-from-devices.patch
|
|
|
|
Patch4: 0004-UCM-comment-fixes-and-fix-myvalue-initialization-fix.patch
|
|
|
|
Patch5: 0005-UCM-Fix-empty-get_list-initialize-returned-pointer-t.patch
|
|
|
|
Patch6: 0006-Conf-Fix-channels-of-ICE1712-to-10-12.patch
|
|
|
|
Patch7: 0007-UCM-Fix-LGPL-licence-how-to-receive-part-referred-GP.patch
|
|
|
|
Patch8: 0008-configure-Fail-when-the-user-attempts-to-compile-sha.patch
|
|
|
|
Patch9: 0009-Mark-Heaphone-Center-LFE-control-of-emu10k1-conf-as-.patch
|
|
|
|
Patch10: 0010-Fix-typo-in-comment-in-surround71.conf.patch
|
|
|
|
Patch11: 0011-test-latency-print-error-message-when-2-periods-per-.patch
|
|
|
|
Patch12: 0012-EMU10K1.conf-Don-t-lock-hook-controls.patch
|
|
|
|
Patch13: 0013-HDA-Intel.conf-Fix-low-mic-volume-due-to-pulseaudio-.patch
|
|
|
|
Patch14: 0014-alsa-lib-fixed-coverity-reported-issues-under-FORWAR.patch
|
|
|
|
Patch15: 0015-Fix-compile-warnings.patch
|
|
|
|
Patch16: 0016-Fix-printf-for-size_t.patch
|
|
|
|
Patch18: 0018-UCM-fix-memory-leak-when-executing-cset-commands.patch
|
|
|
|
Patch19: 0019-Specficy-subdevice-0-for-front-surround-of-HDA-Intel.patch
|
|
|
|
Patch20: 0020-emu10k1.conf-Fix-no-sound-problem-when-using-SB-Live.patch
|
|
|
|
Patch21: 0021-ctlparse-Respect-softfloat-configure-option.patch
|
|
|
|
Patch22: 0022-UCM-Fix-typo-in-error-message.patch
|
|
|
|
Patch23: 0023-UCM-Fix-deadlock-following-failed-get-_verb.patch
|
2011-07-26 15:45:27 +02:00
|
|
|
Patch24: 0024-Define-sysdefault-PCM-and-control.patch
|
|
|
|
Patch25: 0025-Add-snd_-ctl-pcm-_open_fallback-functions.patch
|
2011-06-03 14:51:39 +02:00
|
|
|
Patch99: alsa-lib-doxygen-avoid-crash-for-11.3.diff
|
2007-09-19 18:50:16 +02:00
|
|
|
Url: http://www.alsa-project.org/
|
2006-12-19 16:57:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
ALSA stands for Advanced Linux Sound Architecture. It supports many
|
2007-04-17 00:28:30 +02:00
|
|
|
PCI, ISA PnP and USB sound cards.
|
2006-12-19 16:57:00 +01:00
|
|
|
|
2007-04-17 00:28:30 +02:00
|
|
|
This package contains the ALSA init scripts to start the sound system
|
|
|
|
on your Linux box. To set it up, run yast2 or alsaconf.
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-10-16 17:43:52 +02:00
|
|
|
Jaroslav Kysela <perex@perex.cz>
|
2007-04-17 00:28:30 +02:00
|
|
|
Takashi Iwai <tiwai@suse.de>
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%package devel
|
2007-06-22 00:17:57 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2006-12-19 16:57:00 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-12-21 23:15:16 +01:00
|
|
|
License: LGPLv2.1+
|
2007-04-17 09:28:36 +02:00
|
|
|
Requires: glibc-devel, libasound2 = %{version}
|
2006-12-19 16:57:00 +01:00
|
|
|
Obsoletes: alsadev
|
|
|
|
Provides: alsadev alsa-lib-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-10-16 17:43:52 +02:00
|
|
|
Jaroslav Kysela <perex@perex.cz>
|
2007-04-17 00:28:30 +02:00
|
|
|
Takashi Iwai <tiwai@suse.de>
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%package docs
|
2007-06-22 00:17:57 +02:00
|
|
|
Summary: Additional Package Documentation
|
2006-12-19 16:57:00 +01:00
|
|
|
Group: Documentation/Other
|
2009-12-21 23:15:16 +01:00
|
|
|
License: GPLv2+
|
2009-09-10 14:30:23 +02:00
|
|
|
%if %suse_version > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%description docs
|
|
|
|
This package contains optional documentation provided in addition to
|
|
|
|
this package's base documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-10-16 17:43:52 +02:00
|
|
|
Jaroslav Kysela <perex@perex.cz>
|
2007-04-17 00:28:30 +02:00
|
|
|
Takashi Iwai <tiwai@suse.de>
|
|
|
|
|
|
|
|
%package -n libasound2
|
|
|
|
Summary: Advanced Linux Sound Architecture Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: alsa-lib
|
2009-12-21 23:15:16 +01:00
|
|
|
License: LGPLv2.1+
|
2007-04-17 00:28:30 +02:00
|
|
|
|
|
|
|
%description -n libasound2
|
|
|
|
This package contains the library for ALSA, Advanced Linux Sound
|
|
|
|
Architecture.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-10-16 17:43:52 +02:00
|
|
|
Jaroslav Kysela <perex@perex.cz>
|
2007-04-17 00:28:30 +02:00
|
|
|
Takashi Iwai <tiwai@suse.de>
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%prep
|
2007-06-15 00:19:31 +02:00
|
|
|
%setup -q -n alsa-lib-%{package_version}
|
2009-12-21 23:15:16 +01:00
|
|
|
# %patch -p1
|
2010-09-03 16:40:54 +02:00
|
|
|
%patch1 -p1
|
2011-06-03 14:51:39 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
2011-07-26 15:45:27 +02:00
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
2011-06-03 14:51:39 +02:00
|
|
|
%if %suse_version == 1130
|
|
|
|
%patch99 -p1
|
2011-02-01 15:03:02 +01:00
|
|
|
%endif
|
2009-05-06 18:31:09 +02:00
|
|
|
# hack to fix build on older distros
|
|
|
|
%if %suse_version < 1100
|
|
|
|
%ifarch %ix86
|
|
|
|
test -f $RPM_SOURCE_DIR/baselibs.conf && \
|
|
|
|
sed -i -e'/recommends.*alsa-oss/d' $RPM_SOURCE_DIR/baselibs.conf
|
|
|
|
%endif
|
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%build
|
2009-12-21 23:15:16 +01:00
|
|
|
export AUTOMAKE_JOBS=%{?jobs:%jobs}
|
2006-12-19 16:57:00 +01:00
|
|
|
# build alsa-lib
|
|
|
|
autoreconf -fi
|
2007-06-08 17:28:04 +02:00
|
|
|
%configure \
|
2006-12-19 16:57:00 +01:00
|
|
|
--disable-static \
|
2008-03-03 16:21:31 +01:00
|
|
|
--enable-symbolic-functions \
|
2006-12-19 16:57:00 +01:00
|
|
|
--disable-aload \
|
2007-08-03 13:57:38 +02:00
|
|
|
--disable-alisp \
|
|
|
|
--disable-python
|
2010-10-25 09:41:00 +02:00
|
|
|
make V=1 %{?jobs:-j %jobs}
|
2006-12-19 16:57:00 +01:00
|
|
|
# run doxygen
|
|
|
|
make -C doc doc
|
|
|
|
|
|
|
|
%install
|
2007-04-17 00:28:30 +02:00
|
|
|
# install shared library
|
2007-06-08 17:28:04 +02:00
|
|
|
%makeinstall
|
2007-04-17 00:28:30 +02:00
|
|
|
# clean up unneeded files
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.*a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/aserver
|
2006-12-19 16:57:00 +01:00
|
|
|
#
|
2007-04-17 00:28:30 +02:00
|
|
|
# install helper scripts
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
2008-05-23 17:05:14 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
2006-12-19 16:57:00 +01:00
|
|
|
install -c -m 0755 %{SOURCE16} $RPM_BUILD_ROOT%{_bindir}
|
2008-05-23 17:05:14 +02:00
|
|
|
install -c -m 0755 %{SOURCE34} $RPM_BUILD_ROOT%{_sbindir}/alsa-init
|
2011-03-25 12:06:38 +01:00
|
|
|
%if %suse_version < 1140
|
2011-03-31 15:03:56 +02:00
|
|
|
sed -i -e 's@/var/lib/alsa/asound.state@/etc/asound.state@g' $RPM_BUILD_ROOT%{_bindir}/set_default_volume
|
|
|
|
sed -i -e 's@/var/lib/alsa/asound.state@/etc/asound.state@g' $RPM_BUILD_ROOT%{_sbindir}/alsa-init
|
2011-03-25 12:06:38 +01:00
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
# install test wave file
|
2007-04-17 00:28:30 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sounds/alsa
|
2006-12-19 16:57:00 +01:00
|
|
|
install -c -m 0644 %{SOURCE17} $RPM_BUILD_ROOT%{_datadir}/sounds/alsa/test.wav
|
|
|
|
# install all_notes_off stuff
|
|
|
|
install -c -m 0755 %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}
|
2007-04-17 00:28:30 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
2006-12-19 16:57:00 +01:00
|
|
|
install -c -m 0644 %{SOURCE31} $RPM_BUILD_ROOT/usr/lib
|
|
|
|
install -c -m 0644 %{SOURCE32} $RPM_BUILD_ROOT/usr/lib
|
|
|
|
#
|
2007-04-17 00:28:30 +02:00
|
|
|
# install init scripts
|
2006-12-19 16:57:00 +01:00
|
|
|
#
|
2007-04-17 00:28:30 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2006-12-19 16:57:00 +01:00
|
|
|
install -c -m 0755 %{SOURCE11} $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
install -c -m 0755 %{SOURCE13} $RPM_BUILD_ROOT/etc/init.d
|
2011-03-25 12:06:38 +01:00
|
|
|
%if %suse_version < 1140
|
2011-03-31 15:03:56 +02:00
|
|
|
sed -i -e 's@/var/lib/alsa/asound.state@/etc/asound.state@g' $RPM_BUILD_ROOT/etc/init.d/alsasound
|
2011-03-25 12:06:38 +01:00
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_sbindir}/rcalsasound
|
|
|
|
ln -s ../../etc/init.d/alsasound $RPM_BUILD_ROOT%{_sbindir}/rcalsasound
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_sbindir}/rcjoystick
|
|
|
|
ln -s ../../etc/init.d/joystick $RPM_BUILD_ROOT%{_sbindir}/rcjoystick
|
2007-04-17 00:28:30 +02:00
|
|
|
#
|
2010-11-24 06:40:53 +01:00
|
|
|
# udev rules (only for non-systemd)
|
2007-04-17 00:28:30 +02:00
|
|
|
#
|
2010-11-26 09:30:25 +01:00
|
|
|
%if %suse_version < 1140
|
2007-04-17 00:28:30 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
2006-12-19 16:57:00 +01:00
|
|
|
install -c -m 0644 %{SOURCE8} $RPM_BUILD_ROOT/etc/udev/rules.d
|
2010-11-26 09:30:25 +01:00
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
#
|
|
|
|
# install template to update rc.config and sysconfig files:
|
|
|
|
# (updating the actual files is done in the %post-script)
|
|
|
|
#
|
|
|
|
mkdir -p -m 755 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
for i in sound joystick; do
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/sysconfig.$i $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
done
|
2007-04-17 00:28:30 +02:00
|
|
|
#
|
|
|
|
# documents
|
|
|
|
#
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
|
cp $RPM_SOURCE_DIR/README* $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/alsa-lib
|
|
|
|
cp COPYING ChangeLog INSTALL TODO MEMORY-LEAK $RPM_BUILD_ROOT%{_docdir}/%{name}/alsa-lib
|
|
|
|
cp doc/asoundrc.txt $RPM_BUILD_ROOT%{_docdir}/%{name}/alsa-lib
|
2008-08-07 01:08:07 +02:00
|
|
|
# install alsa-info.sh to sbindir
|
|
|
|
install -c -m 0755 %{SOURCE33} $RPM_BUILD_ROOT%{_sbindir}
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%post
|
2008-08-18 19:01:56 +02:00
|
|
|
%{fillup_and_insserv -ny sound alsasound}
|
2006-12-19 16:57:00 +01:00
|
|
|
%{fillup_and_insserv -n joystick joystick}
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal alsasound joystick
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update alsasound joystick
|
2007-06-22 00:17:57 +02:00
|
|
|
%insserv_cleanup
|
2006-12-19 16:57:00 +01:00
|
|
|
exit 0
|
|
|
|
|
2008-02-01 20:26:15 +01:00
|
|
|
%post -n libasound2 -p /sbin/ldconfig
|
2007-04-17 00:28:30 +02:00
|
|
|
|
2008-02-01 20:26:15 +01:00
|
|
|
%postun -n libasound2 -p /sbin/ldconfig
|
2007-04-17 00:28:30 +02:00
|
|
|
|
2006-12-19 16:57:00 +01:00
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
/etc/init.d/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
/usr/lib/all_notes_off.*
|
2007-04-17 00:28:30 +02:00
|
|
|
%{_datadir}/sounds/alsa
|
2006-12-19 16:57:00 +01:00
|
|
|
/var/adm/fillup-templates/*
|
2010-11-26 09:30:25 +01:00
|
|
|
%if %suse_version < 1140
|
2006-12-19 16:57:00 +01:00
|
|
|
/etc/udev
|
2010-11-26 09:30:25 +01:00
|
|
|
%endif
|
2006-12-19 16:57:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2007-01-26 23:03:58 +01:00
|
|
|
%{_libdir}/libasound.so
|
2006-12-19 16:57:00 +01:00
|
|
|
%{_includedir}/sys/*
|
|
|
|
%{_includedir}/alsa
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%defattr(-, root, root)
|
2007-04-17 00:28:30 +02:00
|
|
|
%doc doc/doxygen/html/*
|
|
|
|
|
|
|
|
%files -n libasound2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libasound.so.*
|
|
|
|
%{_libdir}/alsa-lib
|
|
|
|
%{_datadir}/alsa
|
2007-11-23 17:15:47 +01:00
|
|
|
|
2007-03-15 01:11:46 +01:00
|
|
|
%changelog
|