X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=macros.kernel;fp=macros.kernel;h=8aa96bb4dfe10f290691caa791f79fe704446a06;hp=40cb813e12ed928c2f3a73f0350ed417e5b7e24b;hb=cf003b2dfbe72b28f3fb8108f24290b760365f24;hpb=a8b462c1f839b0f67d81b5f94047e6e0f50c67d4 diff --git a/macros.kernel b/macros.kernel index 40cb813..8aa96bb 100644 --- a/macros.kernel +++ b/macros.kernel @@ -112,12 +112,12 @@ done) if [ -d $RPM_BUILD_ROOT/lib/modules ]; then \ tool=$(%{kmod_compress_cmd} --version | head -n1); \ case "$tool" in gzip*) ext=gz;; xz*) ext=xz;; esac; \ - q=$(find $RPM_BUILD_ROOT/lib/modules -name '*o' -type f -print); \ + q=$(find $RPM_BUILD_ROOT/lib/modules -name '*.ko' -type f -print); \ if [ "$q" ]; then \ printf "Compress %d kernel modules..." $(echo "$q" | wc -l); \ echo "$q" | xargs -r %{kmod_compress_cmd}; \ echo "DONE"; \ - find $RPM_BUILD_ROOT/lib/modules -name '*o' -type l -printf "%p %l\n" | \ + find $RPM_BUILD_ROOT/lib/modules -name '*.ko' -type l -printf "%p %l\n" | \ while read a b; do ln -sf $b.$ext $a.$ext; rm -f $a; done; \ fi; \ fi; \