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