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