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