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"