alsa-tools-vl.spec 12 KB

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