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