update summary and description in specfile

This commit is contained in:
Trevor Batley 2023-06-01 10:21:54 +10:00
parent ab4fe843e4
commit e189fd1b5d

View File

@ -247,8 +247,10 @@ git add Makefile
git mv "$SOURCEPKG.spec" "$TARGETPKG.spec" git mv "$SOURCEPKG.spec" "$TARGETPKG.spec"
#Update smeserver-<pkg>.spec #Update smeserver-<pkg>.spec
# - change name to smeserver-<pkg> (%define name) # - change name to smeserver-<pkg>
sed -i "/^Summary:/ s/e-smith/smeserver/" "$TARGETPKG.spec"
sed -i "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$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* # - change all Requires: and BuildRequires: e-smith* to smeserver*
sed -i 's/^Requires:.*e-smith/Requires: smeserver/g' "$TARGETPKG.spec" sed -i 's/^Requires:.*e-smith/Requires: smeserver/g' "$TARGETPKG.spec"