/[packages]/cauldron/alsa-plugins/current/SPECS/alsa-plugins.spec
ViewVC logotype

Contents of /cauldron/alsa-plugins/current/SPECS/alsa-plugins.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66354 - (show annotations) (download)
Tue Mar 8 02:33:19 2011 UTC (10 years, 6 months ago) by ahmad
File size: 5391 byte(s)
- update to 1.0.24

1 %define name alsa-plugins
2 %define version 1.0.24
3 %define alibversion %version
4 %define beta 0
5 %if %beta
6 %define fname %name-%{version}%beta
7 %else
8 %define fname %name-%{version}
9 %endif
10
11 %define libname %mklibname %name
12
13 Summary: Advanced Linux Sound Architecture (ALSA) plugins
14 Name: %name
15 Version: %version
16 %if %beta
17 Release: %mkrel 0.%{beta}.2
18 %else
19 Release: %mkrel 1
20 %endif
21 Source0: ftp://ftp.alsa-project.org/pub/plugins/%fname.tar.bz2
22 Source1: jack.conf
23 Source2: pulseaudio.conf
24 Source3: pcm-oss.conf
25 Source4: samplerate.conf
26 Source5: upmix.conf
27 Source6: vdownmix.conf
28 Source7: pulse-default.conf
29
30 # All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
31 License: GPLv2+ and LGPLv2+
32 Group: Sound
33 Url: http://www.alsa-project.org
34
35 BuildRequires: kernel-headers >= 2.4.0
36 BuildRequires: libalsa-devel >= %alibversion
37 BuildRequires: libpulseaudio-devel >= 0.8
38 BuildRequires: ncurses-devel
39 BuildRequires: jackit-devel
40 BuildRequires: ffmpeg-devel
41 BuildRequires: speex-devel
42
43 %description
44 Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
45 with support for a large range of ISA and PCI cards. Fully compatible with
46 OSS/Lite (kernel sound drivers), but contains many enhanced features.
47
48 This is the plugins package, which allows you to manipulate ALSA settings.
49
50 %package -n %{libname}
51 Summary: Advanced Linux Sound Architecture (ALSA) plugins
52 Group: Sound
53 Provides: %{name} = %{version}-%{release}
54 Obsoletes: %{name} < %{version}-%{release}
55 Requires: libalsa >= %alibversion
56 Requires: %{name}-doc
57
58 %description -n %{libname}
59 Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
60 with support for a large range of ISA and PCI cards. Fully compatible with
61 OSS/Lite (kernel sound drivers), but contains many enhanced features.
62
63 This is the plugins package, which allows you to manipulate ALSA settings.
64
65 %package doc
66 Summary: Advanced Linux Sound Architecture (ALSA) plugins
67 Group: Sound
68
69 %description doc
70 Documentation for %{name}
71
72 # (tv) needed for biarch:
73 %package pulse-config
74 Summary: Alsa to PulseAudio backend configuration
75 Group: Sound
76 License: LGPLv2+
77 # (cg) For upgrading from old configuration system
78 Requires(post): libalsa-data >= 1.0.20-2
79 Requires(post): update-alternatives
80
81 %description pulse-config
82 This package contains configuration files for the pulse ALSA plugin.
83
84 %post pulse-config
85 # (cg) Check to see if the user has disabled pulse in the old style setup.
86 if [ -f %{_sysconfdir}/alsa/pulse-default.conf ]; then
87 if grep "^#DRAKSOUND- " %{_sysconfdir}/alsa/pulse-default.conf 2>/dev/null >/dev/null; then
88 update-alternatives --set soundprofile /etc/sound/profiles/alsa
89 fi
90 fi
91
92 %package -n %{libname}-pulseaudio
93 Summary: Alsa to PulseAudio backend
94 Group: Sound
95 License: LGPLv2+
96 Provides: %{name}-pulseaudio = %{version}-%{release}
97 Requires: %name-pulse-config
98 %ifarch x86_64
99 # (cg) Suggest the 32 bit plugin on 64 bits to ensure compatibility
100 # with (typically closed source) 32 bit apps.
101 Suggests: lib%{name}-pulseaudio
102 %endif
103
104 %description -n %{libname}-pulseaudio
105 This plugin allows any program that uses the ALSA API to access a PulseAudio
106 sound daemon. In other words, native ALSA applications can play and record
107 sound across a network. There are two plugins in the suite, one for PCM and
108 one for mixer control.
109
110 %package -n %{libname}-jack
111 Summary: Jack PCM output plugin for ALSA
112 Group: Sound
113 License: LGPLv2+
114 Provides: %{name}-jack = %{version}-%{release}
115
116 %description -n %{libname}-jack
117 This plugin converts the ALSA API over JACK (Jack Audio Connection
118 Kit, http://jackit.sf.net) API. ALSA native applications can work
119 transparently together with jackd for both playback and capture.
120
121 ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK daemon
122 ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon
123
124 This plugin provides the PCM type "jack"
125
126 %prep
127 %setup -q -n %fname
128 %apply_patches
129
130 %build
131 %configure2_5x
132 %make
133
134 %install
135 rm -rf %{buildroot}
136 %makeinstall_std mkdir_p="mkdir -p"
137
138 install -d %{buildroot}%{_sysconfdir}/alsa
139
140 install -d %{buildroot}%{_datadir}/alsa/pcm
141 install -m 644 %SOURCE1 %SOURCE2 \
142 %SOURCE4 %SOURCE5 %SOURCE6 \
143 %{buildroot}%{_datadir}/alsa/pcm
144
145 # (cg) Include a configuration for when pulse is active
146 install -d %{buildroot}%{_sysconfdir}/sound/profiles/pulse
147 install -m 644 %SOURCE7 \
148 %{buildroot}%{_sysconfdir}/sound/profiles/pulse/alsa-default.conf
149
150 %clean
151 rm -rf %{buildroot}
152
153 %files doc
154 %defattr(-,root,root)
155 %doc COPYING* doc/R* doc/*.txt
156
157 %files -n %{libname}
158 %defattr(-,root,root)
159 %exclude %{_libdir}/alsa-lib/*_pulse.so
160 %exclude %{_libdir}/alsa-lib/*_jack.so
161 %{_datadir}/alsa/pcm/samplerate.conf
162 %{_datadir}/alsa/pcm/upmix.conf
163 %{_datadir}/alsa/pcm/vdownmix.conf
164 %_libdir/alsa-lib/*
165
166
167 %files pulse-config
168 %defattr(-,root,root)
169 %{_sysconfdir}/sound/profiles/pulse/alsa-default.conf
170 %{_datadir}/alsa/pcm/pulseaudio.conf
171
172 %files -n %{libname}-pulseaudio
173 %defattr(-,root,root,-)
174 %doc doc/README-pulse
175 %{_libdir}/alsa-lib/libasound_module_pcm_pulse.so
176 %{_libdir}/alsa-lib/libasound_module_ctl_pulse.so
177 %{_libdir}/alsa-lib/libasound_module_conf_pulse.so
178
179 %files -n %{libname}-jack
180 %defattr(-,root,root,-)
181 %doc doc/README-jack
182 %{_datadir}/alsa/pcm/jack.conf
183 %{_libdir}/alsa-lib/libasound_module_pcm_jack.so

  ViewVC Help
Powered by ViewVC 1.1.28