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