alsa-tools-vl.spec 12 KB

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