Own the directories where appropriate in sub packages

This commit is contained in:
Peter Robinson 2023-04-19 11:25:58 +01:00
parent be92a95e16
commit eed4d6f8c4

View File

@ -455,15 +455,19 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
# GPU firmwares # GPU firmwares
%files -n amd-gpu-firmware %files -n amd-gpu-firmware
%license LICENSE.radeon LICENSE.amdgpu %license LICENSE.radeon LICENSE.amdgpu
%dir %{_firmwarepath}/amdgpu
%dir %{_firmwarepath}/radeon
%{_firmwarepath}/amdgpu/ %{_firmwarepath}/amdgpu/
%{_firmwarepath}/radeon/ %{_firmwarepath}/radeon/
%files -n intel-gpu-firmware %files -n intel-gpu-firmware
%license LICENSE.i915 %license LICENSE.i915
%dir %{_firmwarepath}/i915
%{_firmwarepath}/i915/ %{_firmwarepath}/i915/
%files -n nvidia-gpu-firmware %files -n nvidia-gpu-firmware
%license LICENCE.nvidia %license LICENCE.nvidia
%dir %{_firmwarepath}/nvidia
%{_firmwarepath}/nvidia/g*/ %{_firmwarepath}/nvidia/g*/
%{_firmwarepath}/nvidia/tu*/ %{_firmwarepath}/nvidia/tu*/
@ -474,6 +478,12 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%license LICENSE.QualcommAtheros_ath10k %license LICENSE.QualcommAtheros_ath10k
%license LICENCE.open-ath9k-htc-firmware %license LICENCE.open-ath9k-htc-firmware
%license qca/NOTICE.txt %license qca/NOTICE.txt
%dir %{_firmwarepath}/ar3k
%dir %{_firmwarepath}/ath6k
%dir %{_firmwarepath}/ath9k_htc
%dir %{_firmwarepath}/ath10k
%dir %{_firmwarepath}/ath11k
%dir %{_firmwarepath}/qca
%{_firmwarepath}/ar3k/ %{_firmwarepath}/ar3k/
%{_firmwarepath}/ath6k/ %{_firmwarepath}/ath6k/
%{_firmwarepath}/ath9k_htc/ %{_firmwarepath}/ath9k_htc/
@ -484,6 +494,8 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%files -n brcmfmac-firmware %files -n brcmfmac-firmware
%license LICENCE.broadcom_bcm43xx %license LICENCE.broadcom_bcm43xx
%license LICENCE.cypress %license LICENCE.cypress
%dir %{_firmwarepath}/brcm
%dir %{_firmwarepath}/cypress
%{_firmwarepath}/brcm/ %{_firmwarepath}/brcm/
%{_firmwarepath}/cypress/ %{_firmwarepath}/cypress/
@ -588,6 +600,7 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%files -n mt7xxx-firmware %files -n mt7xxx-firmware
%license LICENCE.mediatek %license LICENCE.mediatek
%license LICENCE.ralink_a_mediatek_company_firmware %license LICENCE.ralink_a_mediatek_company_firmware
%dir %{_firmwarepath}/mediatek
%{_firmwarepath}/mediatek/mt76* %{_firmwarepath}/mediatek/mt76*
%{_firmwarepath}/mediatek/mt79* %{_firmwarepath}/mediatek/mt79*
%{_firmwarepath}/mediatek/BT* %{_firmwarepath}/mediatek/BT*
@ -595,6 +608,10 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%files -n realtek-firmware %files -n realtek-firmware
%license LICENCE.rtlwifi_firmware.txt %license LICENCE.rtlwifi_firmware.txt
%dir %{_firmwarepath}/rtl_bt
%dir %{_firmwarepath}/rtlwifi
%dir %{_firmwarepath}/rtw88
%dir %{_firmwarepath}/rtw89
%{_firmwarepath}/rtl_bt/ %{_firmwarepath}/rtl_bt/
%{_firmwarepath}/rtlwifi/ %{_firmwarepath}/rtlwifi/
%{_firmwarepath}/rtw88/ %{_firmwarepath}/rtw88/