From a0fe5dd71dee48b1b3af6da9aa7e38ec09be19d3 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 15 Jun 2023 14:24:59 +1000 Subject: [PATCH] add package specific fixes --- rename-e-smith-pkg.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 985818b..db5af03 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -277,6 +277,17 @@ sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec" # - change Source: to new standard of tar.gz #sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec" +# package specific changes +if [[ $TARGETPKG == "smeserver-grub" ]] ; then + sed -i '/Source1:/d' "$TARGETPKG.spec" + sed -i '/Source2:/d' "$TARGETPKG.spec" + sed -i '/[SME: 12359]/i - Remove Source1 & Source2' "$TARGETPKG.spec" +fi +if [[ $TARGETPKG == "smeserver-lib" ]] ; then + sed -i '/mkdir *e-smith-lib-update/d' "$TARGETPKG.spec" + sed -i '/[SME: 12359]/i - Remove create e-smith-lib-update event' "$TARGETPKG.spec" +fi + # tell git about the changes git add "$TARGETPKG.spec"