From 1da843983718d4cfdd652a76e428abee98e37450 Mon Sep 17 00:00:00 2001 From: Dirk Müller Date: Mar 16 2022 08:35:47 +0000 Subject: rpm/kernel-source.spec.in: call fdupes per subpackage It is a waste of time to do a global fdupes when we have subpackages. --- 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