3b2295
# If you want to skip building the firmware subpackage, define the macro
3b2295
# _without_firmware to 1. This is not the actual firmware itself 
3b2295
# (see alsa-firmware), it is some complementary tools.
3b2295
# Do *NOT* set it to zero or have a commented out define here, or it will not
3b2295
# work. (RPM spec file voodoo)
3b2295
%if 0%{?rhel}
3b2295
%global _without_tools 1
3b2295
%endif
3b2295
3b2295
%ifarch ppc ppc64
3b2295
# sb16_csp doesn't build on PPC; see bug #219010
3b2295
%{?!_without_tools:     %global builddirstools as10k1 echomixer envy24control hdspconf hdspmixer hwmixvolume rmedigicontrol sbiload sscape_ctl us428control hda-verb hdajackretask hdajacksensetest }
3b2295
%else
3b2295
%{?!_without_tools:     %global builddirstools as10k1 echomixer envy24control hdspconf hdspmixer hwmixvolume rmedigicontrol sbiload sb16_csp sscape_ctl us428control hda-verb hdajackretask hdajacksensetest }
3b2295
%endif
3b2295
3b2295
%{?!_without_firmware:  %global builddirsfirmw hdsploader mixartloader usx2yloader vxloader }
3b2295
3b2295
%{?!_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
3b2295
3b2295
# Note that the Version is intended to coincide with the version of ALSA
3b2295
# included with the Fedora kernel, rather than necessarily the very latest
3b2295
# upstream version of alsa-tools
3b2295
3b2295
Summary:        Specialist tools for ALSA
3b2295
Name:           alsa-tools
3b2295
Version:        1.1.6
3b2295
Release:        1%{?dist}
3b2295
3b2295
# Checked at least one source file from all the sub-projects contained in
3b2295
# the source tarball and they are consistent GPLv2+ - TJ 2007-11-15
3b2295
License:        GPLv2+
3b2295
Group:          Applications/Multimedia
3b2295
URL:            http://www.alsa-project.org/
3b2295
Source:         ftp://ftp.alsa-project.org/pub/tools/%{name}-%{version}.tar.bz2
3b2295
3b2295
Source1:        90-alsa-tools-firmware.rules
3b2295
3b2295
BuildRequires:  alsa-lib-devel >= %{version}
3b2295
%if 0%{!?_without_tools:1}
3b2295
BuildRequires:  gtk+-devel
3b2295
BuildRequires:  gtk2-devel
3b2295
BuildRequires:  gtk3-devel
3b2295
BuildRequires:  fltk-devel
3b2295
Buildrequires:  desktop-file-utils
3b2295
Requires:       xorg-x11-fonts-misc
3b2295
# Needed for hwmixvolume
3b2295
Requires:       python-alsa
3b2295
%endif
3b2295
3b2295
%description
3b2295
This package contains several specialist tools for use with ALSA, including
3b2295
a number of programs that provide access to special hardware facilities on
3b2295
certain sound cards.
3b2295
3b2295
* as10k1 - AS10k1 Assembler
3b2295
%ifnarch ppc ppc64
3b2295
* cspctl - Sound Blaster 16 ASP/CSP control program
3b2295
%endif
3b2295
* echomixer - Mixer for Echo Audio (indigo) devices
3b2295
* envy24control - Control tool for Envy24 (ice1712) based soundcards
3b2295
* hdspmixer - Mixer for the RME Hammerfall DSP cards
3b2295
* hwmixvolume - Control the volume of individual streams on sound cards that
3b2295
  use hardware mixing
3b2295
* rmedigicontrol - Control panel for RME Hammerfall cards
3b2295
* sbiload - An OPL2/3 FM instrument loader for ALSA sequencer
3b2295
* sscape_ctl - ALSA SoundScape control utility
3b2295
* us428control - Control tool for Tascam 428
3b2295
* hda-verb - Direct HDA codec access
3b2295
* hdajackretask - Reassign the I/O jacks on the HDA hardware
3b2295
* hdajacksensetest - The sense test for the I/O jacks on the HDA hardware
3b2295
3b2295
3b2295
%package firmware
3b2295
Summary:        ALSA tools for uploading firmware to some soundcards
3b2295
Group:          Applications/System
3b2295
Requires:       udev
3b2295
Requires:       alsa-firmware
3b2295
Requires:       fxload
3b2295
3b2295
3b2295
%description firmware
3b2295
This package contains tools for flashing firmware into certain sound cards.
3b2295
The following tools are available:
3b2295
3b2295
* hdsploader   - for RME Hammerfall DSP cards
3b2295
* mixartloader - for Digigram miXart soundcards
3b2295
* vxloader     - for Digigram VX soundcards
3b2295
* usx2yloader  - second phase firmware loader for Tascam USX2Y USB soundcards
3b2295
3b2295
3b2295
%prep
3b2295
%setup -q -n %{name}-%{version}
3b2295
3b2295
%build
3b2295
mv seq/sbiload . ; rm -rf seq
3b2295
for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw}
3b2295
do
3b2295
  cd $i ; %configure
