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