alsa-tools-vl.spec 11 KB

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