3b2295
  make %{?_smp_mflags} || exit 1
3b2295
  cd ..
3b2295
done
3b2295
3b2295
%install
3b2295
mkdir -p %{buildroot}%{_datadir}/{pixmaps,applications}
3b2295
3b2295
for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw}
3b2295
do
3b2295
  case $i in
3b2295
    usx2yloader)
3b2295
      (cd $i ; %make_install hotplugdir=/lib/udev) || exit 1
3b2295
      ;;
3b2295
    *)
3b2295
      (cd $i ; %make_install) || exit 1
3b2295
      ;;
3b2295
   esac
3b2295
   if [[ -s "${i}"/README ]]
3b2295
   then
3b2295
      if [[ ! -d "%{buildroot}%{_pkgdocdir}/${i}" ]]
3b2295
      then
3b2295
         mkdir -p "%{buildroot}%{_pkgdocdir}/${i}"
3b2295
      fi
3b2295
      cp "${i}"/README "%{buildroot}%{_pkgdocdir}/${i}"
3b2295
   fi
3b2295
   if [[ -s "${i}"/COPYING ]]
3b2295
   then
3b2295
      if [[ ! -d "%{buildroot}%{_pkgdocdir}/${i}" ]]
3b2295
      then
3b2295
         mkdir -p "%{buildroot}%{_pkgdocdir}/${i}"
3b2295
      fi
3b2295
      cp "${i}"/COPYING "%{buildroot}%{_pkgdocdir}/${i}"
3b2295
   fi
3b2295
   if [[ -s %{buildroot}%{_datadir}/applications/${i}.desktop ]] ; then
3b2295
      desktop-file-validate %{buildroot}%{_datadir}/applications/${i}.desktop
3b2295
      desktop-file-install --dir %{buildroot}%{_datadir}/applications \
3b2295
        %{buildroot}%{_datadir}/applications/${i}.desktop
3b2295
   fi
