diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index c552d53..bf471fe 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -281,6 +281,7 @@ sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec" if [[ $TARGETPKG == "smeserver-grub" ]] ; then sed -i '/^Source1:/d' "$TARGETPKG.spec" sed -i '/^Source2:/d' "$TARGETPKG.spec" + sed -e '/^%setup/{n;N;N;N;d}' sed -i '/\[SME: 12359\]/a - Remove Source1 & Source2' "$TARGETPKG.spec" fi if [[ $TARGETPKG == "smeserver-lib" ]] ; then