1 |
%define libname %mklibname %{name} |
2 |
|
3 |
Summary: Advanced Linux Sound Architecture (ALSA) plugins |
4 |
Name: alsa-plugins |
5 |
Version: 1.2.7.1 |
6 |
Release: %mkrel 2 |
7 |
# All packages are LGPLv2+ with the exception of samplerate which is GPLv2+ |
8 |
# pph plugin is BSD-like licensed |
9 |
License: GPLv2+ and LGPLv2+ and BSD |
10 |
Group: Sound/Utilities |
11 |
URL: https://www.alsa-project.org/ |
12 |
Source0: ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2 |
13 |
Source1: jack.conf |
14 |
Source2: samplerate.conf |
15 |
Source3: upmix.conf |
16 |
Source4: vdownmix.conf |
17 |
Source5: a52.conf |
18 |
|
19 |
BuildRequires: kernel-headers >= 2.4.0 |
20 |
BuildRequires: pkgconfig(alsa) >= %{version} |
21 |
BuildRequires: pkgconfig(libpulse) >= 0.8 |
22 |
BuildRequires: pkgconfig(ncurses) |
23 |
BuildRequires: pkgconfig(jack) |
24 |
BuildRequires: pkgconfig(libavcodec) |
25 |
BuildRequires: pkgconfig(speex) |
26 |
|
27 |
%description |
28 |
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture |
29 |
with support for a large range of ISA and PCI cards. Fully compatible with |
30 |
OSS/Lite (kernel sound drivers), but contains many enhanced features. |
31 |
|
32 |
This is the plugins package, which allows you to manipulate ALSA settings. |
33 |
|
34 |
%package -n %{libname} |
35 |
Summary: Advanced Linux Sound Architecture (ALSA) plugins |
36 |
Group: System/Libraries |
37 |
Provides: %{name} = %{version}-%{release} |
38 |
Requires: libalsa >= %{version} |
39 |
Requires: %{name}-config = %{version} |
40 |
|
41 |
%description -n %{libname} |
42 |
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture |
43 |
with support for a large range of ISA and PCI cards. Fully compatible with |
44 |
OSS/Lite (kernel sound drivers), but contains many enhanced features. |
45 |
|
46 |
This is the plugins package, which allows you to manipulate ALSA settings. |
47 |
|
48 |
%package doc |
49 |
Summary: Advanced Linux Sound Architecture (ALSA) plugins |
50 |
Group: Documentation |
51 |
BuildArch: noarch |
52 |
|
53 |
%description doc |
54 |
Documentation for %{name} |
55 |
|
56 |
# (tv) needed for biarch: |
57 |
%package config |
58 |
Summary: Alsa plugins configuration |
59 |
Group: System/Configuration |
60 |
License: LGPLv2+ |
61 |
BuildArch: noarch |
62 |
|
63 |
%description config |
64 |
This package contains configuration files for ALSA plugins. |
65 |
|
66 |
# (tv) needed for biarch: |
67 |
%package pulse-config |
68 |
Summary: Alsa to PulseAudio backend configuration |
69 |
Group: System/Configuration |
70 |
License: LGPLv2+ |
71 |
BuildArch: noarch |
72 |
# (eatdirt) Otherwise config file alone |
73 |
Requires: alsa-plugins-pulseaudio |
74 |
# (cg) For upgrading from old configuration system |
75 |
Requires(post): libalsa-data >= 1.0.20-2 |
76 |
|
77 |
%description pulse-config |
78 |
This package contains configuration files for the pulse ALSA plugin. |
79 |
|
80 |
%package -n %{libname}-pulseaudio |
81 |
Summary: Alsa to PulseAudio backend |
82 |
Group: System/Libraries |
83 |
License: LGPLv2+ |
84 |
Provides: %{name}-pulseaudio = %{version}-%{release} |
85 |
Requires: %{name}-pulse-config |
86 |
%ifarch x86_64 |
87 |
# (cg) Suggest the 32 bit plugin on 64 bits to ensure compatibility |
88 |
# with (typically closed source) 32 bit apps. |
89 |
Recommends: lib%{name}-pulseaudio |
90 |
%endif |
91 |
|
92 |
%description -n %{libname}-pulseaudio |
93 |
This plugin allows any program that uses the ALSA API to access a PulseAudio |
94 |
sound daemon. In other words, native ALSA applications can play and record |
95 |
sound across a network. There are two plugins in the suite, one for PCM and |
96 |
one for mixer control. |
97 |
|
98 |
%package -n %{libname}-jack |
99 |
Summary: Jack PCM output plugin for ALSA |
100 |
Group: System/Libraries |
101 |
License: LGPLv2+ |
102 |
Provides: %{name}-jack = %{version}-%{release} |
103 |
|
104 |
%description -n %{libname}-jack |
105 |
This plugin converts the ALSA API over JACK (Jack Audio Connection |
106 |
Kit, https://jackit.sf.net/) API. ALSA native applications can work |
107 |
transparently together with jackd for both playback and capture. |
108 |
|
109 |
ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK daemon |
110 |
ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon |
111 |
|
112 |
This plugin provides the PCM type "jack" |
113 |
|
114 |
%package -n %{libname}-a52 |
115 |
Summary: A52/AC3 output plugin for ALSA |
116 |
Group: System/Libraries |
117 |
License: LGPLv2+ |
118 |
Provides: %{name}-a52 = %{version}-%{release} |
119 |
|
120 |
%description -n %{libname}-a52 |
121 |
This plugin supports Digital 5.1 AC3 emulation over S/PDIF (IEC958). |
122 |
|
123 |
%prep |
124 |
%setup -q |
125 |
%autopatch -p1 |
126 |
|
127 |
%build |
128 |
autoreconf -fi |
129 |
%configure |
130 |
%make_build |
131 |
|
132 |
%install |
133 |
%make_install |
134 |
|
135 |
find %{buildroot} -name '*.la' -delete |
136 |
|
137 |
install -d %{buildroot}%{_sysconfdir}/alsa |
138 |
|
139 |
install -d %{buildroot}%{_datadir}/alsa/pcm |
140 |
install -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/alsa/pcm |
141 |
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/alsa/alsa.conf.d |
142 |
|
143 |
# (cg) Include a configuration for when pulse is active |
144 |
install -d %{buildroot}%{_sysconfdir}/sound/profiles/pulse |
145 |
|
146 |
# (cg) Use the "pulseaudio by default" config for the pulse sound profile. |
147 |
ln -s %{_sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf.example %{buildroot}%{_sysconfdir}/sound/profiles/pulse/alsa-default.conf |
148 |
|
149 |
%files doc |
150 |
%doc COPYING* doc/R* doc/*.txt |
151 |
|
152 |
%files -n %{libname} |
153 |
%dir %{_libdir}/alsa-lib/ |
154 |
%{_libdir}/alsa-lib/libasound_module_ctl_arcam_av.so |
155 |
%{_libdir}/alsa-lib/libasound_module_ctl_oss.so |
156 |
%{_libdir}/alsa-lib/libasound_module_pcm_oss.so |
157 |
%{_libdir}/alsa-lib/libasound_module_pcm_upmix.so |
158 |
%{_libdir}/alsa-lib/libasound_module_pcm_usb_stream.so |
159 |
%{_libdir}/alsa-lib/libasound_module_pcm_vdownmix.so |
160 |
%{_libdir}/alsa-lib/libasound_module_rate_lavrate.so |
161 |
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_fast.so |
162 |
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_faster.so |
163 |
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_high.so |
164 |
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_higher.so |
165 |
%{_libdir}/alsa-lib/libasound_module_rate_samplerate.so |
166 |
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_best.so |
167 |
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_linear.so |
168 |
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_medium.so |
169 |
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_order.so |
170 |
%{_libdir}/alsa-lib/libasound_module_rate_speexrate.so |
171 |
%{_libdir}/alsa-lib/libasound_module_rate_speexrate_best.so |
172 |
%{_libdir}/alsa-lib/libasound_module_rate_speexrate_medium.so |
173 |
|
174 |
%files config |
175 |
%{_datadir}/alsa/pcm/samplerate.conf |
176 |
%{_datadir}/alsa/pcm/upmix.conf |
177 |
%{_datadir}/alsa/pcm/vdownmix.conf |
178 |
%{_datadir}/alsa/alsa.conf.d/10-samplerate.conf |
179 |
%{_datadir}/alsa/alsa.conf.d/10-rate-lav.conf |
180 |
%{_datadir}/alsa/alsa.conf.d/10-speexrate.conf |
181 |
%{_datadir}/alsa/alsa.conf.d/50-arcam-av-ctl.conf |
182 |
%{_datadir}/alsa/alsa.conf.d/50-oss.conf |
183 |
%{_datadir}/alsa/alsa.conf.d/60-upmix.conf |
184 |
%{_datadir}/alsa/alsa.conf.d/60-vdownmix.conf |
185 |
%{_datadir}/alsa/alsa.conf.d/98-usb-stream.conf |
186 |
%{_sysconfdir}/alsa/conf.d/10-samplerate.conf |
187 |
%{_sysconfdir}/alsa/conf.d/10-rate-lav.conf |
188 |
%{_sysconfdir}/alsa/conf.d/10-speexrate.conf |
189 |
%{_sysconfdir}/alsa/conf.d/50-arcam-av-ctl.conf |
190 |
%{_sysconfdir}/alsa/conf.d/50-oss.conf |
191 |
%{_sysconfdir}/alsa/conf.d/60-upmix.conf |
192 |
%{_sysconfdir}/alsa/conf.d/60-vdownmix.conf |
193 |
%{_sysconfdir}/alsa/conf.d/98-usb-stream.conf |
194 |
|
195 |
%files pulse-config |
196 |
%{_datadir}/alsa/alsa.conf.d/50-pulseaudio.conf |
197 |
%{_sysconfdir}/sound/profiles/pulse/alsa-default.conf |
198 |
%{_sysconfdir}/alsa/conf.d/50-pulseaudio.conf |
199 |
%{_sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf.example |
200 |
|
201 |
%files -n %{libname}-pulseaudio |
202 |
%doc doc/README-pulse |
203 |
%{_libdir}/alsa-lib/libasound_module_pcm_pulse.so |
204 |
%{_libdir}/alsa-lib/libasound_module_ctl_pulse.so |
205 |
%{_libdir}/alsa-lib/libasound_module_conf_pulse.so |
206 |
|
207 |
%files -n %{libname}-jack |
208 |
%doc doc/README-jack |
209 |
%{_datadir}/alsa/pcm/jack.conf |
210 |
%{_libdir}/alsa-lib/libasound_module_pcm_jack.so |
211 |
%{_datadir}/alsa/alsa.conf.d/50-jack.conf |
212 |
%{_sysconfdir}/alsa/conf.d/50-jack.conf |
213 |
|
214 |
%files -n %{libname}-a52 |
215 |
%{_datadir}/alsa/alsa.conf.d/a52.conf |
216 |
%{_libdir}/alsa-lib/libasound_module_pcm_a52.so |
217 |
%{_datadir}/alsa/alsa.conf.d/60-a52-encoder.conf |
218 |
%{_sysconfdir}/alsa/conf.d/60-a52-encoder.conf |