]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- updated to 1.0.26
[packages/alsa-utils.git] / alsa-utils.spec
1 Summary:        Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(es.UTF-8):      Utilitarios para ALSA (Advanced Linux Sound Architecture)
3 Summary(pl.UTF-8):      Advanced Linux Sound Architecture (ALSA) - Narzędzia
4 Summary(pt_BR.UTF-8):   Utilitários para o ALSA (Advanced Linux Sound Architecture)
5 Summary(ru.UTF-8):      Утилиты командной строки для ALSA project
6 Summary(uk.UTF-8):      Утиліти командного рядка для ALSA project
7 Name:           alsa-utils
8 Version:        1.0.26
9 Release:        1
10 # some apps GPL v2, some GPL v2+
11 License:        GPL v2
12 Group:          Applications/Sound
13 Source0:        ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
14 # Source0-md5:  4dcf1017fafc91603af96705c073eca9
15 Source1:        alsasound.init
16 # does anything use this (probably outdated) file? not alsasound.init
17 Source2:        alsa-oss-pcm
18 Source3:        alsactl.conf
19 Patch0:         %{name}-fast_sampling.patch
20 Patch1:         %{name}-modprobe.patch
21 URL:            http://www.alsa-project.org/
22 BuildRequires:  alsa-lib-devel >= 1.0.26
23 BuildRequires:  autoconf >= 2.59
24 BuildRequires:  automake
25 BuildRequires:  gettext-devel >= 0.15
26 BuildRequires:  libsamplerate-devel >= 0.1.3
27 BuildRequires:  libtool
28 BuildRequires:  ncurses-devel
29 BuildRequires:  ncurses-ext-devel
30 BuildRequires:  pkgconfig
31 BuildRequires:  rpmbuild(macros) >= 1.268
32 BuildRequires:  xmlto
33 Requires:       alsa-lib >= 1.0.26
34 Requires:       awk
35 Requires:       dialog
36 Requires:       diffutils
37 Requires:       systemd-units >= 0.38
38 Requires:       which
39 Suggests:       gpm
40 Obsoletes:      alsa-udev
41 Obsoletes:      alsaconf
42 Obsoletes:      udev-alsa
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 This packages contains command line utilities for the ALSA project:
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
52
53 %description -l es.UTF-8
54 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
55 para Linux.
56
57 %description -l pl.UTF-8
58 Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
59 projektu ALSA (Advanced Linux Sound Architecture):
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,
63   .voc, .au
64 - amixer - mikser działający z linii poleceń
65 - alsamixer - mikser z interfejsem opartym o ncurses
66
67 %description -l pt_BR.UTF-8
68 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
69
70 %description -l ru.UTF-8
71 Этот пакет содержит утилиты командной строки для ALSA project:
72 - alsactl - утилита для сохранения/восстановления настроек звуковой
73   карты
74 - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
75   .au
76 - amixer - микшер, управляемый из командной строки
77 - alsamixer - микшер с интерфейсом ncurses
78
79 %description -l uk.UTF-8
80 Цей пакет містить утиліти командного рядка для ALSA project:
81 - alsactl - утиліта для збереження/відновлення настанов звукової карти
82 - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
83   .au
84 - amixer - мікшер, який керується з командного рядка
85 - alsamixer - мікшер з інтерфейсом ncurses
86
87 %package init
88 Summary:        Init script for Advanced Linux Sound Architecture
89 Summary(pl.UTF-8):      Skrypt init dla Advanced Linux Sound Architecture
90 Group:          Applications/Sound
91 Requires(post,preun):   /sbin/chkconfig
92 Requires:       %{name} = %{version}-%{release}
93 Requires:       rc-scripts
94 Obsoletes:      alsa-udev
95
96 %description init
97 Init script for Advanced Linux Sound Architecture.
98
99 %description init -l pl.UTF-8
100 Skrypt init dla Advanced Linux Sound Architecture.
101
102 %prep
103 %setup -q
104 %patch0 -p1
105 %patch1 -p1
106
107 %build
108 %{__gettextize}
109 %{__aclocal}
110 %{__autoconf}
111 %{__autoheader}
112 %{__automake}
113 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
114 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
115 # we need alsactl for udev as early as possible
116 %configure \
117         --sbindir=/sbin \
118         --with-systemdsystemunitdir=%{systemdunitdir}
119
120 %{__make}
121
122 %install
123 rm -rf $RPM_BUILD_ROOT
124
125 %{__make} install \
126         DESTDIR=$RPM_BUILD_ROOT
127
128 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
129 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
130 install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf
131
132 install -d $RPM_BUILD_ROOT/lib/alsa
133 mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
134
135 ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
136 install -d $RPM_BUILD_ROOT%{_sbindir}
137 ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
138
139 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
140 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
141
142 %find_lang alsa-utils --all-name
143
144 %clean
145 rm -rf $RPM_BUILD_ROOT
146
147 %pretrans
148 # this needs to be a dir
149 if [ -d %{_datadir}/alsa/init -a ! -h %{_datadir}/alsa/init ]; then
150         mv -b %{_datadir}/alsa/init{,.dir}
151 %banner -e %{name} <<EOF
152 Check %{_datadir}/alsa/init.dir for your own files and remove it when done.
153 EOF
154 fi
155
156 %post init
157 /sbin/chkconfig --add alsasound
158 %service alsasound restart "ALSA %{version} services"
159
160 %preun init
161 if [ "$1" = "0" ]; then
162         %service alsasound stop
163         /sbin/chkconfig --del alsasound
164 fi
165
166 %triggerpostun -- %{name} < 1.0.24.2-2
167 install -d /var/lib/alsa
168 if [ -f /etc/asound.state ]; then
169         mv -f /etc/asound.state /var/lib/alsa/asound.state
170 fi
171
172 %files -f alsa-utils.lang
173 %defattr(644,root,root,755)
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
178 %attr(755,root,root) %{_bindir}/alsaloop
179 %attr(755,root,root) %{_bindir}/alsamixer
180 %attr(755,root,root) %{_bindir}/alsaucm
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
193 %{_sysconfdir}/alsa/alsactl.conf
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
199 %dir /var/lib/alsa
200 %dir /lib/alsa
201 /lib/alsa/init
202 %{_datadir}/alsa/init
203 %{_datadir}/alsa/speaker-test
204 %{_datadir}/sounds/alsa
205 %{_mandir}/man1/aconnect.1*
206 %{_mandir}/man1/alsactl.1*
207 %{_mandir}/man1/alsaloop.1*
208 %{_mandir}/man1/alsamixer.1*
209 %{_mandir}/man1/amidi.1*
210 %{_mandir}/man1/amixer.1*
211 %{_mandir}/man1/aplay.1*
212 %{_mandir}/man1/aplaymidi.1*
213 %{_mandir}/man1/arecord.1*
214 %{_mandir}/man1/arecordmidi.1*
215 %{_mandir}/man1/aseqnet.1*
216 %{_mandir}/man1/aseqdump.1*
217 %{_mandir}/man1/iecset.1*
218 %{_mandir}/man1/speaker-test.1*
219 %{_mandir}/man7/alsactl_init.7*
220 %{_mandir}/man8/alsaconf.8*
221 %lang(fr) %{_mandir}/fr/man8/alsaconf.8*
222
223 %files init
224 %defattr(644,root,root,755)
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.121478 seconds and 4 git commands to generate.