X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=macros.kernel;h=8aa96bb4dfe10f290691caa791f79fe704446a06;hb=cc0c6c3770eedc36e23524a03e1a2cf9828151a2;hp=40cb813e12ed928c2f3a73f0350ed417e5b7e24b;hpb=208adebc7b42418e7fea34d3a573e0e8b03e36bd;p=packages%2Frpm-tld-macros.git 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; \