]>
Commit | Line | Data |
---|---|---|
8c9be68c | 1 | # |
8c9be68c | 2 | # Conditional build: |
440283d3 | 3 | %bcond_with hotplug # build with hotplug support for Tascam USB devices |
8c9be68c | 4 | # |
9743dabd | 5 | Summary: Advanced Linux Sound Architecture (ALSA) - tools |
d7c3faa3 | 6 | Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - narzędzia |
27216adb | 7 | Name: alsa-tools |
877ce733 JB |
8 | Version: 1.1.0 |
9 | Release: 1 | |
2dce50a7 | 10 | License: GPL v2+ |
27216adb AM |
11 | Group: Applications/Sound |
12 | Source0: ftp://ftp.alsa-project.org/pub/tools/%{name}-%{version}.tar.bz2 | |
877ce733 | 13 | # Source0-md5: b476a5afaa3ea3230855553ad59d259d |
adc23317 | 14 | Patch0: %{name}-desktop.patch |
ccf44fd6 | 15 | Patch1: %{name}-sh.patch |
ac7e8db3 | 16 | Patch2: %{name}-csp.patch |
69787766 | 17 | Patch3: x32.patch |
27216adb | 18 | URL: http://www.alsa-project.org/ |
35f694e3 | 19 | BuildRequires: alsa-lib-devel >= 1.0.24 |
27216adb | 20 | BuildRequires: autoconf |
ac7e8db3 | 21 | BuildRequires: automake >= 1.3 |
29486ec1 | 22 | BuildRequires: fltk-devel |
ac7e8db3 | 23 | BuildRequires: gtk+2-devel >= 2.0.0 |
a467ad78 | 24 | BuildRequires: gtk+3-devel >= 3.0.0 |
27216adb | 25 | BuildRequires: libstdc++-devel |
ac7e8db3 | 26 | BuildRequires: libtool >= 2:1.5 |
27216adb | 27 | BuildRequires: ncurses-devel |
ac7e8db3 | 28 | BuildRequires: pkgconfig |
da615369 | 29 | BuildRequires: qt-devel |
2099b3d5 | 30 | BuildRequires: rpm-pythonprov |
1dcc2694 | 31 | BuildRequires: sed >= 4.0 |
35f694e3 | 32 | Requires: alsa-lib >= 1.0.24 |
ec3ca681 JB |
33 | # for lo10k1, qlo10k1 |
34 | Requires: liblo10k1 = %{version}-%{release} | |
27216adb AM |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
95451900 | 37 | # qlo10k1 has separate make rule |
a467ad78 | 38 | %define progs as10k1 echomixer envy24control hda-verb hdajackretask hdspconf hdsploader hdspmixer hwmixvolume ld10k1 mixartloader pcxhrloader rmedigicontrol sb16_csp seq/sbiload sscape_ctl us428control usx2yloader vxloader |
27216adb AM |
39 | |
40 | %description | |
9743dabd | 41 | This packages contains command line utilities for the ALSA (Advanced |
42 | Linux Sound Architecture) project. | |
27216adb | 43 | |
1c1faddd JR |
44 | %description -l pl.UTF-8 |
45 | Pakiet zawiera działające z linii poleceń narzędzia dla projektu ALSA | |
27216adb AM |
46 | (Advanced Linux Sound Architecture). |
47 | ||
675d5412 JB |
48 | %package gui-echoaudio |
49 | Summary: GTK+ GUI to control Echoaudio soundcard | |
50 | Summary(pl.UTF-8): Graficzny interfejs GTK+ do sterowania kartami dźwiękowymi Echoaudio | |
51 | Group: X11/Applications/Sound | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description gui-echoaudio | |
55 | This package contains Echomixer - GTK+ GUI tool to control all the | |
56 | features of any Echoaudio soundcard. This includes clock sources, | |
57 | input and output gains, mixers etc. | |
58 | ||
59 | %description gui-echoaudio -l pl.UTF-8 | |
60 | Ten pakiet zawiera aplikację Echomixer - oparte na GTK+ graficzne | |
61 | narzędzie do sterowania wszystkimi ustawieniami kart dźwiękowych | |
62 | Echoaudio. Obejmuje to źródła zegara, wzmacniacze wejściowe i | |
63 | wyjściowe, miksery itp. | |
64 | ||
65 | %package gui-emu10k1 | |
66 | Summary: Qt GUI to load Emu10k1 patches | |
67 | Summary(pl.UTF-8): Graficzny interfejs Qt do ładowania próbek Emu10k1 | |
68 | Group: X11/Applications/Sound | |
69 | Requires: %{name} = %{version}-%{release} | |
70 | ||
71 | %description gui-emu10k1 | |
72 | This package contains qlo10k1 - Qt GUI for ld10k1, ALSA patch loader | |
73 | for Emu10k1 based soundcards (SB Live! and Audigy). | |
74 | ||
75 | %description gui-emu10k1 -l pl.UTF-8 | |
76 | Ten pakiet zawiera aplikację qlo10k1, będącą opartym na Qt graficznym | |
77 | interfejsem dla ld10k1 - programu służącego do wczytywania próbek | |
78 | dźwiękowych ALSA dla kart opartych na układzie Emu10k1 (SB Live! i | |
79 | Audigy). | |
80 | ||
81 | %package gui-envy24 | |
82 | Summary: GTK+ GUI to control Envy24 (ice1712) based soundcards | |
83 | Summary(pl.UTF-8): Graficzny interfejs GTK+ do sterowania kartami dźwiękowymi Envy24 | |
84 | Group: X11/Applications/Sound | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description gui-envy24 | |
88 | This package contains envy24control - GTK+ GUI tool to control Envy24 | |
89 | (ice1712) based soundcards. | |
90 | ||
91 | %description gui-envy24 -l pl.UTF-8 | |
92 | Ten pakiet zawiera aplikację envy24control - graficzny interfejs GTK+ | |
93 | do sterowania ustawieniami kart dźwiękowych opartych na układzie | |
94 | Envy24 (ice1712). | |
95 | ||
a467ad78 JB |
96 | %package gui-hda |
97 | Summary: GTK+ GUI for HDA Intel soundcards | |
98 | Summary(pl.UTF-8): Graficzny interfejs GTK+ do sterowania kartami HDA Intel | |
99 | Group: X11/Applications/Sound | |
100 | Requires: %{name} = %{version}-%{release} | |
101 | ||
102 | %description gui-hda | |
103 | This package contains hdajackretask - a GUI to make it easy to retask | |
104 | HDA Intel jacks. | |
105 | ||
106 | %description gui-hda -l pl.UTF-8 | |
107 | Ten pakiet zawiera aplikację hdajackretask - graficzny interfejs | |
108 | ułatwiający zmianę funkcji gniazd (typu jack) karty HDA Intel. | |
109 | ||
675d5412 JB |
110 | %package gui-hdsp |
111 | Summary: FLTK GUIs to control RME Hammerfall HDSP soundcards | |
112 | Summary(pl.UTF-8): Graficzne interfejsy FLTK do sterowania kartami dźwiękowymi RME Hammerfall HDSP | |
113 | Group: X11/Applications/Sound | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | ||
116 | %description gui-hdsp | |
117 | This package contains two FLTK-based GUI utilities for RME Hammerfall | |
118 | DSP soundcards: | |
119 | - HDSPConf to control ALSA settings | |
120 | - HDSPMixer to control advanced routing feaures. | |
121 | ||
122 | %description gui-hdsp -l pl.UTF-8 | |
123 | Ten pakiet zawiera dwa narzędzia z opartym na FLTK graficznym | |
124 | interfejsem użytkownika, przeznaczone dla kart RME Hammerfall DSP: | |
125 | - HDSPConf do sterowania ustawieniami systemu ALSA | |
126 | - HDSPMixer do sterowania zaawansowanymi ustawieniami tras sygnału. | |
127 | ||
128 | %package gui-hwmix | |
129 | Summary: PyGTK GUI to control volume of individual streams when using hardware mixing | |
130 | Summary(pl.UTF-8): Graficzny interfejs PyGTK do ustawiania głośności strumieni przy sprzętowym miksowaniu | |
131 | Group: X11/Applications/Sound | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | Requires: python-pyalsa >= 1.0.22 | |
134 | Requires: python-pygtk-gtk >= 2:2.0 | |
135 | ||
136 | %description gui-hwmix | |
137 | This package contains hwmixvolume - PyGTK-based GUI to control the | |
138 | volume of individual streams on soundcards that use hardware mixing, | |
139 | i.e. those based on the following chips: | |
140 | - Creative Emu10k1 (SoundBlaster Live!) (driver: snd-emu10k1) | |
141 | - VIA VT823x southbridge (driver: snd-via82xx) | |
142 | - Yamaha DS-1 (YMF-724/740/744/754) (driver: snd-ymfpci) | |
143 | ||
144 | %description gui-hwmix -l pl.UTF-8 | |
145 | Ten pakiet zawiera aplikację hwmixvolume - oparty na PyGTK graficzny | |
146 | interfejs do sterowania głośnością poszczególnych strumieni w kartach | |
147 | dźwiękowych korzystających ze sprzętowego miksowania - czyli opartych | |
148 | na następujących układach: | |
149 | - Creative Emu10k1 (SoundBlaster Live!) (sterownik: snd-emu10k1) | |
150 | - mostku VIA VT823x (sterownik: snd-via82xx) | |
151 | - Yamaha DS-1 (YMF-724/740/744/754) (sterownik: snd-ymfpci) | |
152 | ||
153 | %package gui-rmedigi | |
154 | Summary: GTK+ GUI to control RME Digi32/Digi96 soundcards | |
155 | Summary(pl.UTF-8): Graficzny interfejs GTK+ do sterowania kartami dźwiękowymi RME Digi32/Digi96 | |
156 | Group: X11/Applications/Sound | |
157 | Requires: %{name} = %{version}-%{release} | |
158 | ||
159 | %description gui-rmedigi | |
160 | This package contains rmedigicontrol - GTK+ GUI control tool for RME | |
161 | Digi32 and RME Digi96 soundcards. | |
162 | ||
163 | %description gui-rmedigi -l pl.UTF-8 | |
164 | Ten pakiet zawiera aplikację rmedigicontrol - oparty na GTK+ graficzny | |
165 | interfejs do sterowania ustawieniami kart dźwiękowych RME Digi32 i RME | |
166 | Digi96. | |
167 | ||
01a3bb44 | 168 | %package tascam |
29e39349 | 169 | Summary: Hotplug support for Tascam USB devices |
d7c3faa3 | 170 | Summary(pl.UTF-8): Wsparcie hotpluga do urządzeń USB Tascam |
01a3bb44 | 171 | Group: Applications/Sound |
0c20822a | 172 | Requires: %{name} = %{version}-%{release} |
c7b3d30c | 173 | Requires: hotplug |
01a3bb44 | 174 | |
175 | %description tascam | |
29e39349 | 176 | Hotplug support for Tascam USB devices, firmware loader. |
01a3bb44 | 177 | |
1c1faddd JR |
178 | %description tascam -l pl.UTF-8 |
179 | Wsparcie hotpluga do urządzeń USB Tascam, narzędzie do ładowania | |
01a3bb44 | 180 | firmware'u. |
181 | ||
ec3ca681 JB |
182 | %package -n liblo10k1 |
183 | Summary: liblo10k1 library | |
d7c3faa3 | 184 | Summary(pl.UTF-8): Biblioteka liblo10k1 |
ec3ca681 JB |
185 | Group: Libraries |
186 | Conflicts: alsa-tools < 1.0.13 | |
187 | ||
188 | %description -n liblo10k1 | |
189 | liblo10k1 library. | |
190 | ||
1c1faddd | 191 | %description -n liblo10k1 -l pl.UTF-8 |
ec3ca681 JB |
192 | Biblioteka liblo10k1. |
193 | ||
194 | %package -n liblo10k1-devel | |
195 | Summary: Header files for liblo10k1 library | |
d7c3faa3 | 196 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liblo10k1 |
ec3ca681 JB |
197 | Group: Development/Libraries |
198 | Requires: liblo10k1 = %{version}-%{release} | |
199 | ||
200 | %description -n liblo10k1-devel | |
201 | Header files for liblo10k1 library. | |
202 | ||
1c1faddd JR |
203 | %description -n liblo10k1-devel -l pl.UTF-8 |
204 | Pliki nagłówkowe biblioteki liblo10k1. | |
ec3ca681 JB |
205 | |
206 | %package -n liblo10k1-static | |
207 | Summary: Static liblo10k1 library | |
d7c3faa3 | 208 | Summary(pl.UTF-8): Statyczna biblioteka liblo10k1 |
ec3ca681 JB |
209 | Group: Development/Libraries |
210 | Requires: liblo10k1-devel = %{version}-%{release} | |
211 | ||
212 | %description -n liblo10k1-static | |
213 | Static liblo10k1 library. | |
214 | ||
1c1faddd | 215 | %description -n liblo10k1-static -l pl.UTF-8 |
ec3ca681 JB |
216 | Statyczna biblioteka liblo10k1. |
217 | ||
27216adb AM |
218 | %prep |
219 | %setup -q | |
adc23317 | 220 | %patch0 -p1 |
ccf44fd6 | 221 | %patch1 -p1 |
ac7e8db3 | 222 | %patch2 -p1 |
69787766 | 223 | %patch3 -p1 |
27216adb | 224 | |
ac7e8db3 JB |
225 | # don't BR gtk+ 1.2 |
226 | echo 'AC_DEFUN([AM_PATH_GTK],[])' > echomixer/acinclude.m4 | |
227 | echo 'AC_DEFUN([AM_PATH_GTK],[])' > envy24control/acinclude.m4 | |
228 | echo 'AC_DEFUN([AM_PATH_GTK],[])' > rmedigicontrol/acinclude.m4 | |
27216adb | 229 | |
675d5412 JB |
230 | sed -i -e 's,/usr/bin/env python,/usr/bin/python,' hwmixvolume/hwmixvolume |
231 | ||
ec4d1648 JB |
232 | install -d doc-main doc-sep |
233 | ||
ac7e8db3 | 234 | %build |
27216adb AM |
235 | odir=$(pwd) |
236 | for dir in %{progs}; do | |
237 | cd $dir | |
a467ad78 | 238 | [ -s AUTHORS ] && cp -f AUTHORS $odir/doc-main/"AUTHORS.$(basename $dir)" |
ec4d1648 JB |
239 | [ -s README ] && cp -f README $odir/doc-main/"README.$(basename $dir)" |
240 | [ -s NEWS ] && cp -f NEWS $odir/doc-main/"NEWS.$(basename $dir)" | |
241 | [ -s TODO ] && cp -f TODO $odir/doc-main/"TODO.$(basename $dir)" | |
ec5843c1 | 242 | %{__libtoolize} |
27216adb AM |
243 | %{__aclocal} |
244 | %{__autoconf} | |
35f694e3 | 245 | grep -q 'A[CM]_CONFIG_HEADER' configure.* && %{__autoheader} |
27216adb | 246 | %{__automake} |
35f694e3 JB |
247 | %configure \ |
248 | `[ "$dir" != ld10k1 ] || echo --enable-static ]` | |
27216adb AM |
249 | %{__make} |
250 | cd $odir | |
251 | done | |
a467ad78 JB |
252 | mv doc-main/AUTHORS.hdajackretask doc-sep |
253 | mv doc-main/NEWS.{hdajackretask,hdspmixer,rmedigicontrol} doc-sep | |
254 | mv doc-main/README.{echomixer,envy24control,hdajackretask,hdspconf,hdspmixer,hwmixvolume,rmedigicontrol} doc-sep | |
ec4d1648 | 255 | mv doc-main/TODO.hdspmixer doc-sep |
27216adb | 256 | |
da615369 | 257 | cd qlo10k1 |
ea59796d | 258 | sed -i 's:include:include/qt:g' acinclude.m4 |
ec4d1648 JB |
259 | cp -f README $odir/doc-sep/README.qlo10k1 |
260 | cp -f NEWS $odir/doc-sep/NEWS.qlo10k1 | |
261 | cp -f TODO $odir/doc-sep/TODO.qlo10k1 | |
ec5843c1 | 262 | %{__libtoolize} |
da615369 AA |
263 | %{__aclocal} -I ../ld10k1 |
264 | %{__autoconf} | |
265 | %{__autoheader} | |
266 | %{__automake} | |
da615369 AA |
267 | %configure \ |
268 | --with-qtdir=%{_prefix} \ | |
269 | --disable-ld10k1test \ | |
270 | --with-ld10k1-prefix=$odir/ld10k1/src \ | |
271 | --with-ld10k1-inc-prefix=$odir/ld10k1/include | |
272 | %{__make} | |
273 | ||
1dcc2694 | 274 | %{__make} -C $odir/as10k1/examples dsp |
da615369 | 275 | |
27216adb AM |
276 | %install |
277 | rm -rf $RPM_BUILD_ROOT | |
278 | ||
1dcc2694 | 279 | sed -i -e 's,#!/bin/sh,#!/bin/bash,' ld10k1/setup/init_live |
da615369 | 280 | |
da615369 | 281 | for dir in %{progs} qlo10k1; do |
1dcc2694 | 282 | %{__make} -C $dir install \ |
27216adb | 283 | DESTDIR=$RPM_BUILD_ROOT |
27216adb AM |
284 | done |
285 | ||
ec4d1648 | 286 | install as10k1/examples/*.emu10k1 $RPM_BUILD_ROOT%{_datadir}/ld10k1/effects |
da615369 | 287 | |
440283d3 | 288 | %if %{without hotplug} |
35f694e3 | 289 | %{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/hotplug |
440283d3 JB |
290 | %endif |
291 | ||
27216adb AM |
292 | %clean |
293 | rm -rf $RPM_BUILD_ROOT | |
294 | ||
ec3ca681 JB |
295 | %post -n liblo10k1 -p /sbin/ldconfig |
296 | %postun -n liblo10k1 -p /sbin/ldconfig | |
1dcc2694 | 297 | |
27216adb AM |
298 | %files |
299 | %defattr(644,root,root,755) | |
ec4d1648 | 300 | %doc doc-main/{README,NEWS,TODO}.* |
f6f42cd4 JB |
301 | %attr(755,root,root) %{_bindir}/as10k1 |
302 | %attr(755,root,root) %{_bindir}/cspctl | |
95451900 | 303 | %attr(755,root,root) %{_bindir}/hda-verb |
f6f42cd4 | 304 | %attr(755,root,root) %{_bindir}/hdsploader |
f6f42cd4 JB |
305 | %attr(755,root,root) %{_bindir}/init_audigy |
306 | %attr(755,root,root) %{_bindir}/init_audigy_eq10 | |
307 | %attr(755,root,root) %{_bindir}/init_live | |
308 | %attr(755,root,root) %{_bindir}/lo10k1 | |
309 | %attr(755,root,root) %{_bindir}/mixartloader | |
310 | %attr(755,root,root) %{_bindir}/pcxhrloader | |
f6f42cd4 JB |
311 | %attr(755,root,root) %{_bindir}/sbiload |
312 | %attr(755,root,root) %{_bindir}/sscape_ctl | |
313 | %attr(755,root,root) %{_bindir}/us428control | |
314 | %attr(755,root,root) %{_bindir}/usx2yloader | |
315 | %attr(755,root,root) %{_bindir}/vxloader | |
316 | %attr(755,root,root) %{_sbindir}/dl10k1 | |
317 | %attr(755,root,root) %{_sbindir}/ld10k1 | |
318 | %attr(755,root,root) %{_sbindir}/ld10k1d | |
da615369 | 319 | %{_datadir}/ld10k1 |
f6f42cd4 | 320 | %{_mandir}/man1/cspctl.1* |
675d5412 JB |
321 | # for sbiload |
322 | %{_datadir}/sounds/opl3 | |
323 | ||
324 | %files gui-echoaudio | |
325 | %defattr(644,root,root,755) | |
ec4d1648 | 326 | %doc doc-sep/README.echomixer |
675d5412 JB |
327 | %attr(755,root,root) %{_bindir}/echomixer |
328 | ||
329 | %files gui-emu10k1 | |
330 | %defattr(644,root,root,755) | |
ec4d1648 | 331 | %doc doc-sep/{README,NEWS,TODO}.qlo10k1 |
675d5412 JB |
332 | %attr(755,root,root) %{_bindir}/qlo10k1 |
333 | ||
334 | %files gui-envy24 | |
335 | %defattr(644,root,root,755) | |
ec4d1648 | 336 | %doc doc-sep/README.envy24control envy24control/README.profiles |
675d5412 | 337 | %attr(755,root,root) %{_bindir}/envy24control |
f6f42cd4 | 338 | %{_mandir}/man1/envy24control.1* |
675d5412 | 339 | |
a467ad78 JB |
340 | %files gui-hda |
341 | %defattr(644,root,root,755) | |
342 | %doc doc-sep/{AUTHORS,NEWS,README}.hdajackretask | |
343 | %attr(755,root,root) %{_bindir}/hdajackretask | |
344 | ||
675d5412 JB |
345 | %files gui-hdsp |
346 | %defattr(644,root,root,755) | |
ec4d1648 | 347 | %doc doc-sep/README.hdspconf doc-sep/{NEWS,README,TODO}.hdspmixer |
675d5412 JB |
348 | %attr(755,root,root) %{_bindir}/hdspconf |
349 | %attr(755,root,root) %{_bindir}/hdspmixer | |
0f6619b4 | 350 | %{_desktopdir}/hdspconf.desktop |
ac7e8db3 | 351 | %{_desktopdir}/hdspmixer.desktop |
0f6619b4 | 352 | %{_pixmapsdir}/hdspconf.png |
ac7e8db3 | 353 | %{_pixmapsdir}/hdspmixer.png |
675d5412 JB |
354 | |
355 | %files gui-hwmix | |
356 | %defattr(644,root,root,755) | |
ec4d1648 | 357 | %doc doc-sep/README.hwmixvolume |
675d5412 JB |
358 | %attr(755,root,root) %{_bindir}/hwmixvolume |
359 | ||
360 | %files gui-rmedigi | |
361 | %defattr(644,root,root,755) | |
ec4d1648 | 362 | %doc doc-sep/{NEWS,README}.rmedigicontrol |
675d5412 | 363 | %attr(755,root,root) %{_bindir}/rmedigicontrol |
5f3161fb | 364 | |
440283d3 | 365 | %if %{with hotplug} |
01a3bb44 | 366 | %files tascam |
367 | %defattr(644,root,root,755) | |
368 | %attr(755,root,root) %{_sysconfdir}/hotplug/usb/tascam_fpga | |
369 | %attr(755,root,root) %{_sysconfdir}/hotplug/usb/tascam_fw | |
370 | %{_sysconfdir}/hotplug/usb/tascam_fw.usermap | |
8c9be68c | 371 | %endif |
01a3bb44 | 372 | |
ec3ca681 JB |
373 | %files -n liblo10k1 |
374 | %defattr(644,root,root,755) | |
375 | %attr(755,root,root) %{_libdir}/liblo10k1.so.*.*.* | |
2dce50a7 | 376 | %attr(755,root,root) %ghost %{_libdir}/liblo10k1.so.0 |
5f3161fb | 377 | |
ec3ca681 JB |
378 | %files -n liblo10k1-devel |
379 | %defattr(644,root,root,755) | |
380 | %attr(755,root,root) %{_libdir}/liblo10k1.so | |
381 | %{_libdir}/liblo10k1.la | |
382 | %{_includedir}/lo10k1 | |
383 | %{_aclocaldir}/ld10k1.m4 | |
384 | ||
35f694e3 JB |
385 | %files -n liblo10k1-static |
386 | %defattr(644,root,root,755) | |
387 | %{_libdir}/liblo10k1.a |