3b2295
done
3b2295
3b2295
# convert hotplug stuff to udev
3b2295
rm -f %{buildroot}/lib/udev/tascam_fw.usermap
3b2295
mkdir -p %{buildroot}/lib/udev/rules.d
3b2295
install -m 644 %{SOURCE1} %{buildroot}/lib/udev/rules.d
3b2295
3b2295
%post
3b2295
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
3b2295
3b2295
%postun
3b2295
if [ $1 -eq 0 ] ; then
3b2295
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
3b2295
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3b2295
fi
3b2295
3b2295
%posttrans
3b2295
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3b2295
3b2295
%if 0%{!?_without_tools:1}
3b2295
%files
3b2295
%dir %{_pkgdocdir}
3b2295
%doc %{_pkgdocdir}/as10k1
3b2295
%doc %{_pkgdocdir}/echomixer
3b2295
%doc %{_pkgdocdir}/envy24control
3b2295
%doc %{_pkgdocdir}/hdspconf
3b2295
%doc %{_pkgdocdir}/hdspmixer
3b2295
%doc %{_pkgdocdir}/hwmixvolume
3b2295
%doc %{_pkgdocdir}/rmedigicontrol
3b2295
%doc %{_pkgdocdir}/sbiload
3b2295
%doc %{_pkgdocdir}/hda-verb
3b2295
%doc %{_pkgdocdir}/hdajackretask
3b2295
%{_bindir}/as10k1
3b2295
%{_bindir}/echomixer
3b2295
%{_bindir}/envy24control
3b2295
%{_bindir}/hdspconf
3b2295
%{_bindir}/hdspmixer
3b2295
%{_bindir}/hwmixvolume
3b2295
%{_bindir}/rmedigicontrol
3b2295
%{_bindir}/sbiload
3b2295
%{_bindir}/sscape_ctl
3b2295
%{_bindir}/us428control
3b2295
%{_bindir}/hda-verb
3b2295
%{_bindir}/hdajackretask
3b2295
%{_bindir}/hdajacksensetest
3b2295
%{_datadir}/sounds/*
3b2295
%{_datadir}/man/man1/envy24control.1.gz
3b2295
%{_datadir}/applications/*.desktop
3b2295
%{_datadir}/icons/hicolor/*/apps*
3b2295
3b2295
# sb16_csp stuff which is excluded for PPCx
3b2295
%ifnarch ppc ppc64
3b2295
%doc %{_pkgdocdir}/sb16_csp
3b2295
%{_bindir}/cspctl
3b2295
%{_datadir}/man/man1/cspctl.1.gz
3b2295
%endif
3b2295
3b2295
%endif
3b2295
3b2295
%if 0%{!?_without_firmware:1}
3b2295
%files firmware
3b2295
%dir %{_pkgdocdir}
3b2295
%doc %{_pkgdocdir}/hdsploader
3b2295
%doc %{_pkgdocdir}/mixartloader
3b2295
%doc %{_pkgdocdir}/usx2yloader
3b2295
%doc %{_pkgdocdir}/vxloader
3b2295
/lib/udev/rules.d/*.rules
3b2295
/lib/udev/tascam_fpga
3b2295
/lib/udev/tascam_fw
3b2295
%{_bindir}/hdsploader
3b2295
%{_bindir}/mixartloader
3b2295
%{_bindir}/usx2yloader
3b2295
%{_bindir}/vxloader
3b2295
%endif
3b2295
3b2295
%changelog
3b2295
* Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1
3b2295
- Updated to 1.1.6
3b2295
3b2295
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3b2295
3b2295
* Tue Nov 14 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.5-1
3b2295
- Updated to 1.1.5
3b2295
3b2295
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b2295
3b2295
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3b2295
3b2295
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3b2295
3b2295
* Wed Sep 21 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.3-1
3b2295
- Updated to 1.1.3
3b2295
3b2295
* Wed Mar 16 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.0-3
3b2295
- Fix FTBFS with GCC 6 (#1307312)
3b2295
3b2295
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3b2295
3b2295
* Tue Oct 27 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-1
3b2295
- Updated to 1.1.0
3b2295
3b2295
* Fri Sep 18 2015 Richard Hughes <rhughes@redhat.com> - 1.0.29-5
3b2295
- Remove no longer required AppData files
3b2295
3b2295
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-4
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3b2295
3b2295
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0.29-3
3b2295
- Rebuilt for GCC 5 C++11 ABI change
3b2295
3b2295
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.0.29-2
3b2295
- Add an AppData file for the software center
3b2295
3b2295
* Thu Feb 26 2015 Jaroslav Kysela <perex@perex.cz> - 1.0.29-1
3b2295
- updated to 1.0.29
3b2295
3b2295
* Thu Feb 19 2015 Rex Dieter <rdieter@fedoraproject.org> 1.0.28-4
3b2295
- rebuild (fltk)
3b2295
3b2295
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-3
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3b2295
3b2295
* Fri Jul 25 2014 Tim Jackson <rpm@timj.co.uk> 1.0.28-1
3b2295
- don't use %%makeinstall (RHBZ #909622)
3b2295
3b2295
* Thu Jul 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.28-1
3b2295
- Update to 1.0.28
3b2295
3b2295
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.27-4
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3b2295
3b2295
* Thu Aug  1 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.0.27-3
3b2295
- Install docs to %%{_pkgdocdir} where available.
3b2295
3b2295
* Tue May 21 2013 Dan Horák <dan[at]danny.cz> - 1.0.27-2
3b2295
- fix build on non-x86 arches
3b2295
3b2295
* Fri Apr 12 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27-1
3b2295
- Updated to 1.0.27
3b2295
3b2295
* Sat Feb 09 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0.26.1-3
3b2295
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
3b2295
- clean up spec to follow current guidelines
3b2295
- don't build -tools for RHEL. Bill Nottingham patch. Resolves rhbz#586030
3b2295
3b2295
* Fri Sep  7 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26.1-2
3b2295
- Fixed gtk3-devel dependency (hdajackretask)
3b2295
- Added description for hda-verb and hdajackretask
3b2295
3b2295
* Thu Sep  6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26.1-1
3b2295
- Updated to 1.0.26.1
3b2295
- Added hda-verb and hdajackretask tools
3b2295
3b2295
* Thu Sep  6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26-1
3b2295
- Updated to 1.0.26
3b2295
3b2295
* Wed Aug 29 2012 Tim Jackson <rpm@timj.co.uk> - 1.0.25-4
3b2295
- Move udev rules to /lib/udev/rules.d (rhbz #748206)
3b2295
- remove %%BuildRoot and %%clean sections; no longer required
3b2295
3b2295
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3b2295
3b2295
* Wed Mar  7 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.25-2
3b2295
- Bump build for ARM
3b2295
3b2295
* Tue Jan 31 2012 Jaroslav Kysela <perex@perex.cz> - 1.0.25-1
3b2295
- Update to 1.0.25
3b2295
3b2295
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24.1-5
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3b2295
3b2295
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.0.24.1-4
3b2295
- Rebuild for new libpng
3b2295
3b2295
* Fri Jun 10 2011 Adam Jackson <ajax@redhat.com> 1.0.24.1-3
3b2295
- Rebuild for new libfltk
3b2295
3b2295
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24.1-2
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3b2295
3b2295
* Thu Feb 03 2011 Tim Jackson <rpm@timj.co.uk> - 1.0.24.1-1
3b2295
- Update to 1.0.24.1
3b2295
3b2295
* Mon May 03 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.23-1
3b2295
- update to 1.0.23
3b2295
3b2295
* Sat Mar 06 2010 Tim Jackson <rpm@timj.co.uk> - 1.0.22-2
3b2295
- Don't own /usr/share/sounds (#569415)
3b2295
3b2295
* Sun Jan 10 2010 Tim Jackson <rpm@timj.co.uk> - 1.0.22-1
3b2295
- Update to 1.0.22
3b2295
- use %%global instead of %%define
3b2295
3b2295
* Thu Sep 03 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.21-1
3b2295
- Update to 1.0.21
3b2295
3b2295
* Wed Aug 26 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.20-4
3b2295
- Add missing dep on xorg-x11-fonts-misc (#503284)
3b2295
3b2295
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.20-3
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3b2295
3b2295
* Thu Jul 16 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.20-2
3b2295
3b2295
* Sun May 10 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.20-1.fc12.2
3b2295
- Update to 1.0.20
3b2295
3b2295
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-3
3b2295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3b2295
3b2295
* Sat Feb 14 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.19-2
3b2295
- Fix unowned directory problem (#483323)
3b2295
3b2295
* Sat Jan 24 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.19-1
3b2295
- Update to version 1.0.19
3b2295
- Mark udev rules as config
3b2295
3b2295
* Fri Dec  5 2008 Jon McCann <jmccann@redhat.com> - 1.0.17-2
3b2295
- Convert hotplug stuff to udev
3b2295
3b2295
* Thu Jul 17 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.17-1
3b2295
- Update to version 1.0.17
3b2295
3b2295
* Mon May 19 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-4
3b2295
- Make it build cleanly on ppc and ppc64 by excluding sb16_csp
3b2295
3b2295
* Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-3
3b2295
- Really enable firmware subpackage
3b2295
3b2295
* Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-2
3b2295
- Enable firmware subpackage - the accompanying alsa-firmware package is
3b2295
  finally in Fedora
3b2295
3b2295
* Sat Mar 01 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-1
3b2295
- Update to upstream 1.0.16 (fixes #434473)
3b2295
3b2295
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.15-3
3b2295
- Autorebuild for GCC 4.3
3b2295
3b2295
* Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-2
3b2295
- Update License tag to GPLv2+
3b2295
- ExcludeArch ppc64 (bug #219010)
3b2295
3b2295
* Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-1
3b2295
- Update to upstream 1.0.15
3b2295
- Add icon for envy24control
3b2295
- Build echomixer
3b2295
3b2295
* Sat Dec 09 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-4
3b2295
- ExcludeArch ppc (#219010)
3b2295
3b2295
* Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-3
3b2295
- Add gtk2-devel BR
3b2295
3b2295
* Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-2
3b2295
- Own our docdir explicitly
3b2295
3b2295
* Sat Nov 25 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-1
3b2295
- Update to 1.0.12
3b2295
- Resubmit to Fedora Extras 6
3b2295
- Replace hotplug requirement with udev
3b2295
3b2295
* Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info>
3b2295
- Rebuild for Fedora Extras 5
3b2295
3b2295
* Tue Dec 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.10-1
3b2295
- Update to 1.0.10
3b2295
3b2295
* Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.9-1
3b2295
- Update to 1.0.9
3b2295
- Use disttag
3b2295
- Remove gcc4 patch
3b2295
3b2295
* Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-3
3b2295
- prune ac3dec from sources
3b2295
3b2295
* Thu May 05 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-2
3b2295
- don't build ac3dec -- use a52dec instead
3b2295
3b2295
* Wed Apr 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-1
3b2295
- Update to 1.0.8