migrate from /lib/firmware to /usr/lib/firmware and add /lib/firmware symlink [release 20210719-2mamba;Tue Aug 10 2021]
This commit is contained in:
parent
ebe392f1e4
commit
892be380c1
@ -1,6 +1,6 @@
|
|||||||
Name: linux-firmware
|
Name: linux-firmware
|
||||||
Version: 20210719
|
Version: 20210719
|
||||||
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
|
||||||
@ -13,18 +13,18 @@ License: Distributable
|
|||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
Provides: iwlwifi-firmware
|
Provides: iwlwifi-firmware
|
||||||
Obsoletes: iwlwifi-firmware
|
Obsoletes: iwlwifi-firmware < 20210719
|
||||||
Provides: rt2860-firmware
|
Provides: rt2860-firmware
|
||||||
Obsoletes: rt2860-firmware
|
Obsoletes: rt2860-firmware < 20210719
|
||||||
Provides: rt2870-firmware
|
Provides: rt2870-firmware
|
||||||
Obsoletes: rt2870-firmware
|
Obsoletes: rt2870-firmware < 20210719
|
||||||
Provides: radeon-firmware
|
Provides: radeon-firmware
|
||||||
Obsoletes: radeon-firmware
|
Obsoletes: radeon-firmware < 20210719
|
||||||
Provides: rt2501-firmware
|
Provides: rt2501-firmware
|
||||||
Obsoletes: rt2501-firmware
|
Obsoletes: rt2501-firmware < 20210719
|
||||||
Provides: linux_firmware
|
Provides: linux_firmware
|
||||||
Provides: linux-firmware-extra
|
Provides: linux-firmware-extra
|
||||||
Obsoletes: linux-firmware-extra
|
Obsoletes: linux-firmware-extra < 20210719
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Collection of firmware files used by the Linux Kernel.
|
Collection of firmware files used by the Linux Kernel.
|
||||||
@ -37,17 +37,40 @@ Collection of firmware files used by the Linux Kernel.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall \
|
||||||
|
FIRMWAREDIR=%{_prefix}/lib/firmware
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
if [ ! -L /lib -a ! -L /lib/firmware ]; then
|
||||||
|
# Migrate /lib/firmware to /usr/lib/firmware
|
||||||
|
[ -e /usr/lib/firmware ] && mv /usr/lib/firmware{,.rpmold}
|
||||||
|
mv /lib/firmware /usr/lib/firmware
|
||||||
|
if [ -e /usr/lib/firmware.rpmold ]; then
|
||||||
|
mv /usr/lib/firmware.rpmold/* /usr/lib/firmware/ || true
|
||||||
|
rmdir /usr/lib/firmware.rpmold || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
if [ ! -L /lib -a ! -e /lib/firmware ]; then
|
||||||
|
# make /lib/firmware symlink to /usr/lib/firmware
|
||||||
|
ln -s ../usr/lib/firmware /lib/firmware
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /lib/firmware
|
%dir %{_prefix}/lib/firmware
|
||||||
/lib/firmware/*
|
%{_prefix}/lib/firmware/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210719-2mamba
|
||||||
|
- migrate from /lib/firmware to /usr/lib/firmware and add /lib/firmware symlink
|
||||||
|
|
||||||
* Tue Jul 20 2021 Automatic Build System <autodist@mambasoft.it> 20210719-1mamba
|
* Tue Jul 20 2021 Automatic Build System <autodist@mambasoft.it> 20210719-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user