1 | # If you want to skip building the firmware subpackage, define the macro |
---|
2 | # _without_firmware to 1. This is not the actual firmware itself |
---|
3 | # (see alsa-firmware), it is some complementary tools. |
---|
4 | # Do *NOT* set it to zero or have a commented out define here, or it will not |
---|
5 | # work. (RPM spec file voodoo) |
---|
6 | |
---|
7 | %ifarch ppc ppc64 |
---|
8 | # sb16_csp doesn't build on PPC; see bug #219010 |
---|
9 | %{?!_without_tools: %define builddirstools as10k1 echomixer envy24control hdspconf hdspmixer rmedigicontrol sbiload sscape_ctl us428control } |
---|
10 | %else |
---|
11 | %{?!_without_tools: %define builddirstools as10k1 echomixer envy24control hdspconf hdspmixer rmedigicontrol sbiload sb16_csp sscape_ctl us428control } |
---|
12 | %endif |
---|
13 | |
---|
14 | %{?!_without_firmware: %define builddirsfirmw hdsploader mixartloader usx2yloader vxloader } |
---|
15 | |
---|
16 | # The source tarball has been pruned to remove the "ac3dec" directory, due |
---|
17 | # to legal concerns that the contents might be subject to patent claims |
---|
18 | |
---|
19 | # Note that the Version is intended to coincide with the version of ALSA |
---|
20 | # included with the Fedora kernel, rather than necessarily the very latest |
---|
21 | # upstream version of alsa-tools |
---|
22 | |
---|
23 | Summary: Specialist tools for ALSA |
---|
24 | Name: alsa-tools |
---|
25 | Version: 1.0.26.1 |
---|
26 | Release: 1%{?_dist_release} |
---|
27 | |
---|
28 | # Checked at least one source file from all the sub-projects contained in |
---|
29 | # the source tarball and they are consistent GPLv2+ - TJ 2007-11-15 |
---|
30 | License: GPLv2+ |
---|
31 | Group: Applications/Multimedia |
---|
32 | URL: http://www.alsa-project.org/ |
---|
33 | Source0: %{name}-%{version}.tar.bz2 |
---|
34 | |
---|
35 | # The icons below were created by Tim Jackson from screenshots of the |
---|
36 | # apps in question. They suck, a lot. Better alternatives welcome! |
---|
37 | Source1: envy24control.desktop |
---|
38 | Source2: envy24control.png |
---|
39 | Source3: echomixer.desktop |
---|
40 | Source4: echomixer.png |
---|
41 | Source5: 90-alsa-tools-firmware.rules |
---|
42 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
43 | BuildRequires: alsa-lib-devel >= 1.0.26 |
---|
44 | %if 0%{!?_without_tools:1} |
---|
45 | BuildRequires: gtk+-devel |
---|
46 | BuildRequires: gtk2-devel |
---|
47 | BuildRequires: gtk3-devel |
---|
48 | BuildRequires: fltk-devel |
---|
49 | Buildrequires: desktop-file-utils |
---|
50 | Requires: xorg-x11-fonts-misc |
---|
51 | %endif |
---|
52 | |
---|
53 | |
---|
54 | %description |
---|
55 | This package contains several specialist tools for use with ALSA, including |
---|
56 | a number of programs that provide access to special hardware facilities on |
---|
57 | certain sound cards. |
---|
58 | |
---|
59 | * as10k1 - AS10k1 Assembler |
---|
60 | %ifnarch ppc ppc64 |
---|
61 | * cspctl - Sound Blaster 16 ASP/CSP control program |
---|
62 | %endif |
---|
63 | * echomixer - Mixer for Echo Audio (indigo) devices |
---|
64 | * envy24control - Control tool for Envy24 (ice1712) based soundcards |
---|
65 | * hdspmixer - Mixer for the RME Hammerfall DSP cards |
---|
66 | * rmedigicontrol - Control panel for RME Hammerfall cards |
---|
67 | * sbiload - An OPL2/3 FM instrument loader for ALSA sequencer |
---|
68 | * sscape_ctl - ALSA SoundScape control utility |
---|
69 | * us428control - Control tool for Tascam 428 |
---|
70 | |
---|
71 | |
---|
72 | %package firmware |
---|
73 | Summary: ALSA tools for uploading firmware to some soundcards |
---|
74 | Group: Applications/System |
---|
75 | Requires: udev |
---|
76 | Requires: alsa-firmware |
---|
77 | Requires: fxload |
---|
78 | |
---|
79 | |
---|
80 | %description firmware |
---|
81 | This package contains tools for flashing firmware into certain sound cards. |
---|
82 | The following tools are available: |
---|
83 | |
---|
84 | * hdsploader - for RME Hammerfall DSP cards |
---|
85 | * mixartloader - for Digigram miXart soundcards |
---|
86 | * vxloader - for Digigram VX soundcards |
---|
87 | * usx2yloader - second phase firmware loader for Tascam USX2Y USB soundcards |
---|
88 | |
---|
89 | |
---|
90 | %prep |
---|
91 | %setup -q -n %{name}-%{version} |
---|
92 | |
---|
93 | |
---|
94 | %build |
---|
95 | mv seq/sbiload . ; rm -rf seq |
---|
96 | for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw} |
---|
97 | do |
---|
98 | cd $i ; %configure |
---|
99 | %{__make} %{?_smp_mflags} || exit 1 |
---|
100 | cd .. |
---|
101 | done |
---|
102 | |
---|
103 | |
---|
104 | %install |
---|
105 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
106 | |
---|
107 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/{pixmaps,applications} |
---|
108 | |
---|
109 | for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw} |
---|
110 | do |
---|
111 | case $i in |
---|
112 | echomixer) |
---|
113 | (cd $i ; %makeinstall ; install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/ ; install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/applications/ ) || exit 1 |
---|
114 | ;; |
---|
115 | envy24control) |
---|
116 | (cd $i ; %makeinstall ; install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/ ; install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/ ) || exit 1 |
---|
117 | ;; |
---|
118 | hdspconf) |
---|
119 | (cd $i ; %makeinstall pixmapdir=${RPM_BUILD_ROOT}%{_datadir}/pixmaps desktopdir=${RPM_BUILD_ROOT}%{_datadir}/applications ) || exit 1 |
---|
120 | ;; |
---|
121 | hdspmixer) |
---|
122 | (cd $i ; %makeinstall pixmapdir=${RPM_BUILD_ROOT}%{_datadir}/pixmaps desktopdir=${RPM_BUILD_ROOT}%{_datadir}/applications ) || exit 1 |
---|
123 | ;; |
---|
124 | usx2yloader) |
---|
125 | (cd $i ; %makeinstall hotplugdir=${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb) || exit 1 |
---|
126 | ;; |
---|
127 | *) (cd $i ; %makeinstall) || exit 1 |
---|
128 | esac |
---|
129 | if [[ -s "${i}"/README ]] |
---|
130 | then |
---|
131 | if [[ ! -d "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" ]] |
---|
132 | then |
---|
133 | mkdir -p "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
134 | fi |
---|
135 | cp "${i}"/README "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
136 | fi |
---|
137 | if [[ -s "${i}"/COPYING ]] |
---|
138 | then |
---|
139 | if [[ ! -d "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" ]] |
---|
140 | then |
---|
141 | mkdir -p "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
142 | fi |
---|
143 | cp "${i}"/COPYING "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
144 | fi |
---|
145 | if [[ -s ${RPM_BUILD_ROOT}%{_datadir}/applications/${i}.desktop ]] ; then |
---|
146 | desktop-file-install --vendor vine \ |
---|
147 | --add-category "HardwareSettings" \ |
---|
148 | --delete-original \ |
---|
149 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
150 | ${RPM_BUILD_ROOT}%{_datadir}/applications/${i}.desktop |
---|
151 | fi |
---|
152 | done |
---|
153 | |
---|
154 | # convert hotplug stuff to udev |
---|
155 | rm -f ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/tascam_fw.usermap |
---|
156 | mkdir -p ${RPM_BUILD_ROOT}/lib/udev |
---|
157 | mv ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/* ${RPM_BUILD_ROOT}/lib/udev |
---|
158 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d |
---|
159 | install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d |
---|
160 | |
---|
161 | %clean |
---|
162 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
163 | |
---|
164 | %if 0%{!?_without_tools:1} |
---|
165 | %files |
---|
166 | %defattr(-,root,root,-) |
---|
167 | %dir %{_docdir}/%{name}-%{version} |
---|
168 | %doc %{_docdir}/%{name}-%{version}/as10k1 |
---|
169 | %doc %{_docdir}/%{name}-%{version}/echomixer |
---|
170 | %doc %{_docdir}/%{name}-%{version}/envy24control |
---|
171 | %doc %{_docdir}/%{name}-%{version}/hdspconf |
---|
172 | %doc %{_docdir}/%{name}-%{version}/hdspmixer |
---|
173 | %doc %{_docdir}/%{name}-%{version}/rmedigicontrol |
---|
174 | %doc %{_docdir}/%{name}-%{version}/sbiload |
---|
175 | %{_bindir}/as10k1 |
---|
176 | %{_bindir}/echomixer |
---|
177 | %{_bindir}/envy24control |
---|
178 | %{_bindir}/hdspconf |
---|
179 | %{_bindir}/hdspmixer |
---|
180 | %{_bindir}/rmedigicontrol |
---|
181 | %{_bindir}/sbiload |
---|
182 | %{_bindir}/sscape_ctl |
---|
183 | %{_bindir}/us428control |
---|
184 | %{_datadir}/applications/vine-echomixer.desktop |
---|
185 | %{_datadir}/applications/vine-envy24control.desktop |
---|
186 | %{_datadir}/applications/vine-hdspconf.desktop |
---|
187 | %{_datadir}/applications/vine-hdspmixer.desktop |
---|
188 | %{_datadir}/man/man1/envy24control.1.gz |
---|
189 | %{_datadir}/pixmaps/echomixer.png |
---|
190 | %{_datadir}/pixmaps/envy24control.png |
---|
191 | %{_datadir}/pixmaps/hdspconf.png |
---|
192 | %{_datadir}/pixmaps/hdspmixer.png |
---|
193 | %{_datadir}/sounds/ |
---|
194 | |
---|
195 | # sb16_csp stuff which is excluded for PPCx |
---|
196 | %ifnarch ppc ppc64 |
---|
197 | %doc %{_docdir}/%{name}-%{version}/sb16_csp |
---|
198 | %{_bindir}/cspctl |
---|
199 | %{_datadir}/man/man1/cspctl.1.gz |
---|
200 | %endif |
---|
201 | |
---|
202 | %endif |
---|
203 | |
---|
204 | %if 0%{!?_without_firmware:1} |
---|
205 | %files firmware |
---|
206 | %defattr(-,root,root,-) |
---|
207 | %doc %{_docdir}/%{name}-%{version}/hdsploader |
---|
208 | %doc %{_docdir}/%{name}-%{version}/mixartloader |
---|
209 | %doc %{_docdir}/%{name}-%{version}/usx2yloader |
---|
210 | %doc %{_docdir}/%{name}-%{version}/vxloader |
---|
211 | %config(noreplace) %{_sysconfdir}/udev/rules.d/*.rules |
---|
212 | /lib/udev/tascam_fpga |
---|
213 | /lib/udev/tascam_fw |
---|
214 | %{_bindir}/hdsploader |
---|
215 | %{_bindir}/mixartloader |
---|
216 | %{_bindir}/usx2yloader |
---|
217 | %{_bindir}/vxloader |
---|
218 | %endif |
---|
219 | |
---|
220 | %changelog |
---|
221 | * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.26.1-1 |
---|
222 | - new upstream release |
---|
223 | - add BuildRequires: gtk3-devel |
---|
224 | |
---|
225 | * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.25-1 |
---|
226 | - new upstream release |
---|
227 | |
---|
228 | * Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.23-3 |
---|
229 | - rebuild with fltk-1.3 |
---|
230 | |
---|
231 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 1.0.23-2 |
---|
232 | - rebuilt with rpm-4.8.1-3 |
---|
233 | |
---|
234 | * Fri May 28 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.23-1 |
---|
235 | - new upstream release |
---|
236 | |
---|
237 | * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-1 |
---|
238 | - new upstream release |
---|
239 | |
---|
240 | * Thu Jul 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.20-1 |
---|
241 | - new upstream release |
---|
242 | |
---|
243 | * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.19-1 |
---|
244 | - initial build for Vine Linux |
---|
245 | |
---|
246 | * Sat Jan 24 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.19-1 |
---|
247 | - Update to version 1.0.19 |
---|
248 | - Mark udev rules as config |
---|
249 | |
---|
250 | * Fri Dec 5 2008 Jon McCann <jmccann@redhat.com> - 1.0.17-2 |
---|
251 | - Convert hotplug stuff to udev |
---|
252 | |
---|
253 | * Thu Jul 17 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.17-1 |
---|
254 | - Update to version 1.0.17 |
---|
255 | |
---|
256 | * Mon May 19 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-4 |
---|
257 | - Make it build cleanly on ppc and ppc64 by excluding sb16_csp |
---|
258 | |
---|
259 | * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-3 |
---|
260 | - Really enable firmware subpackage |
---|
261 | |
---|
262 | * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-2 |
---|
263 | - Enable firmware subpackage - the accompanying alsa-firmware package is |
---|
264 | finally in Fedora |
---|
265 | |
---|
266 | * Sat Mar 01 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-1 |
---|
267 | - Update to upstream 1.0.16 (fixes #434473) |
---|
268 | |
---|
269 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.15-3 |
---|
270 | - Autorebuild for GCC 4.3 |
---|
271 | |
---|
272 | * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-2 |
---|
273 | - Update License tag to GPLv2+ |
---|
274 | - ExcludeArch ppc64 (bug #219010) |
---|
275 | |
---|
276 | * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-1 |
---|
277 | - Update to upstream 1.0.15 |
---|
278 | - Add icon for envy24control |
---|
279 | - Build echomixer |
---|
280 | |
---|
281 | * Sat Dec 09 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-4 |
---|
282 | - ExcludeArch ppc (#219010) |
---|
283 | |
---|
284 | * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-3 |
---|
285 | - Add gtk2-devel BR |
---|
286 | |
---|
287 | * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-2 |
---|
288 | - Own our docdir explicitly |
---|
289 | |
---|
290 | * Sat Nov 25 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-1 |
---|
291 | - Update to 1.0.12 |
---|
292 | - Resubmit to Fedora Extras 6 |
---|
293 | - Replace hotplug requirement with udev |
---|
294 | |
---|
295 | * Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> |
---|
296 | - Rebuild for Fedora Extras 5 |
---|
297 | |
---|
298 | * Tue Dec 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.10-1 |
---|
299 | - Update to 1.0.10 |
---|
300 | |
---|
301 | * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.9-1 |
---|
302 | - Update to 1.0.9 |
---|
303 | - Use disttag |
---|
304 | - Remove gcc4 patch |
---|
305 | |
---|
306 | * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-3 |
---|
307 | - prune ac3dec from sources |
---|
308 | |
---|
309 | * Thu May 05 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-2 |
---|
310 | - don't build ac3dec -- use a52dec instead |
---|
311 | |
---|
312 | * Wed Apr 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-1 |
---|
313 | - Update to 1.0.8 |
---|
314 | |
---|
315 | * Sun Mar 29 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-2 |
---|
316 | - Add "--without tools" and "--with firmware" options |
---|
317 | - Drop unneeded BR: automake |
---|
318 | |
---|
319 | * Sun Jan 02 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-0.fdr.1 |
---|
320 | - Update to 1.0.6 for FC3 |
---|
321 | - add new files in {_datadir}/sounds/ |
---|
322 | - add patch0 for as10k1 |
---|
323 | |
---|
324 | * Sat Apr 03 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.4-0.fdr.1 |
---|
325 | - Update to 1.0.4 |
---|
326 | |
---|
327 | * Fri Jan 16 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.2 |
---|
328 | - Integrate Michaels patch that fixes: |
---|
329 | - fix desktop files for fedora.us, adds buildreq desktop-file-utils |
---|
330 | - fix %%install section for short-circuit installs |
---|
331 | |
---|
332 | * Fri Jan 09 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.1 |
---|
333 | - Update to 1.0.1 |
---|
334 | |
---|
335 | * Sun Dec 14 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.3.rc2 |
---|
336 | - exit if error during build or install |
---|
337 | - fix install errors hdspconf, hdspmixer, usx2yloader |
---|
338 | - Split package in alsa-tools and alsa-tools-firmware |
---|
339 | - Integrate more docs |
---|
340 | |
---|
341 | * Fri Dec 06 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.2.rc2 |
---|
342 | - Update to 1.0.0rc2 |
---|
343 | - some minor corrections in style |
---|
344 | |
---|
345 | * Thu Dec 04 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.1.rc1 |
---|
346 | - Update to 1.0.0rc1 |
---|
347 | - Remove firmware files -- extra package now. |
---|
348 | - Add description |
---|
349 | |
---|
350 | * Wed Aug 13 2003 Dams <anvil[AT]livna.org> 0:tools-0.fdr.1 |
---|
351 | - Initial build. |
---|