1 |
%define version 1.0.23 |
2 |
%define alibversion %version |
3 |
%define beta 0 |
4 |
%if %beta |
5 |
%define fname %name-%{version}%beta |
6 |
%else |
7 |
%define fname %name-%{version} |
8 |
%endif |
9 |
|
10 |
Summary: Advanced Linux Sound Architecture (ALSA) utilities |
11 |
Name: alsa-utils |
12 |
Version: %version |
13 |
%if %beta |
14 |
Release: %mkrel 0.%{beta}.2 |
15 |
%else |
16 |
Release: %mkrel 3 |
17 |
%endif |
18 |
Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2 |
19 |
License: GPL |
20 |
BuildRoot: %_tmppath/%name-buildroot |
21 |
Group: Sound |
22 |
Url: http://www.alsa-project.org |
23 |
|
24 |
BuildRequires: kernel-headers >= 2.4.0 |
25 |
BuildRequires: libalsa-devel >= %alibversion |
26 |
BuildRequires: ncurses-devel ncursesw-devel |
27 |
BuildRequires: xmlto |
28 |
Requires: alsa-lib >= 1:%alibversion |
29 |
# dependancies for alsaconf: |
30 |
Requires: pciutils |
31 |
|
32 |
%description |
33 |
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture |
34 |
with support for a large range of ISA and PCI cards. Fully compatible with |
35 |
OSS/Lite (kernel sound drivers), but contains many enhanced features. |
36 |
|
37 |
This is the utilities package, which allows you to manipulate ALSA settings. |
38 |
|
39 |
%package -n speaker-test |
40 |
Summary: ALSA test tool |
41 |
Group: Sound |
42 |
Requires: alsa-utils |
43 |
|
44 |
%description -n speaker-test |
45 |
speaker-test is a tool that enables one to test his head phones. |
46 |
|
47 |
%package -n alsaconf |
48 |
Summary: ALSA configuration tool |
49 |
Group: Sound |
50 |
Requires: alsa-utils whiptail cdialog |
51 |
|
52 |
%description -n alsaconf |
53 |
Alsaconf is a tool that enables one to configure his sound card with ALSA. |
54 |
It's often not not needed as mandriva linux will autoconfigure sound cards. |
55 |
|
56 |
%prep |
57 |
%setup -q -n %fname |
58 |
|
59 |
%build |
60 |
%configure2_5x |
61 |
make all |
62 |
|
63 |
%install |
64 |
rm -rf $RPM_BUILD_ROOT |
65 |
%makeinstall_std mkdir_p="mkdir -p" |
66 |
|
67 |
# move alsactl in /sbin in order to reload mixer settings on bootstrapping: |
68 |
mkdir $RPM_BUILD_ROOT/sbin |
69 |
mv $RPM_BUILD_ROOT/{%_sbindir,sbin}/alsactl |
70 |
ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%_sbindir |
71 |
|
72 |
%find_lang alsaconf |
73 |
%find_lang alsa-utils |
74 |
cat alsa-utils.lang >> alsaconf.lang |
75 |
|
76 |
%clean |
77 |
rm -rf $RPM_BUILD_ROOT |
78 |
|
79 |
%files |
80 |
%defattr(-,root,root) |
81 |
%doc [A-Z][A-Z]* |
82 |
%_bindir/[a-i]* |
83 |
%_sbindir/alsactl |
84 |
/sbin/alsactl |
85 |
%_mandir/man1/[a-i]* |
86 |
%_mandir/man7/alsactl_init.7* |
87 |
%_datadir/alsa/ |
88 |
|
89 |
%files -n speaker-test |
90 |
%_bindir/speaker-test |
91 |
%_mandir/man1/speaker-test.* |
92 |
%_datadir/sounds/alsa/ |
93 |
|
94 |
%files -n alsaconf -f alsaconf.lang |
95 |
%_sbindir/alsaconf |
96 |
%_mandir/man8/alsaconf.* |
97 |
%lang(fr) %_mandir/fr/man8/alsaconf.* |