/[packages]/cauldron/alsa-utils/current/SPECS/alsa-utils.spec
ViewVC logotype

Contents of /cauldron/alsa-utils/current/SPECS/alsa-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234304 - (show annotations) (download)
Sun Apr 29 22:56:22 2012 UTC (11 years, 11 months ago) by colin
File size: 3010 byte(s)
Hopefully silence annoying Beep control on first boot (mga#5183)
1 %define version 1.0.25
2 %define alibversion 1.0.25
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 4
17 %endif
18 Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2
19 Patch0500: 0500-init-Mute-Beep-by-default.-It-s-annoying.patch
20 License: GPLv2
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 BuildRequires: systemd-units
29 BuildRequires: docbook-style-xsl
30 Requires: %{_lib}alsa2 >= 2:%alibversion
31 # dependancies for alsaconf:
32 Requires: pciutils
33 Requires(post): rpm-helper >= 0.24.8-1
34 Requires(preun): rpm-helper >= 0.24.8-1
35 Conflicts: sound-scripts < 0.61-2
36
37 %description
38 Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
39 with support for a large range of ISA and PCI cards. Fully compatible with
40 OSS/Lite (kernel sound drivers), but contains many enhanced features.
41
42 This is the utilities package, which allows you to manipulate ALSA settings.
43
44 %package -n speaker-test
45 Summary: ALSA test tool
46 Group: Sound
47 Requires: alsa-utils
48
49 %description -n speaker-test
50 speaker-test is a tool that enables one to test his head phones.
51
52 %package -n alsaconf
53 Summary: ALSA configuration tool
54 Group: Sound
55 Requires: alsa-utils whiptail cdialog
56
57 %description -n alsaconf
58 Alsaconf is a tool that enables one to configure his sound card with ALSA.
59 It's often not not needed as %{_vendor} will autoconfigure sound cards.
60
61 %prep
62 %setup -q -n %fname
63 %apply_patches
64
65 %build
66 %configure2_5x --with-systemdsystemunitdir=%{_unitdir}
67
68 make all
69
70 %install
71 %makeinstall_std mkdir_p="mkdir -p"
72
73 # move alsactl in /sbin in order to reload mixer settings on bootstrapping:
74 mkdir %{buildroot}/sbin
75 mv %{buildroot}/{%_sbindir,sbin}/alsactl
76 ln -s ../../sbin/alsactl %{buildroot}/%_sbindir
77
78 %find_lang alsaconf
79 %find_lang alsa-utils
80 cat alsa-utils.lang >> alsaconf.lang
81
82 install -d %{buildroot}%{_localstatedir}/lib/alsa/
83 touch %{buildroot}%{_localstatedir}/lib/alsa/asound.state
84
85 %post
86 if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
87 mv /etc/asound.state /var/lib/alsa/asound.state
88 fi
89
90 %files
91 %doc [A-Z][A-Z]*
92 /lib/udev/rules.d/90-alsa-restore.rules
93 %{_unitdir}/alsa-restore.service
94 %{_unitdir}/alsa-store.service
95 %{_unitdir}/basic.target.wants/alsa-restore.service
96 %{_unitdir}/shutdown.target.wants/alsa-store.service
97 %_bindir/[a-i]*
98 %_sbindir/alsactl
99 /sbin/alsactl
100 %_mandir/man1/[a-i]*
101 %_mandir/man7/alsactl_init.7*
102 %_datadir/alsa/
103 %{_localstatedir}/lib/alsa/
104 %ghost %{_localstatedir}/lib/alsa/asound.state
105
106 %files -n speaker-test
107 %_bindir/speaker-test
108 %_mandir/man1/speaker-test.*
109 %_datadir/sounds/alsa/
110
111 %files -n alsaconf -f alsaconf.lang
112 %_sbindir/alsaconf
113 %_mandir/man8/alsaconf.*
114 %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30