From 9226091de378b62e3e98afae3c21aec2c6040ac5 Mon Sep 17 00:00:00 2001 From: Tim Jackson Date: May 18 2008 11:35:42 +0000 Subject: Bring alsa-firmware back to life as per bug #217259 --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22aec72 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: alsa-firmware +# $Id$ +NAME := alsa-firmware +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/alsa-firmware.README b/alsa-firmware.README new file mode 100644 index 0000000..7650d83 --- /dev/null +++ b/alsa-firmware.README @@ -0,0 +1,13 @@ +Firmware for ALSA +----------------- +This package has been put together by Tim Jackson (rpm@timj.co.uk) from an +original fedora.us spec file. + +Since the packager does not have access to most of the hardware for which +firmware is provided in this package, reports of success or otherwise are +welcome, as is any help with the package. + +Not all firmware which is included in the upstream alsa-firmware release is +necessarily included in this Fedora package, notably the "turtlebeach" firmware. +If there is something missing from this package and you need it, please contact +the packager. diff --git a/alsa-firmware.spec b/alsa-firmware.spec new file mode 100644 index 0000000..744f621 --- /dev/null +++ b/alsa-firmware.spec @@ -0,0 +1,221 @@ +Summary: Firmware for several ALSA-supported sound cards +Name: alsa-firmware +Version: 1.0.16 +Release: 1%{?dist} +# See later in the spec for a breakdown of licensing +License: GPL+ and BSD and GPLv2+ and GPLv2 and LGPLv2+ +Group: Applications/Multimedia +URL: http://www.alsa-project.org/ +# This source removes the emi_26_62 firmware which is under a questionable +# license. See bug #217259. +# To generate the "pruned" tarball, extract the original source, remove +# the emi_26_62 directory and create a new tarball with a "-pruned" suffix. +# Original source: ftp://ftp.alsa-project.org/pub/firmware/%{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}-pruned.tar.bz2 +Source1: alsa-firmware.README +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: alsa-tools-firmware >= %{version} +Requires: udev +BuildRequires: automake +BuildRequires: autoconf + +# noarch, since the package is firmware +BuildArch: noarch + +%description +This package contains the firmware binaries for a number of sound cards. +Some (but not all of these) require firmware loaders which are included in +the alsa-tools-firmware package. + + +%prep +%setup -q + + +%build +# emi_26_62 is not in the pruned tarball +sed -i s#'emi_26_62/Makefile \\'## configure.in +sed -i s#emi_26_62## Makefile.am + +# Leaving this directory in place ends up with the following crazy, broken +# symlinks in the output RPM, with no sign of the actual firmware (*.bin) files +# themselves: +# +# /lib/firmware/turtlebeach: +# msndinit.bin -> /etc/sound/msndinit.bin +# msndperm.bin -> /etc/sound/msndperm.bin +# pndsperm.bin -> /etc/sound/pndsperm.bin +# pndspini.bin -> /etc/sound/pndspini.bin +# +# Probably an upstream package bug. +sed -i s#'multisound/Makefile \\'## configure.in +sed -i s#multisound## Makefile.am + +%__aclocal +%__automake +%__autoconf +%configure --disable-loader +make %{?_smp_mflags} + +# Rename README files from firmware subdirs that have them +for i in hdsploader mixartloader pcxhrloader usx2yloader vxloader +do + mv ${i}/README README.${i} +done + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=%{buildroot} +cp -p %{SOURCE1} README.fedora + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING README* + +# License: KOS (BSD-alike) +/lib/firmware/aica_firmware.bin + +# License: No explicit license; default package license is GPLv2+ +/lib/firmware/asihpi + +# License: GPL (undefined version) +/lib/firmware/digiface_firmware* + +# The licenses for the Echo Audio firmware vary slightly so each is enumerated +# separately, to be really sure. +# LGPLv2.1+ +/lib/firmware/ea/3g_asic.fw +# GPL (undefined version) +/lib/firmware/ea/darla20_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/darla24_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/echo3g_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/gina20_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/gina24_301_asic.fw +# GPL (undefined version) +/lib/firmware/ea/gina24_301_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/gina24_361_asic.fw +# GPL (undefined version) +/lib/firmware/ea/gina24_361_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/indigo_dj_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/indigo_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/indigo_io_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/layla20_asic.fw +# GPL (undefined version) +/lib/firmware/ea/layla20_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/layla24_1_asic.fw +# GPL (undefined version) +/lib/firmware/ea/layla24_2A_asic.fw +# GPL (undefined version) +/lib/firmware/ea/layla24_2S_asic.fw +# GPL (undefined version) +/lib/firmware/ea/layla24_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/loader_dsp.fw +# LGPLv2.1+ +/lib/firmware/ea/mia_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/mona_2_asic.fw +# GPL (undefined version) +/lib/firmware/ea/mona_301_1_asic_48.fw +# GPL (undefined version) +/lib/firmware/ea/mona_301_1_asic_96.fw +# GPL (undefined version) +/lib/firmware/ea/mona_301_dsp.fw +# GPL (undefined version) +/lib/firmware/ea/mona_361_1_asic_48.fw +# GPL (undefined version) +/lib/firmware/ea/mona_361_1_asic_96.fw +# GPL (undefined version) +/lib/firmware/ea/mona_361_dsp.fw + +# Licenses vary so are enumerated separately +# GPLv2 +/lib/firmware/emu/audio_dock.fw +# GPLv2 +/lib/firmware/emu/emu0404.fw +# GPLv2 +/lib/firmware/emu/emu1010_notebook.fw +# GPLv2 +/lib/firmware/emu/emu1010b.fw +# GPLv2 +/lib/firmware/emu/hana.fw +# GPLv2+ +/lib/firmware/emu/micro_dock.fw + +# License: GPL (undefined version) +/lib/firmware/ess + +# License: No explicit license; default package license is GPLv2+ +/lib/firmware/korg + +# License: GPL (undefined version) +/lib/firmware/mixart + +# License: GPL (undefined version) +/lib/firmware/multiface_firmware* + +# License: GPL (undefined version) +/lib/firmware/pcxhr + +# License: GPLv2+ +/lib/firmware/sb16 + +# License: GPL (undefined version) +/lib/firmware/vx + +# License: No explicit license; default package license is GPLv2+ +# See ALSA bug #3412 +/lib/firmware/yamaha + +# Even with --disable-loader, we still get usxxx firmware here; looking at the +# alsa-tools-firmware package, it seems like these devices probably use an old- +# style hotplug loading method +# License: GPL (undefined version) +%{_datadir}/alsa/firmware + + +%changelog +* Mon May 12 2008 Tim Jackson - 1.0.16-1 +- Update to upstream 1.0.16 +- Clarify licensing conditions + +* Tue Aug 14 2007 Tim Jackson - 1.0.14-1 +- Update to upstream 1.0.14, but skip turtlebeach firmware as it doesn't seem + to install properly +- Remove files from old-style firmware loader locations +- Spec file cosmetics, keep rpmlint quiet + +* Sat Nov 25 2006 Tim Jackson - 1.0.12-1 +- Update to 1.0.12 +- Add udev dep + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Sat Apr 03 2004 Thorsten Leemhuis - 1.0.4-0.fdr.1 +- Update to 1.0.4 + +* Fri Jan 16 2004 Thorsten Leemhuis - 1.0.1-0.fdr.2 +- add missing rm in install section + +* Fri Jan 09 2004 Thorsten Leemhuis - 1.0.1-0.fdr.1 +- Update to 1.0.1 +- Contains now the license -- is "Distributable under GPL" + +* Thu Dec 04 2003 Thorsten Leemhuis 1.0.0-0.fdr.0.1.rc1 +- Initial build. diff --git a/dead.package b/dead.package deleted file mode 100644 index 815fd29..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild diff --git a/sources b/sources new file mode 100644 index 0000000..0afbff2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +43d6318d07bf0605527876fff21bc61f alsa-firmware-1.0.16-pruned.tar.bz2