2006-12-20 11:43:01 +01:00
|
|
|
#
|
2011-09-17 14:43:37 +02:00
|
|
|
# spec file for package alsa-firmware
|
2006-12-20 11:43:01 +01:00
|
|
|
#
|
2020-10-05 19:57:20 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-20 11:43:01 +01:00
|
|
|
#
|
2009-01-22 16:43:44 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-11-18 11:22:04 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-20 11:43:01 +01:00
|
|
|
#
|
|
|
|
|
2011-12-22 20:29:35 +01:00
|
|
|
|
2006-12-20 11:43:01 +01:00
|
|
|
Name: alsa-firmware
|
2020-10-21 13:31:16 +02:00
|
|
|
URL: http://www.alsa-project.org/
|
2006-12-20 11:43:01 +01:00
|
|
|
Summary: Firmware Data Files for ALSA
|
2020-01-10 17:35:39 +01:00
|
|
|
# BuildRequires: automake
|
2020-01-14 15:02:24 +01:00
|
|
|
License: GPL-2.0-or-later
|
2006-12-20 11:43:01 +01:00
|
|
|
Group: Hardware/Other
|
2020-01-10 17:35:39 +01:00
|
|
|
BuildRequires: fdupes
|
2013-04-12 16:25:44 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(udev)
|
|
|
|
%endif
|
2020-10-21 13:31:16 +02:00
|
|
|
Version: 1.2.4
|
2012-01-25 16:53:59 +01:00
|
|
|
Release: 0
|
2019-11-18 11:22:04 +01:00
|
|
|
Source: ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-%{version}.tar.bz2
|
2007-08-03 20:47:11 +02:00
|
|
|
Source1: usx2yaudio.rules
|
2006-12-20 11:43:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-16 18:35:53 +02:00
|
|
|
BuildArch: noarch
|
2011-12-22 20:29:35 +01:00
|
|
|
Requires: alsa
|
2020-01-14 09:44:21 +01:00
|
|
|
# for asihpi
|
|
|
|
Supplements: modalias(pci:v0000104Cd0000AC60sv0000175Csd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v0000104Cd0000A106sv0000175Csd*bc*sc*i*)
|
|
|
|
# for ca0132
|
|
|
|
Supplements: modalias(pci:v00001102d00000010sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001102d00000012sv*sd*bc*sc*i*)
|
|
|
|
# for cs46xx
|
|
|
|
Supplements: modalias(pci:v00001013d00006004sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001013d00006003sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001013d00006001sv*sd*bc*sc*i*)
|
|
|
|
# for echoaudio
|
|
|
|
Supplements: modalias(pci:v00001057d00001801sv0000ECC0sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001057d00003410sv0000ECC0sd*bc*sc*i*)
|
|
|
|
# for emu10k1
|
|
|
|
Supplements: modalias(pci:v00001102d00000008sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001102d00000004sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00001102d00000002sv*sd*bc*sc*i*)
|
|
|
|
# for hdsp
|
|
|
|
Supplements: modalias(pci:v000010EEd00003FC5sv*sd*bc*sc*i*)
|
|
|
|
# for mixart
|
|
|
|
Supplements: modalias(pci:v00001057d00000003sv*sd*bc*sc*i*)
|
|
|
|
# for pcxhr
|
|
|
|
Supplements: modalias(pci:v000010B5d00009056sv00001369sd*bc*sc*i*)
|
|
|
|
# for usx2y
|
|
|
|
Supplements: modalias(usb:v1604p8005d*dc*dsc*dp*ic*isc*ip*in*)
|
|
|
|
Supplements: modalias(usb:v1604p8007d*dc*dsc*dp*ic*isc*ip*in*)
|
|
|
|
Supplements: modalias(usb:v1604p8001d*dc*dsc*dp*ic*isc*ip*in*)
|
|
|
|
# for vx
|
|
|
|
Supplements: modalias(pci:v000010B5d00009030sv00001369sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v000010B5d00009050sv00001369sd*bc*sc*i*)
|
|
|
|
|
2013-04-12 16:25:44 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
|
|
|
%else
|
|
|
|
%define _udevdir /etc/udev
|
|
|
|
%endif
|
2006-12-20 11:43:01 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Various firmware data files for ALSA drivers.
|
|
|
|
|
|
|
|
%prep
|
2020-01-14 15:02:24 +01:00
|
|
|
%setup -q
|
2006-12-20 11:43:01 +01:00
|
|
|
|
|
|
|
%build
|
2015-02-27 15:37:07 +01:00
|
|
|
# autoreconf -fi
|
2007-06-05 00:42:01 +02:00
|
|
|
%configure \
|
2006-12-20 11:43:01 +01:00
|
|
|
--enable-loader \
|
|
|
|
--enable-hotplug \
|
|
|
|
--with-hotplug-dir=/lib/firmware
|
2011-09-17 14:43:37 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-20 11:43:01 +01:00
|
|
|
|
|
|
|
%install
|
2020-01-10 17:35:39 +01:00
|
|
|
make DESTDIR="%{buildroot}" install
|
2020-01-14 09:44:21 +01:00
|
|
|
# remove duplicated entries that are already in kernel-firmware package
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctefx.bin
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctspeq.bin
|
2006-12-20 11:43:01 +01:00
|
|
|
# remove unnecessary loader firmwares
|
2009-10-08 04:07:16 +02:00
|
|
|
for d in vxloader mixartloader pcxhrloader; do
|
2020-01-10 17:35:39 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/alsa/firmware/$d
|
2009-10-08 04:07:16 +02:00
|
|
|
done
|
2009-05-06 18:31:44 +02:00
|
|
|
# some files are included in the new "kernel-firmware" package
|
2009-10-08 04:07:16 +02:00
|
|
|
for d in ess korg sb16 yamaha; do
|
2020-01-10 17:35:39 +01:00
|
|
|
rm -rf %{buildroot}/lib/firmware/$d
|
2006-12-20 11:43:01 +01:00
|
|
|
done
|
|
|
|
# change identical files to symlinks for hdsploader
|
2020-01-10 17:35:39 +01:00
|
|
|
pushd %{buildroot}%{_datadir}/alsa/firmware/hdsploader
|
2006-12-20 11:43:01 +01:00
|
|
|
for i in *.bin; do
|
2020-01-10 17:35:39 +01:00
|
|
|
hotplug=%{buildroot}/lib/firmware/$i
|
2006-12-20 11:43:01 +01:00
|
|
|
if [ -f $hotplug ]; then
|
|
|
|
if cmp -s -b $hotplug $i; then
|
|
|
|
rm $i
|
|
|
|
ln -s /lib/firmware/$i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd
|
2007-03-15 01:36:17 +01:00
|
|
|
# FIXME: remove non-existing msnd firmware symlinks
|
2020-01-10 17:35:39 +01:00
|
|
|
rm -rf %{buildroot}/lib/firmware/turtlebeach
|
2006-12-20 11:43:01 +01:00
|
|
|
# install documents
|
2020-01-10 17:35:39 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
2020-01-14 11:16:19 +01:00
|
|
|
mkdir -p %{buildroot}%{_licensedir}/%{name}
|
|
|
|
install -c -m 0644 COPYING %{buildroot}%{_licensedir}/%{name}
|
2020-01-10 17:35:39 +01:00
|
|
|
install -c -m 0644 README %{buildroot}%{_docdir}/%{name}
|
2013-04-12 16:25:44 +02:00
|
|
|
for d in echoaudio hdsploader mixartloader pcxhrloader usx2yloader vxloader asihpi ca0132; do
|
2006-12-20 11:43:01 +01:00
|
|
|
(cd $d
|
|
|
|
n=${d##*/}
|
2020-01-10 17:35:39 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/$n
|
2020-01-14 11:16:19 +01:00
|
|
|
for f in AUTHORS ChangeLog README* TODO *.txt; do
|
2009-03-05 16:36:34 +01:00
|
|
|
test -f $f || continue
|
2020-01-14 11:16:19 +01:00
|
|
|
case $f in
|
|
|
|
licen[cs]e*)
|
|
|
|
mkdir -p %{buildroot}%{_licensedir}/%{name}/$n
|
|
|
|
install -c -m 0644 $f %{buildroot}%{_licensedir}/%{name}/$n
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
install -c -m 0644 $f %{buildroot}%{_docdir}/%{name}/$n
|
|
|
|
;;
|
|
|
|
esac
|
2006-12-20 11:43:01 +01:00
|
|
|
done
|
|
|
|
)
|
|
|
|
done
|
|
|
|
# udev rules
|
2020-01-10 17:35:39 +01:00
|
|
|
install -D -c -m 0644 %{SOURCE1} %{buildroot}%{_udevdir}/rules.d/52-usx2yaudio.rules
|
|
|
|
%fdupes -s %{buildroot}
|
2006-12-20 11:43:01 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_docdir}/%{name}
|
2020-01-14 15:02:24 +01:00
|
|
|
%license %{_licensedir}/%{name}
|
2006-12-20 11:43:01 +01:00
|
|
|
/lib/firmware/*
|
2007-06-05 20:05:02 +02:00
|
|
|
%{_datadir}/alsa
|
2013-04-12 16:25:44 +02:00
|
|
|
%{_udevdir}
|
2008-01-24 00:27:42 +01:00
|
|
|
|
2007-03-15 01:36:17 +01:00
|
|
|
%changelog
|