alsa-tools-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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.1.5
  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: gtk2-devel
  39. BuildRequires: gtk3-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: eudev
  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. * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.5-1
  191. - new upstream release.
  192. * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.1.0-2
  193. - rebuild with gcc-5.4.0
  194. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.1.0-1
  195. - new upstream release
  196. * Sat Jul 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.29-1
  197. - new upstream release
  198. - remove BuildRequires: gtk+-devel
  199. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.28-1
  200. - new upstream release
  201. - change Requires: eudev instead of udev
  202. * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.26.1-1
  203. - new upstream release
  204. - add BuildRequires: gtk3-devel
  205. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.25-1
  206. - new upstream release
  207. * Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.23-3
  208. - rebuild with fltk-1.3
  209. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 1.0.23-2
  210. - rebuilt with rpm-4.8.1-3
  211. * Fri May 28 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.23-1
  212. - new upstream release
  213. * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-1
  214. - new upstream release
  215. * Thu Jul 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.20-1
  216. - new upstream release
  217. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.19-1
  218. - initial build for Vine Linux
  219. * Sat Jan 24 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.19-1
  220. - Update to version 1.0.19
  221. - Mark udev rules as config
  222. * Fri Dec 5 2008 Jon McCann <jmccann@redhat.com> - 1.0.17-2
  223. - Convert hotplug stuff to udev
  224. * Thu Jul 17 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.17-1
  225. - Update to version 1.0.17
  226. * Mon May 19 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-4
  227. - Make it build cleanly on ppc and ppc64 by excluding sb16_csp
  228. * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-3
  229. - Really enable firmware subpackage
  230. * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-2
  231. - Enable firmware subpackage - the accompanying alsa-firmware package is
  232. finally in Fedora
  233. * Sat Mar 01 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-1
  234. - Update to upstream 1.0.16 (fixes #434473)
  235. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.15-3
  236. - Autorebuild for GCC 4.3
  237. * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-2
  238. - Update License tag to GPLv2+
  239. - ExcludeArch ppc64 (bug #219010)
  240. * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-1
  241. - Update to upstream 1.0.15
  242. - Add icon for envy24control
  243. - Build echomixer
  244. * Sat Dec 09 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-4
  245. - ExcludeArch ppc (#219010)
  246. * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-3
  247. - Add gtk2-devel BR
  248. * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-2
  249. - Own our docdir explicitly
  250. * Sat Nov 25 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-1
  251. - Update to 1.0.12
  252. - Resubmit to Fedora Extras 6
  253. - Replace hotplug requirement with udev
  254. * Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info>
  255. - Rebuild for Fedora Extras 5
  256. * Tue Dec 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.10-1
  257. - Update to 1.0.10
  258. * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.9-1
  259. - Update to 1.0.9
  260. - Use disttag
  261. - Remove gcc4 patch
  262. * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-3
  263. - prune ac3dec from sources
  264. * Thu May 05 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-2
  265. - don't build ac3dec -- use a52dec instead
  266. * Wed Apr 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-1
  267. - Update to 1.0.8
  268. * Tue Mar 29 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-2
  269. - Add "--without tools" and "--with firmware" options
  270. - Drop unneeded BR: automake
  271. * Sun Jan 02 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-0.fdr.1
  272. - Update to 1.0.6 for FC3
  273. - add new files in {_datadir}/sounds/
  274. - add patch0 for as10k1
  275. * Sat Apr 03 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.4-0.fdr.1
  276. - Update to 1.0.4
  277. * Fri Jan 16 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.2
  278. - Integrate Michaels patch that fixes:
  279. - fix desktop files for fedora.us, adds buildreq desktop-file-utils
  280. - fix %%install section for short-circuit installs
  281. * Fri Jan 09 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.1
  282. - Update to 1.0.1
  283. * Sun Dec 14 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.3.rc2
  284. - exit if error during build or install
  285. - fix install errors hdspconf, hdspmixer, usx2yloader
  286. - Split package in alsa-tools and alsa-tools-firmware
  287. - Integrate more docs
  288. * Sat Dec 06 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.2.rc2
  289. - Update to 1.0.0rc2
  290. - some minor corrections in style
  291. * Thu Dec 04 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.1.rc1
  292. - Update to 1.0.0rc1
  293. - Remove firmware files -- extra package now.
  294. - Add description
  295. * Wed Aug 13 2003 Dams <anvil[AT]livna.org> 0:tools-0.fdr.1
  296. - Initial build.