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