alsa-utils/alsa-utils.spec
Takashi Iwai c5a8b6a18e Accepting request 749249 from home:tiwai:branches:multimedia:libs
- Update to alsa-utils 1.2.1:
  * axfer: handle -ETIMEDOUT before non-block I/O operation
  * axfer: code refactoring for a helper function to wait for avail buffer space
  * axfer: handle -ETIMEDOUT before handle mmap I/O operation
  * axfer: return ETIMEDOUT when no event occurs after waiter expiration
  * axfer: fix to return error code when a call of select(2) fails
  * axfer: return the number of file descriptors for I/O events from select(2) waiter
  * axfer: test: fix invalid comparison of 64 bit storage in ILP32 data type
  * axfer: mapper: fix parameter check for demuxer
  * axfer: remove unused variable warnings
  * alsamixer: Remove exp10 usage
  * alsaucm, topology: LDADD cleanups and add support for libatopology
  * alsaucm: fix the implicit card open
  * alsaucm, topology: LDADD cleanups and add support for libatopology
  * alsaucm: do the implicit ucm open only when the command requires it
  * alsaucm: call snd_config_update_free_global() to make valgrind more happy
  * amixer: do not double LF for container type
  * aplay: fix memory leak when setup_chmap() fail

OBS-URL: https://build.opensuse.org/request/show/749249
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=160
2019-11-18 10:23:08 +00:00

141 lines
4.2 KiB
RPMSpec

#
# spec file for package alsa-utils
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _udevdir %(pkg-config --variable=udevdir udev)
Name: alsa-utils
Version: 1.2.1
Release: 0
Summary: Advanced Linux Sound Architecture Utilities
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Players
URL: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
Source1: 01beep.conf
Source2: sound-extra.service
Source5: load-sound-modules.sh
Patch101: alsa-utils-configure-version-revert.patch
BuildRequires: alsa-devel
BuildRequires: alsa-topology-devel
BuildRequires: automake
BuildRequires: fftw3-devel
BuildRequires: libsamplerate-devel
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: xmlto
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
Requires: alsa
# for alsa-info.sh
Requires: dialog
Requires: pciutils
%description
This package contains utility programs supporting ALSA, Advanced Linux
Sound Architecture.
%package -n alsabat
Summary: Command-line sound tester for ALSA sound card driver
Group: Productivity/Multimedia/Sound/Utilities
Requires: alsa-utils = %{version}
%description -n alsabat
BAT (Basic Audio Tester) is a simple command-line utility intended
to help automate audio driver and sound server testing with little human
interaction. BAT can be used to test audio quality, stress test features
and test audio before and after PM state changes.
%prep
%setup -q
%if 0%{?do_autoreconf}
%patch101 -p1
# fix stupid automake's automatic action
sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
%endif
%build
export AUTOMAKE_JOBS="%{?_smp_mflags}"
%if 0%{?do_autoreconf}
autoreconf -fi
%endif
%configure --with-curses=ncursesw \
--with-systemdsystemunitdir=%{_unitdir} \
--with-asound-state-dir=%{_sysconfdir} \
--with-udev-rules-dir=%{_udevdir}/rules.d
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_datadir}/alsa/init/preinit
mkdir -p %{buildroot}%{_datadir}/alsa/init/postinit
for i in %{_sourcedir}/[0-9]*.conf; do
install -c -m 0644 $i %{buildroot}%{_datadir}/alsa/init/postinit
done
# remove obsoleted alsaconf script
rm -f %{buildroot}%{_sbindir}/alsaconf
rm -f %{buildroot}%{_datadir}/locale/*/*/alsaconf.mo
rm -f %{buildroot}%{_mandir}/*/man*/alsaconf.*
rm -f %{buildroot}%{_mandir}/man*/alsaconf.*
%find_lang %{name} --all-name
ln -s alsa-restore.service %{buildroot}%{_unitdir}/alsasound.service
mkdir -p %{buildroot}%{_localstatedir}/lib/alsa
# systemd unit files
install -c -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}
ln -s ../sound-extra.service %{buildroot}%{_unitdir}/sound.target.wants
mkdir -p %{buildroot}%{_libexecdir}/systemd/scripts
install -c -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/systemd/scripts
%pre
%service_add_pre sound-extra.service
%post
%service_add_post sound-extra.service
%preun
%service_del_preun sound-extra.service
%postun
%service_del_postun sound-extra.service
%files -f %{name}.lang
%license COPYING
%doc ChangeLog INSTALL README.md TODO
%doc seq/aconnect/README*
%doc seq/aseqnet/README*
%{_mandir}/man*/*
%{_mandir}/fr
%{_bindir}/*
%{_sbindir}/*
%exclude %{_bindir}/alsabat
%exclude %{_sbindir}/alsabat-test.sh
%exclude %{_mandir}/man*/alsabat.*
%{_datadir}/sounds/alsa
%{_datadir}/alsa
%{_udevdir}
%{_unitdir}/*.service
%{_unitdir}/sound.target.wants
%{_libexecdir}/systemd/scripts
%{_localstatedir}/lib/alsa
%files -n alsabat
%license COPYING
%{_bindir}/alsabat
%{_sbindir}/alsabat-test.sh
%{_mandir}/man*/alsabat.*
%changelog