alsa-firmware/alsa-firmware.spec

165 lines
4.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package alsa-firmware (Version 1.0.16.92)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: alsa-firmware
%define package_version 1.0.17rc2
Url: http://www.alsa-project.org/
Summary: Firmware Data Files for ALSA
Version: 1.0.16.92
Release: 1
License: GPL v2 or later
Group: Hardware/Other
AutoReqProv: on
Source: ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-%{package_version}.tar.bz2
Source1: usx2yaudio.rules
Source2: usx2yaudio-old.rules
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Various firmware data files for ALSA drivers.
%prep
%setup -q -n %{name}-%{package_version}
%build
autoreconf -fi
%configure \
--enable-loader \
--enable-hotplug \
--with-hotplug-dir=/lib/firmware
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
# remove unnecessary loader firmwares
for d in vxloader mixartloader pcxhrloader; do
rm -rf $RPM_BUILD_ROOT%{_datadir}/alsa/firmware/$d
done
# change identical files to symlinks for hdsploader
pushd $RPM_BUILD_ROOT%{_datadir}/alsa/firmware/hdsploader
for i in *.bin; do
hotplug=$RPM_BUILD_ROOT/lib/firmware/$i
if [ -f $hotplug ]; then
if cmp -s -b $hotplug $i; then
rm $i
ln -s /lib/firmware/$i
fi
fi
done
popd
# FIXME: remove non-existing msnd firmware symlinks
rm -rf $RPM_BUILD_ROOT/lib/firmware/turtlebeach
# install documents
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
for d in echoaudio hdsploader mixartloader pcxhrloader usx2yloader vxloader asihpi; do
(cd $d
n=${d##*/}
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/$n
for f in AUTHORS COPYING ChangeLog NEWS README* TODO; do
test -f $f && install -c -m 0644 $f $RPM_BUILD_ROOT%{_docdir}/%{name}/$n
done
)
done
# udev rules
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
%if %suse_version > 1020
install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/rules.d/52-usx2yaudio.rules
%else
install -c -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/udev/rules.d/52-usx2yaudio.rules
%endif
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc %{_docdir}/%{name}
/lib/firmware/*
%{_datadir}/alsa
/etc/udev
%changelog
* Thu Jun 26 2008 tiwai@suse.de
- updated to version 1.0.17-rc2:
* update asihpi firmwares
* Fri Feb 08 2008 tiwai@suse.de
- updated to version 1.0.16-final:
* just a version bump
* Mon Jan 28 2008 tiwai@suse.de
- changed the package version number to 1.0.16 to match with
alsa-tools.
* Tue Jan 22 2008 tiwai@suse.de
- updated to version 1.0.16rc1:
* updated asihpi firmware data
* Tue Oct 16 2007 tiwai@suse.de
- updated to version 1.0.15-final:
* including all previous fixes
* Mon Jul 30 2007 tiwai@suse.de
- updated to firmware version (as of HG 2007.07.27)
including the latest ASIHPI binaries
- fixed udev rules for the recent 10.3 kernel.
keep the old config for older kernels.
* Tue Jun 05 2007 tiwai@suse.de
- removed alsa from BuildRequires
- fixed filelist to be independent from alsa.rpm
* Thu May 31 2007 tiwai@suse.de
- updated to version 1.0.14-final:
* aica firmware
* Wed May 02 2007 tiwai@suse.de
- updated to version 1.0.14rc4
* emu micro_dock firmware
* Sun Mar 18 2007 aj@suse.de
- /lib/firmware is now in filesystem package.
* Wed Mar 14 2007 tiwai@suse.de
- updated to version 1.0.14rc3:
* updated asihpi firmwares
* added msnd-pinnacle firmwares
* fix usx2yaudio udev rules to call with proper -m option
* Wed Dec 20 2006 tiwai@suse.de
- updated to version 1.0.14rc1:
* added ymfpci, maestro3, korg1212 firmwares
* added wavefront and sb16 firmwares
* added emi26/emi62 firmwares
* Thu Oct 05 2006 tiwai@suse.de
- updated to version 1.0.13-final:
* no real change since rc2
* Fri Sep 22 2006 tiwai@suse.de
- updated to version 1.0.13rc2:
* echoaduio firmware fixes
* Wed Aug 16 2006 tiwai@suse.de
- moved firmware-specific udev rules for usx2yaudio from alsa
package.
* Tue Jul 04 2006 tiwai@suse.de
- updated to version 1.0.12rc1:
* new firmwares for asihpi driver
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 12 2005 tiwai@suse.de
- updated to version 1.0.10rc2.
* Sat Aug 20 2005 schwab@suse.de
- Don't require hotplug.
* Thu Jun 02 2005 tiwai@suse.de
- updated to version 1.0.9-final.
* Tue May 24 2005 tiwai@suse.de
- updated to version 1.0.9rc4.
- enable loaders, use symlinks for identical files.
* Thu Jan 13 2005 tiwai@suse.de
- updated to version 1.0.8-final.
* Fri Jan 07 2005 tiwai@suse.de
- added alsa to neededforpackage for $(datadir)/alsa ownership.
* Wed Jan 05 2005 tiwai@suse.de
- split from alsa-tools: version 1.0.8rc2.