integrate extra subpackage to make a single package [release 20150904.6ebf5d5-2mamba;Tue Dec 22 2015]
This commit is contained in:
parent
22d19ec13f
commit
2a3b572409
@ -1,4 +1,3 @@
|
|||||||
# linux-firmware
|
# linux-firmware
|
||||||
|
|
||||||
Collection of firmware files used by the Linux Kernel.
|
Collection of firmware files used by the Linux Kernel.
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
Name: linux-firmware
|
Name: linux-firmware
|
||||||
Version: 20150904.6ebf5d5
|
Version: 20150904.6ebf5d5
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Collection of firmware files used by the Linux Kernel
|
Summary: Collection of firmware files used by the Linux Kernel
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -47,13 +47,13 @@ Source: git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firm
|
|||||||
License: Distributable
|
License: Distributable
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET} >= %{kernel_majversion}
|
#BuildRequires: kernel-%{KERNEL_TARGET} >= %{kernel_majversion}
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET} <= %{kernel_majversion}.255
|
#BuildRequires: kernel-%{KERNEL_TARGET} <= %{kernel_majversion}.255
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET}-sound >= %{kernel_majversion}
|
#BuildRequires: kernel-%{KERNEL_TARGET}-sound >= %{kernel_majversion}
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET}-sound <= %{kernel_majversion}.255
|
#BuildRequires: kernel-%{KERNEL_TARGET}-sound <= %{kernel_majversion}.255
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET}-wireless >= %{kernel_majversion}
|
#BuildRequires: kernel-%{KERNEL_TARGET}-wireless >= %{kernel_majversion}
|
||||||
BuildRequires: kernel-%{KERNEL_TARGET}-wireless <= %{kernel_majversion}.255
|
#BuildRequires: kernel-%{KERNEL_TARGET}-wireless <= %{kernel_majversion}.255
|
||||||
BuildRequires: kmod
|
#BuildRequires: kmod
|
||||||
Provides: iwlwifi-firmware
|
Provides: iwlwifi-firmware
|
||||||
Obsoletes: iwlwifi-firmware
|
Obsoletes: iwlwifi-firmware
|
||||||
Provides: rt2860-firmware
|
Provides: rt2860-firmware
|
||||||
@ -65,146 +65,84 @@ Obsoletes: radeon-firmware
|
|||||||
Provides: rt2501-firmware
|
Provides: rt2501-firmware
|
||||||
Obsoletes: rt2501-firmware
|
Obsoletes: rt2501-firmware
|
||||||
Provides: linux_firmware
|
Provides: linux_firmware
|
||||||
|
Provides: linux-firmware-extra
|
||||||
|
Obsoletes: linux-firmware-extra
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Collection of firmware files used by the Linux Kernel.
|
Collection of firmware files used by the Linux Kernel.
|
||||||
|
|
||||||
%package extra
|
#%package extra
|
||||||
Summary: Collection of extra firmware files that are not used by the Linux Kernel modules
|
#Summary: Collection of extra firmware files that are not used by the Linux Kernel modules
|
||||||
Group: System/Kernel and Hardware
|
#Group: System/Kernel and Hardware
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
#Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
#
|
||||||
%description extra
|
#%description extra
|
||||||
Collection of extra firmware files that are not used by the Linux Kernel modules.
|
#Collection of extra firmware files that are not used by the Linux Kernel modules.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
[ -e /lib/modules/%{KERNEL_VER}%{KERNEL_TARGET}/modules.order ] || {
|
#[ -e /lib/modules/%{KERNEL_VER}%{KERNEL_TARGET}/modules.order ] || {
|
||||||
echo "ERROR: missing a file that indicates that kernel version here is wrong; aborting."
|
# echo "ERROR: missing a file that indicates that kernel version here is wrong; aborting."
|
||||||
exit 1
|
# exit 1
|
||||||
}
|
#}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
install -d -m0755 %{buildroot}/lib/firmware
|
%makeinstall
|
||||||
cp -a * %{buildroot}/lib/firmware/
|
#install -d -m0755 %{buildroot}/lib/firmware
|
||||||
|
#cp -a * %{buildroot}/lib/firmware/
|
||||||
|
|
||||||
find /lib/modules/%{KERNEL_VER}%{KERNEL_TARGET}/ -type f -name *.ko | \
|
#find /lib/modules/%{KERNEL_VER}%{KERNEL_TARGET}/ -type f -name *.ko | \
|
||||||
while read l; do
|
#while read l; do
|
||||||
/sbin/modinfo $l | grep ^firmware: | sed "s|firmware:[[:space:]]*|/lib/firmware/|" >> extracted-kernel-firmware.list
|
# /sbin/modinfo $l | grep ^firmware: | sed "s|firmware:[[:space:]]*|/lib/firmware/|" >> extracted-kernel-firmware.list
|
||||||
done
|
#done
|
||||||
|
|
||||||
cat extracted-kernel-firmware.list | sort -u > kernel-firmware.list
|
#cat extracted-kernel-firmware.list | sort -u > kernel-firmware.list
|
||||||
while read l; do
|
#while read l; do
|
||||||
[ -e %{buildroot}${l} ] && echo "${l}" >> matching-firmware.list
|
# [ -e %{buildroot}${l} ] && echo "${l}" >> matching-firmware.list
|
||||||
done < kernel-firmware.list
|
#done < kernel-firmware.list
|
||||||
|
|
||||||
pushd %{buildroot}/lib/firmware
|
#pushd %{buildroot}/lib/firmware
|
||||||
# atk3k-1.fw needs microcode files in /lib/firmware/ar3k
|
## atk3k-1.fw needs microcode files in /lib/firmware/ar3k
|
||||||
grep "ath3k-1.fw" %{_builddir}/%{name}-%{version}/matching-firmware.list && {
|
#grep "ath3k-1.fw" %{_builddir}/%{name}-%{version}/matching-firmware.list && {
|
||||||
find ar3k/ -type f | \
|
# find ar3k/ -type f | \
|
||||||
while read l; do
|
# while read l; do
|
||||||
[ -e %{buildroot}/lib/firmware/${l} ] && echo "/lib/firmware/${l}" >> %{_builddir}/%{name}-%{version}/matching-firmware.list
|
# [ -e %{buildroot}/lib/firmware/${l} ] && echo "/lib/firmware/${l}" >> %{_builddir}/%{name}-%{version}/matching-firmware.list
|
||||||
done
|
# done
|
||||||
}
|
#}
|
||||||
|
|
||||||
# add symlinked files
|
## add symlinked files
|
||||||
find -type l -exec readlink -f {} \; | \
|
#find -type l -exec readlink -f {} \; | \
|
||||||
while read l; do
|
# while read l; do
|
||||||
n=`echo "${l/*\/lib\/firmware\/}"`
|
# n=`echo "${l/*\/lib\/firmware\/}"`
|
||||||
grep ${n} %{_builddir}/%{name}-%{version}/matching-firmware.list || \
|
# grep ${n} %{_builddir}/%{name}-%{version}/matching-firmware.list || \
|
||||||
echo "/lib/firmware/${n}" >> %{_builddir}/%{name}-%{version}/matching-firmware.list
|
# echo "/lib/firmware/${n}" >> %{_builddir}/%{name}-%{version}/matching-firmware.list
|
||||||
done
|
# done
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
find %{buildroot}/lib/firmware/ \( -type f -or -type l \) -and \
|
#find %{buildroot}/lib/firmware/ \( -type f -or -type l \) -and \
|
||||||
-not -name LICENSE\* -and -not -name LICENCE\* -and -not -name GPL-3 | \
|
# -not -name LICENSE\* -and -not -name LICENCE\* -and -not -name GPL-3 | \
|
||||||
while read l; do
|
#while read l; do
|
||||||
f=`echo $l | sed "s|%{buildroot}||"`
|
# f=`echo $l | sed "s|%{buildroot}||"`
|
||||||
grep "^$f$" matching-firmware.list || echo "${f}" >> not-matching-firmware.list
|
# grep "^$f$" matching-firmware.list || echo "${f}" >> not-matching-firmware.list
|
||||||
done
|
#done
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files -f matching-firmware.list
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/lib/firmware/iwlwifi-6000g2b-5.ucode
|
%dir /lib/firmware
|
||||||
/lib/firmware/GPL-3
|
/lib/firmware/*
|
||||||
/lib/firmware/LICENCE.agere
|
|
||||||
/lib/firmware/LICENSE.amd-ucode
|
|
||||||
/lib/firmware/LICENCE.atheros_firmware
|
|
||||||
/lib/firmware/LICENCE.cw1200
|
|
||||||
/lib/firmware/LICENCE.go7007
|
|
||||||
/lib/firmware/LICENCE.i2400m
|
|
||||||
/lib/firmware/LICENCE.it913x
|
|
||||||
/lib/firmware/LICENCE.it913x
|
|
||||||
/lib/firmware/LICENCE.it913x
|
|
||||||
/lib/firmware/LICENCE.iwlwifi_firmware
|
|
||||||
/lib/firmware/LICENCE.mwl8335
|
|
||||||
/lib/firmware/LICENCE.myri10ge_firmware
|
|
||||||
/lib/firmware/LICENCE.phanfw
|
|
||||||
/lib/firmware/LICENCE.qat_dh895xcc_firmware
|
|
||||||
/lib/firmware/LICENCE.qla2xxx
|
|
||||||
/lib/firmware/LICENCE.ralink-firmware.txt
|
|
||||||
/lib/firmware/LICENCE.rtlwifi_firmware.txt
|
|
||||||
/lib/firmware/LICENCE.ti-connectivity
|
|
||||||
/lib/firmware/LICENCE.xc5000
|
|
||||||
/lib/firmware/LICENCE.xc5000c
|
|
||||||
/lib/firmware/LICENSE.radeon
|
|
||||||
/lib/firmware/LICENCE.xc5000
|
|
||||||
/lib/firmware/LICENCE.xc5000c
|
|
||||||
/lib/firmware/LICENCE.Abilis
|
|
||||||
/lib/firmware/LICENCE.wl1251
|
|
||||||
/lib/firmware/LICENCE.xc5000
|
|
||||||
/lib/firmware/LICENCE.xc5000c
|
|
||||||
/lib/firmware/LICENCE.ca0132
|
|
||||||
/lib/firmware/LICENCE.nvidia
|
|
||||||
/lib/firmware/LICENSE.QualcommAtheros_ar3k
|
|
||||||
/lib/firmware/LICENSE.QualcommAtheros_ath10k
|
|
||||||
|
|
||||||
/lib/firmware/LICENCE.adsp_sst
|
|
||||||
/lib/firmware/LICENCE.cavium
|
|
||||||
/lib/firmware/LICENCE.e100
|
|
||||||
/lib/firmware/LICENCE.kaweth
|
|
||||||
/lib/firmware/LICENCE.qat_mmp_firmware
|
|
||||||
/lib/firmware/LICENCE.qla1280
|
|
||||||
/lib/firmware/LICENCE.ti-keystone
|
|
||||||
/lib/firmware/LICENSE.amdgpu
|
|
||||||
/lib/firmware/LICENSE.atmel
|
|
||||||
/lib/firmware/LICENSE.hfi1_firmware
|
|
||||||
/lib/firmware/LICENSE.i915
|
|
||||||
/lib/firmware/LICENCE.fw_sst_0f28
|
|
||||||
/lib/firmware/LICENCE.ibt_firmware
|
|
||||||
|
|
||||||
%files extra -f not-matching-firmware.list
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%exclude /lib/firmware/iwlwifi-6000g2b-5.ucode
|
|
||||||
/lib/firmware/LICENSE.dib0700
|
|
||||||
/lib/firmware/LICENCE.Marvell
|
|
||||||
/lib/firmware/LICENCE.fw_sst_0f28
|
|
||||||
/lib/firmware/LICENCE.ibt_firmware
|
|
||||||
/lib/firmware/LICENCE.OLPC
|
|
||||||
/lib/firmware/LICENCE.broadcom_bcm43xx
|
|
||||||
/lib/firmware/LICENCE.chelsio_firmware
|
|
||||||
/lib/firmware/LICENSE.dib0700
|
|
||||||
/lib/firmware/LICENCE.ene_firmware
|
|
||||||
/lib/firmware/LICENCE.fw_sst_0f28
|
|
||||||
/lib/firmware/LICENCE.ibt_firmware
|
|
||||||
/lib/firmware/LICENCE.IntcSST2
|
|
||||||
/lib/firmware/LICENCE.ralink_a_mediatek_company_firmware
|
|
||||||
/lib/firmware/LICENCE.siano
|
|
||||||
/lib/firmware/LICENCE.tda7706-firmware.txt
|
|
||||||
/lib/firmware/LICENCE.ueagle-atm4-firmware
|
|
||||||
/lib/firmware/LICENCE.via_vt6656
|
|
||||||
/lib/firmware/LICENCE.r8a779x_usb3
|
|
||||||
/lib/firmware/LICENCE.xc4000
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150904.6ebf5d5-2mamba
|
||||||
|
- integrate extra subpackage to make a single package
|
||||||
|
|
||||||
* Tue Nov 24 2015 Automatic Build System <autodist@mambasoft.it> 20150904.6ebf5d5-1mamba
|
* Tue Nov 24 2015 Automatic Build System <autodist@mambasoft.it> 20150904.6ebf5d5-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user