2006-01-12 14:05:22 +00:00
|
|
|
%define prever rc2
|
|
|
|
%define version_main 1.0.11
|
2006-01-13 15:52:56 +00:00
|
|
|
%define version_ainit 0.7
|
2005-05-30 15:33:26 +00:00
|
|
|
|
2004-09-09 02:54:24 +00:00
|
|
|
Summary: The Advanced Linux Sound Architecture (ALSA) library.
|
2005-10-03 12:40:40 +00:00
|
|
|
Name: alsa-lib
|
2006-01-12 14:05:22 +00:00
|
|
|
Version: %{version_main}
|
2006-02-07 10:52:14 +00:00
|
|
|
Release: 3.rc2.1
|
2004-09-09 02:54:24 +00:00
|
|
|
License: LGPL
|
2005-10-03 12:40:40 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}.tar.bz2
|
2005-06-20 11:58:14 +00:00
|
|
|
Source1: ainit-%{version_ainit}.tar.gz
|
2005-12-09 10:23:14 +00:00
|
|
|
Patch0: alsa-lib-1.0.10-ainit-2.patch
|
2006-01-13 15:52:56 +00:00
|
|
|
Patch1: alsa-lib-1.0.11-group.patch
|
2006-02-03 12:50:35 +00:00
|
|
|
Patch2: alsa-lib-1.0.11-ainit-start.patch
|
2005-10-03 12:40:40 +00:00
|
|
|
URL: http://www.alsa-project.org/
|
2005-05-30 15:33:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version_main}-root
|
2004-09-09 02:54:24 +00:00
|
|
|
BuildRequires: doxygen
|
2005-10-03 12:40:40 +00:00
|
|
|
Prereq: /sbin/ldconfig, coreutils
|
2004-09-09 02:54:24 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
|
|
|
|
functionality to the Linux operating system.
|
|
|
|
|
|
|
|
This package includes the ALSA runtime libraries to simplify application
|
|
|
|
programming and provide higher level functionality as well as support for
|
|
|
|
the older OSS API, providing binary compatibility for most OSS programs.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Static libraries and header files from the ALSA library.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
|
|
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
|
|
|
|
functionality to the Linux operating system.
|
|
|
|
|
|
|
|
This package includes the ALSA development libraries for developing
|
|
|
|
against the ALSA libraries and interfaces.
|
|
|
|
|
|
|
|
%prep
|
2005-05-30 15:33:26 +00:00
|
|
|
%setup -q -n %{name}-%{version_main}%{?prever} -a 1
|
2005-05-27 14:24:02 +00:00
|
|
|
%patch0 -p1 -b .ainit
|
2006-01-13 15:52:56 +00:00
|
|
|
%patch1 -p1 -b .group
|
2006-02-03 12:50:35 +00:00
|
|
|
%patch2 -p1 -b .start
|
2004-09-09 02:54:24 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2005-02-16 13:17:56 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS"\
|
2004-09-09 02:54:24 +00:00
|
|
|
--enable-static=yes \
|
2004-10-14 19:30:06 +00:00
|
|
|
--datadir=/etc
|
2004-09-09 02:54:24 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make doc
|
|
|
|
|
2005-05-27 14:24:02 +00:00
|
|
|
# Compile ainit
|
2005-04-27 12:41:25 +00:00
|
|
|
cd ainit
|
|
|
|
./compile
|
|
|
|
cd ..
|
|
|
|
|
2004-09-09 02:54:24 +00:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
2004-10-14 19:30:06 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}
|
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
|
|
|
|
mv %{buildroot}%{_libdir}/libasound.so.* %{buildroot}/%{_lib}
|
|
|
|
ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
|
|
|
|
|
|
|
|
mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir}
|
|
|
|
|
2005-04-27 12:41:25 +00:00
|
|
|
# install ainit binaries
|
|
|
|
install -m 755 ainit/ainit %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
# install ainit config files
|
|
|
|
install -m 644 ainit/config/ainit.conf %{buildroot}%{_sysconfdir}/alsa/ainit.conf
|
2005-06-20 11:58:14 +00:00
|
|
|
|
2005-05-18 13:07:49 +00:00
|
|
|
install -m 644 ainit/config/dmix.template %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.template
|
|
|
|
install -m 644 ainit/config/dsnoop.template %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.template
|
2005-04-27 12:41:25 +00:00
|
|
|
|
2005-06-20 11:58:14 +00:00
|
|
|
install -m 644 ainit/config/dmix.conf.lock %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf.lock
|
|
|
|
install -m 644 ainit/config/dsnoop.conf.lock %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
|
|
|
|
|
2006-01-13 15:52:56 +00:00
|
|
|
cp %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf.back
|
|
|
|
cp %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf.back
|
|
|
|
|
2005-04-27 12:41:25 +00:00
|
|
|
# install ainit man pages
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8
|
|
|
|
install -m 644 ainit/doc/ainit.8 %{buildroot}%{_mandir}/man8/ainit.8
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man5
|
|
|
|
install -m 644 ainit/doc/ainit.conf.5 %{buildroot}%{_mandir}/man5/ainit.conf.5
|
2005-05-18 13:07:49 +00:00
|
|
|
install -m 644 ainit/doc/ainit.template.5 %{buildroot}%{_mandir}/man5/ainit.template.5
|
2005-04-27 12:41:25 +00:00
|
|
|
|
2004-09-09 02:54:24 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2005-06-20 11:58:14 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2005-12-02 12:04:59 +00:00
|
|
|
|
|
|
|
# Upgrade - remove the current buffers
|
|
|
|
if [ $1 = 2 ] && [ -f /var/run/console/console.lock ]; then
|
|
|
|
/usr/bin/ainit `cat /var/run/console/console.lock` stop
|
|
|
|
fi
|
|
|
|
# Create the new ones
|
2005-07-20 13:47:19 +00:00
|
|
|
if [ -f /var/run/console/console.lock ]; then
|
|
|
|
/usr/bin/ainit `cat /var/run/console/console.lock` start
|
|
|
|
fi
|
2004-09-09 02:54:24 +00:00
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2005-06-20 11:58:14 +00:00
|
|
|
%preun
|
2005-12-02 12:04:59 +00:00
|
|
|
# Only if we're removing the package
|
|
|
|
if [ $1 = 0 ] && [ -f /var/run/console/console.lock ]; then
|
2005-07-20 13:47:19 +00:00
|
|
|
/usr/bin/ainit `cat /var/run/console/console.lock` stop
|
|
|
|
fi
|
2005-06-20 11:58:14 +00:00
|
|
|
|
2004-10-14 20:46:52 +00:00
|
|
|
%triggerpostun -- alsa-lib < 1.0.6-2
|
|
|
|
ln -snf ../../etc/alsa %{_datadir}/alsa
|
|
|
|
|
2004-09-09 02:54:24 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc COPYING ChangeLog TODO doc/asoundrc.txt
|
|
|
|
%{_bindir}/alsalisp
|
|
|
|
%{_bindir}/aserver
|
2004-10-14 19:30:06 +00:00
|
|
|
/%{_lib}/libasound.so.*
|
2005-09-27 15:27:23 +00:00
|
|
|
%{_libdir}/alsa-lib/smixer/*
|
2005-01-08 05:59:47 +00:00
|
|
|
%{_sysconfdir}/alsa
|
|
|
|
%config %{_sysconfdir}/alsa/alsa.conf
|
2005-04-27 12:41:25 +00:00
|
|
|
%{_bindir}/ainit
|
|
|
|
%{_mandir}/man?/*
|
2005-06-20 11:58:14 +00:00
|
|
|
%config %{_sysconfdir}/alsa/pcm/dmix.template
|
|
|
|
%config %{_sysconfdir}/alsa/pcm/dsnoop.template
|
|
|
|
%ghost %{_sysconfdir}/alsa/pcm/dmix.conf.lock
|
|
|
|
%ghost %{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
|
2006-01-13 15:52:56 +00:00
|
|
|
%config %{_sysconfdir}/alsa/pcm/dmix.conf
|
|
|
|
%config %{_sysconfdir}/alsa/pcm/dsnoop.conf
|
|
|
|
%config %{_sysconfdir}/alsa/ainit.conf
|
2004-09-09 02:54:24 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc doc/doxygen
|
|
|
|
%{_includedir}/alsa
|
|
|
|
%{_includedir}/sys/asoundlib.h
|
|
|
|
%{_libdir}/libasound.so
|
|
|
|
%{_libdir}/libasound.a
|
|
|
|
%exclude %{_libdir}/libasound.la
|
|
|
|
%{_libdir}/pkgconfig/alsa.pc
|
|
|
|
%{_datadir}/aclocal/alsa.m4
|
|
|
|
|
|
|
|
%changelog
|
2006-02-07 10:52:14 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.11-3.rc2.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-02-03 12:50:35 +00:00
|
|
|
* Fri Feb 3 2006 Martin Stransky <stransky@redhat.com> 1.0.11-3.rc2
|
|
|
|
- fix for #179446 - don't remove old SHM memory/keys during login
|
|
|
|
|
2006-01-13 15:52:56 +00:00
|
|
|
* Fri Jan 13 2006 Martin Stransky <stransky@redhat.com> 1.0.11-2.rc2
|
|
|
|
- fix for #169729 - Kernel update makes snd-atiixp-modem & slmodemd fail
|
|
|
|
- new ainit (0.7) should fix some problems with root users
|
|
|
|
|
2006-01-12 14:05:22 +00:00
|
|
|
* Tue Jan 12 2006 Martin Stransky <stransky@redhat.com> 1.0.11-1.rc2
|
|
|
|
- new upstream version
|
|
|
|
|
2006-01-03 20:20:15 +00:00
|
|
|
* Tue Jan 3 2006 Jesse Keating <jkeating@redhat.com> 1.0.10rf-4
|
|
|
|
- rebuilt
|
|
|
|
|
2005-12-09 10:23:14 +00:00
|
|
|
* Fri Dec 9 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-3
|
|
|
|
- rights for shared memory have been moved to config files
|
|
|
|
|
2005-12-02 12:04:59 +00:00
|
|
|
* Fri Dec 2 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-2
|
|
|
|
- fix in spec file (#159046)
|
|
|
|
|
2005-11-24 14:42:19 +00:00
|
|
|
* Thu Nov 24 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-1
|
|
|
|
- new upstream version
|
|
|
|
|
2005-10-03 12:40:40 +00:00
|
|
|
* Tue Sep 27 2005 Martin Stransky <stransky@redhat.com> 1.0.10rc1-2
|
|
|
|
- fixes in config files, new ainit (for #166086)
|
|
|
|
|
2005-09-27 15:27:23 +00:00
|
|
|
* Tue Sep 27 2005 Martin Stransky <stransky@redhat.com> 1.0.10rc1-1
|
|
|
|
- new upstream version
|
|
|
|
|
2005-07-20 13:47:19 +00:00
|
|
|
* Wed Jul 20 2005 Martin Stransky <stransky@redhat.com> 1.0.9rf-3
|
|
|
|
- check for /var/run/console/console.lock (#162982)
|
|
|
|
|
2005-06-20 11:58:14 +00:00
|
|
|
* Thu Jun 16 2005 Martin Stransky <stransky@redhat.com> 1.0.9rf-2
|
|
|
|
- fix for #159411
|
|
|
|
|
2005-05-30 15:33:26 +00:00
|
|
|
* Mon May 30 2005 Martin Stransky <stransky@redhat.com> 1.0.9rf-1
|
|
|
|
- New upstream version
|
|
|
|
- moved alsacard utility to alsa-utils
|
|
|
|
|
2005-05-27 14:24:02 +00:00
|
|
|
* Fri May 27 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc4-2
|
|
|
|
- alsacard utility for s-c-s
|
|
|
|
|
2005-05-24 20:43:46 +00:00
|
|
|
* Tue May 24 2005 Bill Nottingham <notting@redhat.com> 1.0.9rc4-1
|
|
|
|
- update to 1.0.9rc4 (#157180, #158547)
|
|
|
|
|
2005-05-18 13:07:49 +00:00
|
|
|
* Wed May 18 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc2-5
|
|
|
|
- fix for #130593
|
|
|
|
- new ainit (dmix/dsnoop is default only for cards which really need it)
|
|
|
|
- fix dsnoop
|
|
|
|
- add fix for mixer (from https://bugs.gentoo.org/attachment.cgi?id=58918)
|
|
|
|
|
2005-05-04 17:51:46 +00:00
|
|
|
* Wed May 04 2005 Than Ngo <than@redhat.com> 1.0.9rc2-4
|
|
|
|
- apply patch to fix artsd daemon crash #156592
|
|
|
|
|
2005-05-03 11:47:58 +00:00
|
|
|
* Tue May 3 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc2-3
|
|
|
|
- fixed ainit (#156278, #156505)
|
|
|
|
|
2005-04-28 16:23:13 +00:00
|
|
|
* Thu Apr 28 2005 David Woodhouse <dwmw2@redhat.com> 1.0.9rc2-2
|
|
|
|
- Fix bogus use of fgetc() in ainit. (#156278)
|
|
|
|
|
2005-04-27 12:41:25 +00:00
|
|
|
* Fri Apr 22 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc2-1
|
|
|
|
- updated to 1.0.9rc2
|
|
|
|
- add ainit tool
|
|
|
|
- dmix is now default pcm device
|
|
|
|
|
2005-03-07 15:47:35 +00:00
|
|
|
* Mon Mar 7 2005 Martin Stransky <stransky@redhat.com> 1.0.8-4.devel
|
|
|
|
- gcc4 patch
|
2005-03-07 14:25:52 +00:00
|
|
|
|
2005-02-16 13:17:56 +00:00
|
|
|
* Wed Feb 15 2005 Martin Stransky <stransky@redhat.com> 1.0.8-3.devel
|
|
|
|
- add $RPM_OPT_FLAGS to CFLAGS
|
|
|
|
|
2005-02-11 09:25:37 +00:00
|
|
|
* Fri Feb 11 2005 Martin Stransky <stransky@redhat.com> 1.0.8-2.devel
|
|
|
|
- add alpha patch (#147388, thx to Sergey Tikhonov)
|
|
|
|
- fix alsa-mixer on ICH6 system (#146607)
|
|
|
|
|
2005-01-26 13:18:10 +00:00
|
|
|
* Wed Jan 26 2005 Martin Stransky <stransky@redhat.com> 1.0.8-1.devel
|
|
|
|
- update to 1.0.8
|
|
|
|
- temporarily removed alsa-lib-1.0.7-asym-config.patch
|
|
|
|
|
2005-01-10 12:21:01 +00:00
|
|
|
* Mon Jan 10 2005 Martin Stransky <stransky@redhat.com> 1.0.7-3.devel
|
|
|
|
- fix #144518 - stack protection control
|
|
|
|
|
2005-01-08 05:59:47 +00:00
|
|
|
* Sat Jan 08 2005 Colin Walters <walters@redhat.com> 1.0.7-2
|
|
|
|
- New patch alsa-lib-1.0.7-asym-config.patch, sets up asym
|
|
|
|
in the default config file and makes it easy to make it
|
|
|
|
the default via an environment variable. Also increases the
|
|
|
|
default dmix buffer variables.
|
|
|
|
- Mark /etc/alsa/alsa.conf as a config file, and use sysconfdir
|
|
|
|
variable
|
|
|
|
|
2005-01-06 18:07:10 +00:00
|
|
|
* Thu Jan 06 2005 Colin Walters <walters@redhat.com> 1.0.7-1
|
|
|
|
- New upstream version
|
|
|
|
|
2004-12-01 01:12:38 +00:00
|
|
|
* Tue Nov 30 2004 Bill Nottingham <notting@redhat.com> 1.0.6-6
|
|
|
|
- fix bad assertion that trips up gstreamer (fixes GNOME bug #159647)
|
2004-12-01 03:42:30 +00:00
|
|
|
- undef gets in case it's a macro (#141423)
|
2004-12-01 01:12:38 +00:00
|
|
|
|
2004-10-14 20:46:52 +00:00
|
|
|
* Thu Oct 14 2004 Bill Nottingham <notting@redhat.com> 1.0.6-3
|
2004-10-14 19:30:06 +00:00
|
|
|
- move libraries & data to root fs, needed at boot time
|
|
|
|
|
2004-09-09 02:56:11 +00:00
|
|
|
* Mon Aug 30 2004 Bill Nottingham <notting@redhat.com> 1.0.6-1
|
|
|
|
- update to 1.0.6
|
|
|
|
|
2004-09-09 02:56:05 +00:00
|
|
|
* Fri Jul 2 2004 Bill Nottingham <notting@redhat.com> 1.0.5-1
|
|
|
|
- update to 1.0.5
|
|
|
|
|
2004-09-09 02:56:02 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 02:55:45 +00:00
|
|
|
* Mon May 17 2004 Colin Walters <walters@redhat.com> 1.0.4-1
|
|
|
|
- New upstream version
|
|
|
|
|
2004-09-09 02:55:38 +00:00
|
|
|
* Mon May 03 2004 Colin Walters <walters@redhat.com> 1.0.3a-2
|
|
|
|
- Add patch to avoid assert()ing on errors
|
|
|
|
|
2004-09-09 02:55:29 +00:00
|
|
|
* Thu Mar 11 2004 Bill Nottingham <notting@redhat.com> 1.0.3a-1
|
|
|
|
- update to 1.0.3a
|
|
|
|
|
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 02:54:24 +00:00
|
|
|
* Wed Jan 28 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1
|
|
|
|
- update to 1.0.2
|
|
|
|
|
|
|
|
* Thu Dec 11 2003 Bill Nottingham <notting@redhat.com> 1.0.0rc2-1
|
|
|
|
- update to 1.0.0rc2
|
|
|
|
|
|
|
|
* Mon Dec 1 2003 Bill Nottingham <notting@redhat.com> 0.9.8-3
|
|
|
|
- fix various specfile issues, including License: tag (#111153)
|
|
|
|
|
|
|
|
* Wed Nov 26 2003 Than Ngo <than@redhat.com> 0.9.8-2
|
|
|
|
- fixed dependant libraries check on x86_64
|
|
|
|
|
|
|
|
* Mon Nov 4 2003 Bill Nottingham <notting@redhat.com> - 0.9.8-1
|
|
|
|
- initial build, modify spec file from Matthias Saou
|