Blame SPECS/alsa-tools.spec

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