From e189fd1b5d20ed77cb47193693c513511c1e3a84 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 1 Jun 2023 10:21:54 +1000 Subject: [PATCH] update summary and description in specfile --- rename-e-smith-pkg.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 5f11285..2c1bd00 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -247,8 +247,10 @@ git add Makefile git mv "$SOURCEPKG.spec" "$TARGETPKG.spec" #Update smeserver-.spec -# - change name to smeserver- (%define name) +# - change name to smeserver- +sed -i "/^Summary:/ s/e-smith/smeserver/" "$TARGETPKG.spec" sed -i "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$TARGETPKG.spec" +sed -i "/^%description/{ n; s/e-smith/smeserver/}" "$TARGETPKG.spec" # - change all Requires: and BuildRequires: e-smith* to smeserver* sed -i 's/^Requires:.*e-smith/Requires: smeserver/g' "$TARGETPKG.spec"