/[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 233492 - (show annotations) (download)
Fri Apr 27 21:37:42 2012 UTC (11 years, 11 months ago) by tmb
File size: 3485 byte(s)
rebuild for versioned rpm-helper requires
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 2
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 --with-systemdsystemunitdir=/lib/systemd/system
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 mkdir -p %{buildroot}/lib/systemd/system
83 cat >%{buildroot}/lib/systemd/system/sound.service <<EOF
84 [Unit]
85 Description=Dummy service to override sysvinit version.
86 DefaultDependencies=no
87 After=sysinit.target
88 Before=multi-user.target
89
90 [Service]
91 Type=oneshot
92 ExecStart=/bin/true
93 StandardOutput=syslog
94
95 [Install]
96 WantedBy=multi-user.target
97 EOF
98 cp %{buildroot}/lib/systemd/system/sound.service %{buildroot}/lib/systemd/system/alsa.service
99
100
101
102 %post
103 if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
104 mv /etc/asound.state /var/lib/alsa/asound.state
105 fi
106
107 %files
108 %doc [A-Z][A-Z]*
109 /lib/udev/rules.d/90-alsa-restore.rules
110 /lib/systemd/system/sound.service
111 /lib/systemd/system/alsa.service
112 /lib/systemd/system/alsa-restore.service
113 /lib/systemd/system/alsa-store.service
114 /lib/systemd/system/basic.target.wants/alsa-restore.service
115 /lib/systemd/system/shutdown.target.wants/alsa-store.service
116 %_bindir/[a-i]*
117 %_sbindir/alsactl
118 /sbin/alsactl
119 %_mandir/man1/[a-i]*
120 %_mandir/man7/alsactl_init.7*
121 %_datadir/alsa/
122 %{_localstatedir}/lib/alsa/
123 %ghost %{_localstatedir}/lib/alsa/asound.state
124
125 %files -n speaker-test
126 %_bindir/speaker-test
127 %_mandir/man1/speaker-test.*
128 %_datadir/sounds/alsa/
129
130 %files -n alsaconf -f alsaconf.lang
131 %_sbindir/alsaconf
132 %_mandir/man8/alsaconf.*
133 %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30