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