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

  ViewVC Help
Powered by ViewVC 1.1.30