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