diff --git a/rpm/kernel-source.spec.in b/rpm/kernel-source.spec.in index bbbf9dc..d7b3f14 100644 --- a/rpm/kernel-source.spec.in +++ b/rpm/kernel-source.spec.in @@ -224,8 +224,6 @@ 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 @@ -237,10 +235,11 @@ 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