commit b0904ed0f84ac1fde0a3147318540209014d5fdd Author: zhuchunyi Date: Wed Nov 6 19:02:02 2019 +0800 update code diff --git a/at76_usb-firmware-0.1.tar.gz b/at76_usb-firmware-0.1.tar.gz new file mode 100644 index 0000000..68b0186 Binary files /dev/null and b/at76_usb-firmware-0.1.tar.gz differ diff --git a/atmel-firmware-1.3.tar.gz b/atmel-firmware-1.3.tar.gz new file mode 100644 index 0000000..ada8b44 Binary files /dev/null and b/atmel-firmware-1.3.tar.gz differ diff --git a/atmel-firmware.spec b/atmel-firmware.spec new file mode 100644 index 0000000..2761f50 --- /dev/null +++ b/atmel-firmware.spec @@ -0,0 +1,55 @@ +Name: atmel-firmware +Version: 1.3 +Release: 20 +Summary: Firmware for Atmel at76c50x Wireless Network Chips +License: Redistributable, no modification permitted +URL: http://at76c503a.berlios.de/ +Source0: http://www.thekelleys.org.uk/atmel/atmel-firmware-%{version}.tar.gz +Source1: http://download.berlios.de/at76c503a/at76_usb-firmware-0.1.tar.gz +BuildArch: noarch + +Obsoletes: at76_usb-firmware < 0.1 +Provides: at76_usb-firmware = 0.1 + +%description +The drivers for Atmel at76c50x wireless network chips in the Linux 2.6.x kernel +and at http://at76c503a.berlios.de/ do not include the firmware and this +firmware needs to be loaded by the host on most cards using these chips. + +This package provides the firmware images that should be automatically loaded +as needed by the hotplug system. It also provides a small loader utility that +can be used to accomplish the same thing when hotplug is not in use. + +%package_help + +%prep +%autosetup -n %{name}-%{version} +%setup -q -D -T -a 1 +install -pm 0644 at76_usb-firmware-0.1/COPYRIGHT COPYRIGHT-usb +install -pm 0644 at76_usb-firmware-0.1/README README-usb +for i in COPYRIGHT-usb README-usb COPYING README; do +install -pm 0644 ${i} ${i}.atmel-firmware +rm ${i} +ln -sf /lib/firmware/${i}.atmel-firmware ${i} +done + +%build + +%install +install -d %{buildroot}/lib/firmware +install -p images/*.bin %{buildroot}/lib/firmware +install -p at76_usb-firmware-0.1/*.bin %{buildroot}/lib/firmware +install -p *.atmel-firmware %{buildroot}/lib/firmware + +%files +%doc COPYING COPYRIGHT-usb +%attr(0644,root,root) /lib/firmware/*.bin +%attr(0644,root,root) /lib/firmware/*.atmel-firmware + +%files help +%doc VERSION README README-usb + +%changelog +* Fri Oct 11 2019 openEuler Buildteam - 1.3-20 +- Package init +