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