added support for large files, minor fix in alsaunmute, fixed #209239 -

alsaconf: Stale language-dependent files
This commit is contained in:
Martin Stransky 2007-04-10 11:22:40 +00:00
parent 0fa50ade0e
commit ce3a065382
2 changed files with 11 additions and 8 deletions

View File

@ -4,7 +4,7 @@
Summary: Advanced Linux Sound Architecture (ALSA) utilities Summary: Advanced Linux Sound Architecture (ALSA) utilities
Name: alsa-utils Name: alsa-utils
Version: 1.0.14 Version: 1.0.14
Release: 0.3%{?prever_dot}%{?dist} Release: 0.4%{?prever_dot}%{?dist}
License: GPL License: GPL
Group: Applications/Multimedia Group: Applications/Multimedia
URL: http://www.alsa-project.org/ URL: http://www.alsa-project.org/
@ -13,6 +13,7 @@ Source2: salsa.c
Source3: alsacard.c Source3: alsacard.c
Source4: alsaunmute.c Source4: alsaunmute.c
Source10: alsa.rules Source10: alsa.rules
Patch: alsa-utils-1.0.14-alsaconf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel >= %{version} BuildRequires: alsa-lib-devel >= %{version}
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
@ -25,9 +26,10 @@ Architecture (ALSA).
%prep %prep
%setup -q -n %{name}-%{version}%{?prever} %setup -q -n %{name}-%{version}%{?prever}
%patch -p1
%build %build
%configure CFLAGS="$RPM_OPT_FLAGS" --sbindir=/sbin %configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --sbindir=/sbin
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%{__cc} $RPM_OPT_FLAGS -o salsa %{SOURCE2} -lasound %{__cc} $RPM_OPT_FLAGS -o salsa %{SOURCE2} -lasound
%{__cc} $RPM_OPT_FLAGS -o alsacard %{SOURCE3} -lasound %{__cc} $RPM_OPT_FLAGS -o alsacard %{SOURCE3} -lasound
@ -36,9 +38,6 @@ Architecture (ALSA).
%install %install
%{__rm} -rf ${RPM_BUILD_ROOT} %{__rm} -rf ${RPM_BUILD_ROOT}
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%find_lang alsaconf
%{__rm} -f $RPM_BUILD_ROOT/sbin/alsaconf \
$RPM_BUILD_ROOT%{_mandir}/man*/alsaconf*
mkdir -p $RPM_BUILD_ROOT/%{_sbindir} mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl
@ -53,7 +52,7 @@ install -m 755 alsacard %{buildroot}/bin
%clean %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%files -f alsaconf.lang %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING ChangeLog README TODO %doc COPYING ChangeLog README TODO
/etc/udev/rules.d/* /etc/udev/rules.d/*
@ -62,12 +61,16 @@ install -m 755 alsacard %{buildroot}/bin
%{_sbindir}/* %{_sbindir}/*
/sbin/* /sbin/*
%{_mandir}/man?/* %{_mandir}/man?/*
%{_mandir}/fr/man?/*
/usr/share/sounds/alsa/* /usr/share/sounds/alsa/*
/usr/share/alsa/speaker-test/* /usr/share/alsa/speaker-test/*
/usr/share/locale/* /usr/share/locale/*
%changelog %changelog
* Thu Apr 10 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.4.rc2
- added support for large files
- minor fix in alsaunmute
- fixed #209239 - alsaconf: Stale language-dependent files
* Fri Jan 19 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.3.rc2 * Fri Jan 19 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.3.rc2
- new upstream - new upstream

View File

@ -290,7 +290,7 @@ void usage(char *p_name)
printf("Usage: alsaunmute card_number [-v] [-s volume]\n\n"); printf("Usage: alsaunmute card_number [-v] [-s volume]\n\n");
printf(" card_number - number of unmuted card\n"); printf(" card_number - number of unmuted card\n");
printf(" [-v] - verbose mode\n"); printf(" [-v] - verbose mode\n");
printf(" [-s volume] - set this volume level instead of the default (75%)\n"); printf(" [-s volume] - set this volume level instead of the default (75%%)\n");
printf(" the volume is number from 0 to 100\n\n"); printf(" the volume is number from 0 to 100\n\n");
exit(0); exit(0);
} }