/[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 201639 - (show annotations) (download)
Thu Jan 26 00:54:26 2012 UTC (12 years, 2 months ago) by colin
File size: 3396 byte(s)
Add BR on docbook-style-xsl
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 1
17 %endif
18 Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2
19 License: GPLv2
20 Group: Sound
21 Url: http://www.alsa-project.org
22
23 BuildRequires: kernel-headers >= 2.4.0
24 BuildRequires: libalsa-devel >= %alibversion
25 BuildRequires: ncurses-devel ncursesw-devel
26 BuildRequires: xmlto
27 BuildRequires: systemd-units
28 BuildRequires: docbook-style-xsl
29 Requires: %{_lib}alsa2 >= 2:%alibversion
30 # dependancies for alsaconf:
31 Requires: pciutils
32 Conflicts: sound-scripts < 0.61-2
33
34 %description
35 Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
36 with support for a large range of ISA and PCI cards. Fully compatible with
37 OSS/Lite (kernel sound drivers), but contains many enhanced features.
38
39 This is the utilities package, which allows you to manipulate ALSA settings.
40
41 %package -n speaker-test
42 Summary: ALSA test tool
43 Group: Sound
44 Requires: alsa-utils
45
46 %description -n speaker-test
47 speaker-test is a tool that enables one to test his head phones.
48
49 %package -n alsaconf
50 Summary: ALSA configuration tool
51 Group: Sound
52 Requires: alsa-utils whiptail cdialog
53
54 %description -n alsaconf
55 Alsaconf is a tool that enables one to configure his sound card with ALSA.
56 It's often not not needed as %{_vendor} will autoconfigure sound cards.
57
58 %prep
59 %setup -q -n %fname
60
61 %build
62 %configure2_5x
63
64 make all
65
66 %install
67 %makeinstall_std mkdir_p="mkdir -p"
68
69 # move alsactl in /sbin in order to reload mixer settings on bootstrapping:
70 mkdir %{buildroot}/sbin
71 mv %{buildroot}/{%_sbindir,sbin}/alsactl
72 ln -s ../../sbin/alsactl %{buildroot}/%_sbindir
73
74 %find_lang alsaconf
75 %find_lang alsa-utils
76 cat alsa-utils.lang >> alsaconf.lang
77
78 install -d %{buildroot}%{_localstatedir}/lib/alsa/
79 touch %{buildroot}%{_localstatedir}/lib/alsa/asound.state
80
81 # (cg) Create a couple dummy systemd units to override the sound-scripts sysvinit scripts.
82 cat >%{buildroot}/lib/systemd/system/sound.service <<EOF
83 [Unit]
84 Description=Dummy service to override sysvinit version.
85 DefaultDependencies=no
86 After=sysinit.target
87 Before=multi-user.target
88
89 [Service]
90 Type=oneshot
91 ExecStart=/bin/true
92 StandardOutput=syslog
93
94 [Install]
95 WantedBy=multi-user.target
96 EOF
97 cp %{buildroot}/lib/systemd/system/sound.service %{buildroot}/lib/systemd/system/alsa.service
98
99
100
101 %post
102 if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
103 mv /etc/asound.state /var/lib/alsa/asound.state
104 fi
105
106 %files
107 %doc [A-Z][A-Z]*
108 /lib/udev/rules.d/90-alsa-restore.rules
109 /lib/systemd/system/sound.service
110 /lib/systemd/system/alsa.service
111 /lib/systemd/system/alsa-restore.service
112 /lib/systemd/system/alsa-store.service
113 /lib/systemd/system/basic.target.wants/alsa-restore.service
114 /lib/systemd/system/shutdown.target.wants/alsa-store.service
115 %_bindir/[a-i]*
116 %_sbindir/alsactl
117 /sbin/alsactl
118 %_mandir/man1/[a-i]*
119 %_mandir/man7/alsactl_init.7*
120 %_datadir/alsa/
121 %{_localstatedir}/lib/alsa/
122 %ghost %{_localstatedir}/lib/alsa/asound.state
123
124 %files -n speaker-test
125 %_bindir/speaker-test
126 %_mandir/man1/speaker-test.*
127 %_datadir/sounds/alsa/
128
129 %files -n alsaconf -f alsaconf.lang
130 %_sbindir/alsaconf
131 %_mandir/man8/alsaconf.*
132 %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30