%define version 1.0.25 %define alibversion 1.0.25 %define beta 0 %if %beta %define fname %name-%{version}%beta %else %define fname %name-%{version} %endif Summary: Advanced Linux Sound Architecture (ALSA) utilities Name: alsa-utils Version: %version %if %beta Release: %mkrel 0.%{beta}.2 %else Release: %mkrel 1 %endif Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2 License: GPLv2 Group: Sound Url: http://www.alsa-project.org BuildRequires: kernel-headers >= 2.4.0 BuildRequires: libalsa-devel >= %alibversion BuildRequires: ncurses-devel ncursesw-devel BuildRequires: xmlto BuildRequires: systemd-units BuildRequires: docbook-style-xsl Requires: %{_lib}alsa2 >= 2:%alibversion # dependancies for alsaconf: Requires: pciutils Conflicts: sound-scripts < 0.61-2 %description Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture with support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite (kernel sound drivers), but contains many enhanced features. This is the utilities package, which allows you to manipulate ALSA settings. %package -n speaker-test Summary: ALSA test tool Group: Sound Requires: alsa-utils %description -n speaker-test speaker-test is a tool that enables one to test his head phones. %package -n alsaconf Summary: ALSA configuration tool Group: Sound Requires: alsa-utils whiptail cdialog %description -n alsaconf Alsaconf is a tool that enables one to configure his sound card with ALSA. It's often not not needed as %{_vendor} will autoconfigure sound cards. %prep %setup -q -n %fname %build %configure2_5x make all %install %makeinstall_std mkdir_p="mkdir -p" # move alsactl in /sbin in order to reload mixer settings on bootstrapping: mkdir %{buildroot}/sbin mv %{buildroot}/{%_sbindir,sbin}/alsactl ln -s ../../sbin/alsactl %{buildroot}/%_sbindir %find_lang alsaconf %find_lang alsa-utils cat alsa-utils.lang >> alsaconf.lang install -d %{buildroot}%{_localstatedir}/lib/alsa/ touch %{buildroot}%{_localstatedir}/lib/alsa/asound.state # (cg) Create a couple dummy systemd units to override the sound-scripts sysvinit scripts. mkdir -p %{buildroot}/lib/systemd/system cat >%{buildroot}/lib/systemd/system/sound.service <