]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- up to 1.0.24.2 (store via udev is gone; only restore is there)
[packages/alsa-utils.git] / alsa-utils.spec
1 Summary:        Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(es.UTF-8):      Utilitarios para ALSA (Advanced Linux Sound Architecture)
3 Summary(pl.UTF-8):      Advanced Linux Sound Architecture (ALSA) - Narzędzia
4 Summary(pt_BR.UTF-8):   Utilitários para o ALSA (Advanced Linux Sound Architecture)
5 Summary(ru.UTF-8):      Утилиты командной строки для ALSA project
6 Summary(uk.UTF-8):      Утиліти командного рядка для ALSA project
7 Name:           alsa-utils
8 Version:        1.0.24.2
9 Release:        1
10 # some apps GPL v2, some GPL v2+
11 License:        GPL v2
12 Group:          Applications/Sound
13 Source0:        ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
14 # Source0-md5:  8238cd57cb301d1c36bcf0ecb59ce6b2
15 Source1:        alsasound.init
16 # does anything use this (probably outdated) file? not alsasound.init
17 Source2:        alsa-oss-pcm
18 Source3:        alsactl.conf
19 Patch0:         %{name}-fast_sampling.patch
20 Patch1:         %{name}-modprobe.patch
21 Patch2:         %{name}-link.patch
22 URL:            http://www.alsa-project.org/
23 BuildRequires:  alsa-lib-devel >= 1.0.14
24 BuildRequires:  autoconf >= 2.59
25 BuildRequires:  automake
26 BuildRequires:  flex
27 BuildRequires:  gettext-devel >= 0.14
28 BuildRequires:  libtool
29 BuildRequires:  ncurses-devel
30 BuildRequires:  ncurses-ext-devel
31 BuildRequires:  rpmbuild(macros) >= 1.268
32 BuildRequires:  xmlto
33 Requires:       alsa-lib >= 1.0.20-2
34 Requires:       awk
35 Requires:       dialog
36 Requires:       diffutils
37 Requires:       which
38 Suggests:       gpm
39 Obsoletes:      alsaconf
40 Obsoletes:      alsa-udev
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 This packages contains command line utilities for the ALSA project:
45 - alsactl - utility for store / restore of soundcard settings
46 - aplay/arecord - utility for playback / record of .wav, .voc, .au
47   files
48 - amixer - a command line mixer
49 - alsamixer - ncurses mixer
50
51 %description -l es.UTF-8
52 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
53 para Linux.
54
55 %description -l pl.UTF-8
56 Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
57 projektu ALSA (Advanced Linux Sound Architecture):
58 - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty
59   dźwiękowej
60 - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav,
61   .voc, .au
62 - amixer - mikser działający z linii poleceń
63 - alsamixer - mikser z interfejsem opartym o ncurses
64
65 %description -l pt_BR.UTF-8
66 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
67
68 %description -l ru.UTF-8
69 Этот пакет содержит утилиты командной строки для ALSA project:
70 - alsactl - утилита для сохранения/восстановления настроек звуковой
71   карты
72 - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
73   .au
74 - amixer - микшер, управляемый из командной строки
75 - alsamixer - микшер с интерфейсом ncurses
76
77 %description -l uk.UTF-8
78 Цей пакет містить утиліти командного рядка для ALSA project:
79 - alsactl - утиліта для збереження/відновлення настанов звукової карти
80 - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
81   .au
82 - amixer - мікшер, який керується з командного рядка
83 - alsamixer - мікшер з інтерфейсом ncurses
84
85 %package -n udev-alsa
86 Summary:        udev rules for Advanced Linux Sound Architecture
87 Summary(pl.UTF-8):      Reguły udeva dla Advanced Linux Sound Architecture
88 Group:          Applications/Sound
89 Requires:       %{name} = %{version}-%{release}
90 Requires:       udev-core
91
92 %description -n udev-alsa
93 udev rules for Advanced Linux Sound Architecture.
94
95 %description -n udev-alsa -l pl.UTF-8
96 Reguły udeva dla Advanced Linux Sound Architecture.
97
98 %package init
99 Summary:        Init script for Advanced Linux Sound Architecture
100 Summary(pl.UTF-8):      Skrypt init dla Advanced Linux Sound Architecture
101 Group:          Applications/Sound
102 Requires(post,preun):   /sbin/chkconfig
103 Requires:       %{name} = %{version}-%{release}
104 Requires:       rc-scripts
105 Obsoletes:      alsa-udev
106
107 %description init
108 Init script for Advanced Linux Sound Architecture.
109
110 %description init -l pl.UTF-8
111 Skrypt init dla Advanced Linux Sound Architecture.
112
113 %prep
114 %setup -q
115 %patch0 -p1
116 %patch1 -p1
117 %patch2 -p1
118
119 %build
120 %{__gettextize}
121 %{__aclocal}
122 %{__autoconf}
123 %{__autoheader}
124 %{__automake}
125 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
126 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
127 # we need alsactl for udev as early as possible
128 %configure \
129         --sbindir=/sbin
130 %{__make}
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134
135 %{__make} install \
136         DESTDIR=$RPM_BUILD_ROOT
137
138 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
139 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
140 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/alsa/alsactl.conf
141
142 install -d $RPM_BUILD_ROOT/lib/alsa
143 mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
144
145 ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
146 install -d $RPM_BUILD_ROOT%{_sbindir}
147 ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
148
149 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
150 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
151
152 %find_lang alsa-utils --all-name
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %pretrans
158 # this needs to be a dir
159 if [ -d %{_datadir}/alsa/init ]; then
160         mv -b %{_datadir}/alsa/init{,.dir}
161 %banner -e %{name} <<EOF
162 Check %{_datadir}/alsa/init.dir for your own files and remove it when done.
163 EOF
164 fi
165
166 %post init
167 /sbin/chkconfig --add alsasound
168 %service alsasound restart "ALSA %{version} services"
169
170 %preun init
171 if [ "$1" = "0" ]; then
172         %service alsasound stop
173         /sbin/chkconfig --del alsasound
174 fi
175
176 %files -f alsa-utils.lang
177 %defattr(644,root,root,755)
178 %doc ChangeLog README TODO
179 %attr(755,root,root) /sbin/alsaconf
180 %attr(755,root,root) /sbin/alsactl
181 %attr(755,root,root) %{_bindir}/aconnect
182 %attr(755,root,root) %{_bindir}/alsaloop
183 %attr(755,root,root) %{_bindir}/alsamixer
184 %attr(755,root,root) %{_bindir}/alsaucm
185 %attr(755,root,root) %{_bindir}/amidi
186 %attr(755,root,root) %{_bindir}/amixer
187 %attr(755,root,root) %{_bindir}/aplay
188 %attr(755,root,root) %{_bindir}/aplaymidi
189 %attr(755,root,root) %{_bindir}/arecord
190 %attr(755,root,root) %{_bindir}/arecordmidi
191 %attr(755,root,root) %{_bindir}/aseqdump
192 %attr(755,root,root) %{_bindir}/aseqnet
193 %attr(755,root,root) %{_bindir}/iecset
194 %attr(755,root,root) %{_bindir}/speaker-test
195 # symlink
196 %attr(755,root,root) %{_sbindir}/alsactl
197 %{_sysconfdir}/alsa/alsactl.conf
198 %dir /lib/alsa
199 /lib/alsa/init
200 %{_datadir}/alsa/init
201 %{_datadir}/alsa/speaker-test
202 %{_datadir}/sounds/alsa
203 %{_mandir}/man1/aconnect.1*
204 %{_mandir}/man1/alsactl.1*
205 %{_mandir}/man1/alsaloop.1*
206 %{_mandir}/man1/alsamixer.1*
207 %{_mandir}/man1/amidi.1*
208 %{_mandir}/man1/amixer.1*
209 %{_mandir}/man1/aplay.1*
210 %{_mandir}/man1/aplaymidi.1*
211 %{_mandir}/man1/arecord.1*
212 %{_mandir}/man1/arecordmidi.1*
213 %{_mandir}/man1/aseqnet.1*
214 %{_mandir}/man1/aseqdump.1*
215 %{_mandir}/man1/iecset.1*
216 %{_mandir}/man1/speaker-test.1*
217 %{_mandir}/man7/alsactl_init.7*
218 %{_mandir}/man8/alsaconf.8*
219 %lang(fr) %{_mandir}/fr/man8/alsaconf.8*
220
221 %files -n udev-alsa
222 %defattr(644,root,root,755)
223 /lib/udev/rules.d/90-alsa-restore.rules
224
225 %files init
226 %defattr(644,root,root,755)
227 %attr(754,root,root) /etc/rc.d/init.d/alsasound
228 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm
This page took 0.062789 seconds and 4 git commands to generate.