Blame SPECS/alsa-tools.spec

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