]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - linux-firmware/linux-firmware.nm
Change how we make packages "noarch"
[ipfire-3.x.git] / linux-firmware / linux-firmware.nm
index 096adef4c6ddbb0bb3637f3c5a0625657eade20b..53413eacfce76c10a357c280e9f8df94a96e876b 100644 (file)
@@ -4,11 +4,8 @@
 ###############################################################################
 
 name       = linux-firmware
-version    = 20130307
-git_ver    = c530a75
-release    = 1.git%{git_ver}
-arch       = noarch
-thisapp    = %{name}-%{git_ver}
+version    = 20221214
+release    = 1
 
 maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
 groups     = System/Libraries
@@ -17,22 +14,27 @@ license    = Non-GPL
 summary    = Firmware Binaries for some Devices.
 
 description
-       linux-firmware provides some firmware binaries that \
-       are loaded into the devices at startup. \
-       For detailed license info check the WHENCE and LICENSE.* texts \
+       linux-firmware provides some firmware binaries that
+       are loaded into the devices at startup.
+       For detailed license info check the WHENCE and LICENSE.* texts
        for the specific firmware.
 end
 
 source_dl  = https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/
 
 build
+       arches = noarch
+
        build
                : # Nothing to do.
        end
 
-       install
-               mkdir -pv %{BUILDROOT}%{prefix}/lib/firmware
-               cp -prv * %{BUILDROOT}%{prefix}/lib/firmware
+       make_install_targets += FIRMWAREDIR=%{firmwaredir}
+
+       install_cmds
+               # Remove executable bits from any files
+               find %{BUILDROOT}%{firmwaredir} -type f \
+                       -executable -print | xargs chmod -v a-x
        end
 end