alsa-lib: updated to 1.0.18rc3 and new configuration style

This commit is contained in:
perex 2008-09-10 13:42:34 +00:00
parent 16c8de2681
commit f6767a52b3
6 changed files with 50 additions and 21 deletions

View File

@ -20,3 +20,4 @@ alsa-lib-1.0.15rc3.tar.bz2
alsa-lib-1.0.16.tar.bz2
alsa-lib-1.0.17.tar.bz2
alsa-lib-1.0.17a.tar.bz2
alsa-lib-1.0.18rc3.tar.bz2

View File

@ -1,10 +0,0 @@
--- alsa-lib-1.0.15rc3.lennart/src/conf/alsa.conf 2007-10-17 18:28:03.000000000 -0400
+++ alsa-lib-1.0.15rc3/src/conf/alsa.conf 2007-10-17 18:33:10.000000000 -0400
@@ -8,6 +8,7 @@
{
func load
files [
+ "/etc/alsa/pulse-default.conf"
"/etc/asound.conf"
"~/.asoundrc"
]

View File

@ -1,17 +1,18 @@
#define prever rc3
#define prever_dot .rc3
%define postver a
%define prever rc3
%define prever_dot .rc3
#define postver a
Summary: The Advanced Linux Sound Architecture (ALSA) library
Name: alsa-lib
Version: 1.0.17
Version: 1.0.18
Release: 3%{?prever_dot}%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
Source10: asound.conf
Source11: alsactl.conf
Patch0: alsa-lib-1.0.17-config.patch
Patch2: alsa-lib-1.0.14-glibc-open.patch
Patch3: alsa-lib-pulse-default.patch
Patch4: alsa-lib-1.0.16-no-dox-date.patch
URL: http://www.alsa-project.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -43,11 +44,10 @@ against the ALSA libraries and interfaces.
%setup -q -n %{name}-%{version}%{?prever}%{?postver}
%patch0 -p1 -b .config
%patch2 -p1 -b .glibc-open
%patch3 -p1 -b .pulse-default
%patch4 -p1 -b .no-dox-date
%build
%configure --with-configdir=%{_sysconfdir}/alsa
%configure --disable-aload
# Remove useless /usr/lib64 rpath on 64bit archs
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -63,6 +63,11 @@ mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libasound.so.* %{buildroot}/%{_lib}
ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
# Install global configuration files
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/alsa
install -p -m 644 %{SOURCE10} %{buildroot}/etc
install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa
%clean
rm -rf %{buildroot}
@ -70,16 +75,15 @@ rm -rf %{buildroot}
%postun -p /sbin/ldconfig
%triggerpostun -- alsa-lib < 1.0.6-2
ln -snf ../../etc/alsa %{_datadir}/alsa
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog TODO doc/asoundrc.txt
%config %{_sysconfdir}/alsa/
%config %{_sysconfdir}/asound.conf
/%{_lib}/libasound.so.*
%{_bindir}/aserver
%{_libdir}/alsa-lib/
%(_datadir)/alsa/
%files devel
%defattr(-,root,root,-)
@ -92,6 +96,13 @@ ln -snf ../../etc/alsa %{_datadir}/alsa
%{_datadir}/aclocal/alsa.m4
%changelog
* Wed Sep 10 2008 Jaroslav Kysela <jkysela@redhat.com> - 1.0.18-1.rc3
- updated to 1.0.18rc3
- moved /etc/alsa configuration files back to /usr/share/alsa
- removed pulse default patch (moved to /etc/asound.conf)
- added /etc/asound.conf and /etc/alsa/alsactl.conf
- disable /dev/aload device checking (obsolete for 2.6 kernels)
* Fri Aug 15 2008 Jaroslav Kysela <jkysela@redhat.com> - 1.0.17-3
- updated to 1.0.17a

14
alsactl.conf Normal file
View File

@ -0,0 +1,14 @@
#
# ALSA library configuration file for alsactl tool
# (/usr/share/alsa tree is not necessary for alsactl)
#
ctl.hw {
@args [ CARD ]
@args.CARD {
type string
default "0"
}
type hw
card $CARD
}

13
asound.conf Normal file
View File

@ -0,0 +1,13 @@
#
# Place your global alsa-lib configuration here...
#
@hooks [
{
func load
files [
"/etc/alsa/pulse-default.conf"
]
errors false
}
]

View File

@ -1 +1 @@
4284535ff10f5e71152f8f69b325d08d alsa-lib-1.0.17a.tar.bz2
748b7ac75102b9b4523827b81e4c1f00 alsa-lib-1.0.18rc3.tar.bz2