Martin Stransky edf4ad
#define  prever         rc1
Martin Stransky edf4ad
#define  prever_dot     .rc1
Matthias Saou 09932a
Matthias Saou 09932a
Summary: Advanced Linux Sound Architecture (ALSA) utilities
Matthias Saou 09932a
Name:    alsa-utils
Matthias Saou 09932a
Version: 1.0.15
Martin Stransky edf4ad
Release: 1%{?prever_dot}%{?dist}
Matthias Saou 09932a
License: GPLv2+
Matthias Saou 09932a
Group:   Applications/Multimedia
Matthias Saou 09932a
URL:     http://www.alsa-project.org/
Matthias Saou 09932a
Source:  ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}%{?prever}.tar.bz2
Matthias Saou 09932a
Source2: salsa.c
Matthias Saou 09932a
Source3: alsacard.c
Matthias Saou 09932a
Source4: alsaunmute.c
Martin Stransky 874408
Source5: salsa.1
Matthias Saou 09932a
Source10: alsa.rules
Matthias Saou 09932a
Patch0:  alsa-utils-1.0.14-alsaconf.patch
Matthias Saou 09932a
Patch1:  alsa-utils-1.0.14-statedir.patch
Matthias Saou 09932a
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matthias Saou 09932a
BuildRequires: alsa-lib-devel >= %{version}
Matthias Saou 09932a
BuildRequires: ncurses-devel
Matthias Saou 09932a
BuildRequires: gettext-devel
Matthias Saou 09932a
Conflicts: udev < 062
cvsdist c576bd
cvsdist 8e872d
%description
cvsdist 8e872d
This package contains command line utilities for the Advanced Linux Sound
cvsdist 8e872d
Architecture (ALSA).
cvsdist c576bd
cvsdist c576bd
%prep
Martin Stransky ca7214
%setup -q -n %{name}-%{version}%{?prever}
Matthias Saou 09932a
%patch0 -p1
Martin Stransky 8e69a6
%patch1 -p1 -b .statedir
cvsdist c576bd
cvsdist c576bd
%build
Martin Stransky ce3a06
%configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --sbindir=/sbin
cvsdist 8e872d
%{__make} %{?_smp_mflags}
Bill Nottingham 6c53f8
%{__cc} $RPM_OPT_FLAGS -o salsa %{SOURCE2} -lasound
Martin Stransky 0de5fe
%{__cc} $RPM_OPT_FLAGS -o alsacard %{SOURCE3} -lasound
Martin Stransky 2351ac
%{__cc} $RPM_OPT_FLAGS -o alsaunmute %{SOURCE4} -lasound
Martin Stransky 874408
%{__cp} %{SOURCE5} .
cvsdist c576bd
cvsdist c576bd
%install
Matthias Saou 09932a
%{__rm} -rf $RPM_BUILD_ROOT
Bill Nottingham ef3897
make install DESTDIR=$RPM_BUILD_ROOT
Martin Stransky 93074d
%find_lang %{name}
cvsdist c576bd
Martin Stransky 5e20f4
# Install ALSA udev rules
Martin Stransky 93074d
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/udev/rules.d
Martin Stransky 93074d
install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/udev/rules.d/90-alsa.rules
Martin Stransky 5e20f4
Martin Stransky 5e20f4
# Install support utilities
Bill Nottingham 6a536a
mkdir -p -m755 $RPM_BUILD_ROOT/bin
Martin Stransky e40dae
install -p -m 755 alsacard alsaunmute %{buildroot}/bin/
Martin Stransky e40dae
install -p -m 755 salsa %{buildroot}/sbin/
Martin Stransky 5e20f4
Martin Stransky 5e20f4
# Link alsactl to /usr/sbin
Martin Stransky 5e20f4
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
Martin Stransky 5e20f4
ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl
cvsdist c576bd
Martin Stransky 8e69a6
# Create a place for volume configuration
Martin Stransky 857c3b
mkdir -p $RPM_BUILD_ROOT/etc/alsa
Martin Stransky 857c3b
touch $RPM_BUILD_ROOT/etc/alsa/asound.state
Martin Stransky 8e69a6
Martin Stransky 874408
# Install salsa man page
Martin Stransky 874408
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
Martin Stransky 874408
install -p -m 644 salsa.1 %{buildroot}/usr/share/man/man1
Martin Stransky 874408
cvsdist c576bd
%clean
cvsdist 8e872d
%{__rm} -rf $RPM_BUILD_ROOT
cvsdist c576bd
Martin Stransky 93074d
%files -f %{name}.lang
cvsdist 8e872d
%defattr(-,root,root,-)
cvsdist 8e872d
%doc COPYING ChangeLog README TODO
Martin Stransky 93074d
%config /etc/udev/rules.d/*
Bill Nottingham 6a536a
/bin/*
Martin Stransky 5e20f4
/sbin/*
cvsdist 8e872d
%{_bindir}/*
cvsdist 8e872d
%{_sbindir}/*
Martin Stransky 93074d
%{_datadir}/alsa/
Martin Stransky 93074d
%{_datadir}/sounds/
cvsdist 8e872d
%{_mandir}/man?/*
Martin Stransky 857c3b
%dir /etc/alsa/
Martin Stransky 857c3b
%ghost /etc/alsa/asound.state
Martin Stransky 8e69a6
cvsdist c576bd
cvsdist c576bd
%changelog
Martin Stransky 874408
* Tue Jan 15 2008 Mikel Ward <mikel@mikelward.com>
Martin Stransky 874408
- add salsa man page
Martin Stransky 874408
Martin Stransky edf4ad
* Mon Oct 29 2007 Martin Stransky <stransky@redhat.com> 1.0.15-1
Martin Stransky edf4ad
- updated to 1.0.15 final
Martin Stransky edf4ad
Martin Stransky 857c3b
* Mon Oct 1 2007 Martin Stransky <stransky@redhat.com> 1.0.15-0.4.rc1
Martin Stransky 857c3b
- moved saved volume settings back to /etc/alsa
Martin Stransky 857c3b
  (per discussion at #293301)
Martin Stransky 857c3b
Martin Stransky 463ef0
* Mon Sep 24 2007 Martin Stransky <stransky@redhat.com> 1.0.15-0.3.rc1
Martin Stransky 463ef0
- fixed #303151 - wrong salsa dir in /etc/udev/rules.d/90-alsa.rules
Martin Stransky 463ef0
Martin Stransky 93074d
* Thu Sep 20 2007 Matthias Saou <http://freshrpms.net/> 1.0.15-0.2.rc1
Martin Stransky 93074d
- Update License field.
Martin Stransky 93074d
- Mark udev rule as config.
Martin Stransky 93074d
- Use find_lang macro again to include translations (why was it removed?).
Martin Stransky 93074d
Martin Stransky 8e69a6
* Wed Sep 19 2007 Martin Stransky <stransky@redhat.com> 1.0.15-0.1.rc1
Martin Stransky 8e69a6
- new upstream
Martin Stransky 8e69a6
- moved saved volume settings to /var/lib (#293301)
Martin Stransky 8e69a6
- patched alsactl for that (#255421)
Martin Stransky 8e69a6
Martin Stransky e5abab
* Thu Aug 16 2007 Martin Stransky <stransky@redhat.com> 1.0.14-2
Martin Stransky e5abab
- added an entry to alsaunmute for HP xw4550 (#252171)
Martin Stransky e5abab
Martin Stransky d1093c
* Wed Jul 25 2007 Martin Stransky <stransky@redhat.com> 1.0.14-1
Martin Stransky d1093c
- release bump
Martin Stransky d1093c
Martin Stransky cb1841
* Thu Jun 7 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.8
Martin Stransky cb1841
- new upstream
Martin Stransky cb1841
Martin Stransky cac352
* Wed May 30 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.7.rc2
Martin Stransky cac352
- updated alsanumute for Siemens Lifebook S7020 (#241639)
Martin Stransky cac352
- unmute Master Mono for all drivers
Martin Stransky cac352
Martin Stransky 50b08a
* Wed May 2 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.6.rc2
Martin Stransky 50b08a
- added fix for #238442 (unmute Mono channel for w4550, 
Martin Stransky 50b08a
  xw4600, xw6600, and xw8600)
Martin Stransky 50b08a
Martin Stransky 5e20f4
* Wed Apr 18 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.5.rc2
Martin Stransky 5e20f4
- added more funcionality to salsa (save/load sound settings),
Martin Stransky 5e20f4
  moved volume settings to /etc/alsa/
Martin Stransky 5e20f4
Martin Stransky ce3a06
* Thu Apr 10 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.4.rc2
Martin Stransky ce3a06
- added support for large files
Martin Stransky ce3a06
- minor fix in alsaunmute
Martin Stransky ce3a06
- fixed #209239 - alsaconf: Stale language-dependent files
Martin Stransky db08b0
- fixed #233765 - alsa-utils : unowned directories
Martin Stransky ce3a06
Martin Stransky 0fa50a
* Fri Jan 19 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.3.rc2
Martin Stransky 0fa50a
- new upstream
Martin Stransky 0fa50a
Martin Stransky 9e2571
* Wed Jan 10 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.2.rc1
Martin Stransky 9e2571
- added a config line for hda-intel driver
Martin Stransky 9e2571
Martin Stransky 8c11c4
* Mon Dec 11 2006 Martin Stransky <stransky@redhat.com> 1.0.14-0.1.rc1
Martin Stransky 8c11c4
- new upstream
Martin Stransky 8c11c4
Martin Stransky 6c0d91
* Mon Oct 2 2006 Martin Stransky <stransky@redhat.com> 1.0.12-3
Martin Stransky 6c0d91
- fix for #207384 - Audio test fails during firstboot
Martin Stransky 6c0d91
Martin Stransky 50e25f
* Fri Aug 25 2006 Martin Stransky <stransky@redhat.com> 1.0.12-2
Martin Stransky 50e25f
- new upstream
Martin Stransky 50e25f
Martin Stransky 78a848
* Mon Aug 07 2006 Martin Stransky <stransky@redhat.com> 1.0.12-1.rc2
Martin Stransky 78a848
- new upstream
Martin Stransky 78a848
Martin Stransky 60aea0
* Thu Jul 20 2006 Martin Stransky <stransky@redhat.com> 1.0.12-1.rc1
Martin Stransky 60aea0
- new upstream
Martin Stransky 60aea0
Jesse Keating b547b3
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
Jesse Keating b547b3
- rebuild
Jesse Keating b547b3
Martin Stransky 609130
* Tue May 30 2006 Martin Stransky <stransky@redhat.com> 1.0.11-7
Martin Stransky 609130
- new upstream
Martin Stransky 609130
Martin Stransky 923a7e
* Wed May 3  2006 Martin Stransky <stransky@redhat.com> 1.0.11-6.rc2
Martin Stransky 923a7e
- removed HW specific switch - it should be set by driver
Martin Stransky 923a7e
Martin Stransky a46c6a
* Thu Apr 6  2006 Martin Stransky <stransky@redhat.com> 1.0.11-5.rc2
Martin Stransky e8799f
- fixed rules file (#186494)
Martin Stransky 18dbe2
- fixed Audigi mixer switch (#187807)
Martin Stransky e8799f
Martin Stransky 4e6922
* Mon Feb 20 2006 Martin Stransky <stransky@redhat.com> 1.0.11-3.rc2
Martin Stransky 4e6922
- removed autoreconf
Martin Stransky 4e6922
Jesse Keating 178341
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.11-2.rc2.2
Jesse Keating 178341
- bump again for double-long bug on ppc(64)
Jesse Keating 178341
Jesse Keating fd60a0
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.11-2.rc2.1
Jesse Keating fd60a0
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating fd60a0
Martin Stransky 55ae1d
* Wed Jan 25 2006 Martin Stransky <stransky@redhat.com> 1.0.11-2.rc2
Martin Stransky 55ae1d
- added volume option to alsaunmute utility (for s-c-s)
Martin Stransky 55ae1d
Martin Stransky ca7214
* Thu Jan 12 2006 Martin Stransky <stransky@redhat.com> 1.0.11-1.rc2
Martin Stransky ca7214
- new upstream
Martin Stransky ca7214
Jesse Keating 9d9aaa
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating 9d9aaa
- rebuilt
Jesse Keating 9d9aaa
Martin Stransky 1f34d9
* Thu Nov 24 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-1
Martin Stransky 1f34d9
- new upstream version
Martin Stransky 0268ed
- added alias for snd-azx
Martin Stransky 0268ed
Martin Stransky fbbfc1
* Wed Nov 9 2005 Martin Stransky <stransky@redhat.com> 1.0.10rc1-2
Martin Stransky fbbfc1
- fix for #169292 - RHEL4U2 xw4300 IntelHD internal speakers muted by default
Martin Stransky fbbfc1
Martin Stransky c66d6c
* Tue Sep 27 2005 Martin Stransky <stransky@redhat.com> 1.0.10rc1-1
Martin Stransky c66d6c
- new upstream version
Martin Stransky c66d6c
Martin Stransky 241693
* Tue Aug 23 2005 Martin Stransky <stransky@redhat.com> 1.0.9-5
Martin Stransky 241693
- unmute External Amplifier by default (#166153)
Martin Stransky 241693
Bill Nottingham a18ce4
* Wed Jul 13 2005 Bill Nottingham <notting@redhat.com> 1.0.9-4
Bill Nottingham a18ce4
- migrate the alsa restore program to a udev rule, not a dev.d program
Bill Nottingham a18ce4
- conflict with appropriate udev
Bill Nottingham 6a536a
- move alsaunmute, alsacard to /bin
Bill Nottingham a18ce4
Bill Nottingham a18ce4
* Mon Jul 11 2005 Martin Stransky <stransky@redhat.com> 1.0.9-3
Martin Stransky 2351ac
- New alsaunmute utility
Martin Stransky 2351ac
- Add autoconf to BuildRequires (#162483)
Martin Stransky 2351ac
Martin Stransky 34adb9
* Thu Jun 16 2005 Martin Stransky <stransky@redhat.com> 1.0.9-2
Martin Stransky 34adb9
- New upstream version
Martin Stransky 34adb9
Martin Stransky 0de5fe
* Mon May 30 2005 Martin Stransky <stransky@redhat.com> 1.0.9-1
Martin Stransky 0de5fe
- New upstream version.
Martin Stransky 0de5fe
- moved alsacard utility from alsa-lib to alsa-tools
Martin Stransky 0de5fe
Bill Nottingham 5fcade
* Mon May 16 2005 Bill Nottingham <notting@redhat.com> 1.0.9rc2-2
Bill Nottingham 5fcade
- make sure 'Wave' playback channel isn't muted (#157850)
Bill Nottingham 5fcade
Martin Stransky f4893a
* Mon Apr 25 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc2-1
Martin Stransky f4893a
- New upstream version
Martin Stransky 93074d
- add %%find_lang macro (#155719)
Martin Stransky f4893a
Bill Nottingham 6c53f8
* Fri Apr 1 2005 Bill Nottingham <notting@redhat.com> 1.0.8-4
Bill Nottingham 6c53f8
- replace the dev.d script with a program that calls alsactl to
Bill Nottingham 6c53f8
  restore the volume if there is a saved config, and just unmutes
Bill Nottingham 6c53f8
  the playback channels if there isn't one (#132575)
Bill Nottingham 6c53f8
Martin Stransky f6b893
* Mon Mar 7 2005 Martin Stransky <stransky@redhat.com>
Martin Stransky f6b893
- rebuilt
Martin Stransky f6b893
Martin Stransky f6b893
* Wed Feb 16 2005 Martin Stransky <stransky@redhat.com> 1.0.8-2
Martin Stransky cc6405
- fix #148011 (add gettext-devel to BuildRequires)
Martin Stransky cc6405
- add $RPM_OPT_FLAGS to CFLAGS
Martin Stransky cc6405
Martin Stransky 91eb8a
* Wed Jan 26 2005 Martin Stransky <stransky@redhat.com> 1.0.8-1
Martin Stransky 91eb8a
- update to 1.0.8
Martin Stransky 91eb8a
- temporarily removed alsa-lauch.patch
Martin Stransky 91eb8a
Colin Walters a49c19
* Sat Jan 08 2005 Colin Walters <walters@redhat.com> 1.0.7-2
Colin Walters a49c19
- New patch alsa-utils-1.0.7-alsa-launch.patch, adds the
Colin Walters a49c19
  alsa-launch command.
Colin Walters a49c19
- New source file xinit-alsa-launch.sh, integrates alsa-launch
Colin Walters a49c19
  into X startup
Colin Walters a49c19
- BR xorg-x11-devel
Colin Walters a49c19
Colin Walters ee99c8
* Thu Jan 06 2005 Colin Walters <walters@redhat.com> 1.0.7-1
Colin Walters ee99c8
- New upstream version
Colin Walters ee99c8
Bill Nottingham 242b76
* Tue Oct 19 2004 Bill Nottingham <notting@redhat.com> 1.0.6-3
Bill Nottingham 242b76
- tweak dev.d sound restore script (#133535, revisited)
Bill Nottingham 242b76
Bill Nottingham ef3897
* Thu Oct 14 2004 Bill Nottingham <notting@redhat.com> 1.0.6-2
Bill Nottingham ef3897
- move alsactl to /sbin
Bill Nottingham ef3897
- include a dev.d script for mixer restoring (#133535)
Bill Nottingham ef3897
cvsdist dd1b47
* Mon Aug 30 2004 Bill Nottingham <notting@redhat.com> 1.0.6-1
cvsdist dd1b47
- update to 1.0.6
cvsdist dd1b47
cvsdist e6932f
* Fri Jul  2 2004 Bill Nottingham <notting@redhat.com> 1.0.5-1
cvsdist e6932f
- update to 1.0.5
cvsdist e6932f
cvsdist 2fc550
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 2fc550
- rebuilt
cvsdist 2fc550
cvsdist ff6b82
* Thu Mar 11 2004 Bill Nottingham <notting@redhat.com> 1.0.3-1
cvsdist ff6b82
- update to 1.0.3
cvsdist ff6b82
cvsdist ff6b82
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist ff6b82
- rebuilt
cvsdist ff6b82
cvsdist 8e872d
* Wed Jan 28 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1
cvsdist 8e872d
- update to 1.0.2
cvsdist c576bd
cvsdist 8e872d
* Wed Dec 17 2003 Bill Nottingham <notting@redhat.com> 1.0.0-0.rc2
cvsdist 8e872d
- import fedora.us RPM, take out save-alsamixer & alsaconf for now
cvsdist c576bd
cvsdist 8e872d
* Thu Dec 11 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.4.rc2
cvsdist 8e872d
- rename alsamixer-saver save-alsamixer
cvsdist c576bd
cvsdist 8e872d
* Mon Dec  8 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.3.rc2
cvsdist 8e872d
- Integrate Michael Schwendt's script alsamixer-saver; Still not quite sure if 
cvsdist 8e872d
  this script is the right way -- but mine didn't work...
cvsdist c576bd
cvsdist 8e872d
* Sat Dec  6 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.2.rc2
cvsdist 8e872d
- Update to 1.0.0rc2 
cvsdist 8e872d
- added alsamixer Script -- stores settings on shutdown, does nothing on startup
cvsdist 8e872d
- some minor corrections in spec-file style
cvsdist c576bd
cvsdist 8e872d
* Wed Dec  3 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.1.rc1
cvsdist 8e872d
- Update to 1.0.0rc1 
cvsdist c576bd
cvsdist 8e872d
* Wed Aug  6 2003 Dams <anvil[AT]livna.org> 0:utils-0.fdr.1
cvsdist 8e872d
- Initial build.