diff --git a/rpm/kernel-source.spec.in b/rpm/kernel-source.spec.in index d7b3f14..bbbf9dc 100644 --- a/rpm/kernel-source.spec.in +++ b/rpm/kernel-source.spec.in @@ -224,6 +224,8 @@ sed -ie 's,/lib/modules/,%{kernel_module_directory}/,' linux-%kernelrelease%vari cd linux-%kernelrelease-vanilla %_sourcedir/apply-patches --vanilla %_sourcedir/series.conf %my_builddir %symbols rm -f $(find . -name ".gitignore") +# Hardlink duplicate files automatically (from package fdupes). +%fdupes $PWD cd .. %endif @@ -235,11 +237,10 @@ rm -f $(find . -name ".gitignore") if [ -f %_sourcedir/localversion ] ; then cat %_sourcedir/localversion > localversion fi +# Hardlink duplicate files automatically (from package fdupes). +%fdupes $PWD cd .. %endif - -# Hardlink duplicate files automatically (from package fdupes). -%fdupes %{buildroot} popd %if ! %vanilla_only