]> git.pld-linux.org Git - packages/alsa-utils.git/blame - alsa-utils.spec
- rel 4; fix alsa-restore.service
[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
0d4bd359 8Version: 1.0.27
f920b15a 9Release: 4
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
0d4bd359 14# Source0-md5: cbfb21a24f63fb052b3392195639ce48
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
d746ab85 21Patch2: %{name}-build.patch
471c93cc 22Patch3: alsactl-fix.patch
f920b15a 23Patch4: %{name}-fix_service_restore.patch
318cc732 24URL: http://www.alsa-project.org/
e3488973 25BuildRequires: alsa-lib-devel >= 1.0.26
24e3ff50 26BuildRequires: autoconf >= 2.59
d65e967c 27BuildRequires: automake
cfee1c47 28BuildRequires: gettext-devel >= 0.15
64b80120 29BuildRequires: libsamplerate-devel >= 0.1.3
d65e967c 30BuildRequires: libtool
e04cffb1 31BuildRequires: ncurses-devel
64ce8f54 32BuildRequires: ncurses-ext-devel
d28cac7b 33BuildRequires: pkgconfig
050dcd74 34BuildRequires: rpmbuild(macros) >= 1.268
2d34aec2 35BuildRequires: xmlto
e3488973 36Requires: alsa-lib >= 1.0.26
ba1c10bb 37Requires: awk
926e95d0 38Requires: dialog
1a95c759 39Requires: diffutils
65074c41 40Requires: systemd-units >= 0.38
f5f4f960 41Requires: which
6c4a7e08 42Suggests: gpm
84d8f753 43Obsoletes: alsa-udev
fbe57c08 44Obsoletes: alsaconf
65074c41 45Obsoletes: udev-alsa
36fa7ed8 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d65e967c 47
d65e967c 48%description
28e3e077 49This packages contains command line utilities for the ALSA project:
050dcd74
ER
50- alsactl - utility for store / restore of soundcard settings
51- aplay/arecord - utility for playback / record of .wav, .voc, .au
52 files
53- amixer - a command line mixer
54- alsamixer - ncurses mixer
28e3e077 55
afd89176 56%description -l es.UTF-8
6addc92a 57Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
58para Linux.
59
afd89176
JR
60%description -l pl.UTF-8
61Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
28e3e077 62projektu ALSA (Advanced Linux Sound Architecture):
afd89176
JR
63- alsactl - narzędzie do zapamiętywania / przywracania ustawień karty
64 dźwiękowej
65- aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav,
050dcd74 66 .voc, .au
afd89176 67- amixer - mikser działający z linii poleceń
050dcd74 68- alsamixer - mikser z interfejsem opartym o ncurses
28e3e077 69
afd89176
JR
70%description -l pt_BR.UTF-8
71Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
6addc92a 72
afd89176
JR
73%description -l ru.UTF-8
74Этот пакет содержит утилиты командной строки для ALSA project:
75- alsactl - утилита для сохранения/восстановления настроек звуковой
76 карты
77- aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
050dcd74 78 .au
afd89176
JR
79- amixer - микшер, управляемый из командной строки
80- alsamixer - микшер с интерфейсом ncurses
28e3e077 81
afd89176
JR
82%description -l uk.UTF-8
83Цей пакет містить утиліти командного рядка для ALSA project:
84- alsactl - утиліта для збереження/відновлення настанов звукової карти
85- aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
050dcd74 86 .au
afd89176
JR
87- amixer - мікшер, який керується з командного рядка
88- alsamixer - мікшер з інтерфейсом ncurses
28e3e077 89
ebbc860f 90%package init
91Summary: Init script for Advanced Linux Sound Architecture
664212ea 92Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture
ebbc860f 93Group: Applications/Sound
e04cffb1 94Requires(post,preun): /sbin/chkconfig
d622cef3 95Requires: %{name} = %{version}-%{release}
24e3ff50 96Requires: rc-scripts
0d4bd359 97Requires: systemd-units
1554689f 98Obsoletes: alsa-udev
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
d746ab85 110%patch2 -p1
471c93cc 111%patch3 -p1
f920b15a 112%patch4 -p1
d65e967c
JR
113
114%build
24e3ff50 115%{__gettextize}
1e49d7db 116%{__aclocal}
117%{__autoconf}
f0c02276 118%{__autoheader}
e04cffb1 119%{__automake}
651cbf6b 120CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
12e59f21 121CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
84d8f753
PZ
122# we need alsactl for udev as early as possible
123%configure \
65074c41
JR
124 --sbindir=/sbin \
125 --with-systemdsystemunitdir=%{systemdunitdir}
126
5218357d 127%{__make}
d65e967c 128
d65e967c
JR
129%install
130rm -rf $RPM_BUILD_ROOT
d65e967c 131
5ee9e436
PG
132%{__make} install \
133 DESTDIR=$RPM_BUILD_ROOT
d65e967c 134
5ee9e436 135install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
4cd990c0 136install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
fbe57c08 137install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf
84d8f753
PZ
138
139install -d $RPM_BUILD_ROOT/lib/alsa
140mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
141
142ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
143install -d $RPM_BUILD_ROOT%{_sbindir}
144ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
d65e967c 145
ffa7e64a 146%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
b3430ee4 147echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
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)
318cc732
JB
181%doc ChangeLog README TODO
182%attr(755,root,root) /sbin/alsaconf
183%attr(755,root,root) /sbin/alsactl
184%attr(755,root,root) %{_bindir}/aconnect
44ebce94 185%attr(755,root,root) %{_bindir}/alsaloop
318cc732 186%attr(755,root,root) %{_bindir}/alsamixer
44ebce94 187%attr(755,root,root) %{_bindir}/alsaucm
318cc732
JB
188%attr(755,root,root) %{_bindir}/amidi
189%attr(755,root,root) %{_bindir}/amixer
190%attr(755,root,root) %{_bindir}/aplay
191%attr(755,root,root) %{_bindir}/aplaymidi
192%attr(755,root,root) %{_bindir}/arecord
193%attr(755,root,root) %{_bindir}/arecordmidi
194%attr(755,root,root) %{_bindir}/aseqdump
195%attr(755,root,root) %{_bindir}/aseqnet
196%attr(755,root,root) %{_bindir}/iecset
197%attr(755,root,root) %{_bindir}/speaker-test
198# symlink
199%attr(755,root,root) %{_sbindir}/alsactl
84d8f753 200%{_sysconfdir}/alsa/alsactl.conf
65074c41
JR
201%{systemdunitdir}/alsa-restore.service
202%{systemdunitdir}/alsa-store.service
203%{systemdunitdir}/basic.target.wants/alsa-restore.service
204%{systemdunitdir}/shutdown.target.wants/alsa-store.service
205/lib/udev/rules.d/90-alsa-restore.rules
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*
d65e967c 213%{_mandir}/man1/alsactl.1*
44ebce94 214%{_mandir}/man1/alsaloop.1*
d65e967c 215%{_mandir}/man1/alsamixer.1*
6e09d0e3 216%{_mandir}/man1/amidi.1*
d65e967c
JR
217%{_mandir}/man1/amixer.1*
218%{_mandir}/man1/aplay.1*
d622cef3 219%{_mandir}/man1/aplaymidi.1*
d65e967c 220%{_mandir}/man1/arecord.1*
d622cef3 221%{_mandir}/man1/arecordmidi.1*
27994876 222%{_mandir}/man1/aseqnet.1*
75e3e1b5 223%{_mandir}/man1/aseqdump.1*
6e09d0e3 224%{_mandir}/man1/iecset.1*
5b3a1229 225%{_mandir}/man1/speaker-test.1*
033a4d7d 226%{_mandir}/man7/alsactl_init.7*
6e09d0e3 227%{_mandir}/man8/alsaconf.8*
75e3e1b5 228%lang(fr) %{_mandir}/fr/man8/alsaconf.8*
ebbc860f 229
230%files init
231%defattr(644,root,root,755)
5bc696d8
JB
232%attr(754,root,root) /etc/rc.d/init.d/alsasound
233%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm
0d4bd359
JB
234%{systemdunitdir}/alsa-state.service
235%{systemdunitdir}/basic.target.wants/alsa-state.service
This page took 0.142243 seconds and 4 git commands to generate.