alsa-tools-vl.spec 12 KB

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