remove duplicate names

This commit is contained in:
Trevor Batley 2023-05-31 17:14:29 +10:00
parent 73b43037ad
commit 19db9793df

View File

@ -229,7 +229,7 @@ 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> (%define name)
sed -i "s/^%define name */%define name $TARGETPKG/" "$TARGETPKG.spec" sed -i "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$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"
@ -239,7 +239,7 @@ sed -i 's/^BuildRequires:.*e-smith/BuildRequires: smeserver/g' "$TARGETPKG.spec"
# Bump the release and add changelog # Bump the release and add changelog
change-log "$TARGETPKG.spec" change-log "$TARGETPKG.spec"
# and edit in the reason and add by whom # and edit in the reason and add by whom
sed -i "s/fix \[SME: \]/Rename to smeserver-$TARGETPKG \[SME: 12359\]/" "$TARGETPKG.spec" sed -i "s/fix \[SME: \]/Rename to $TARGETPKG \[SME: 12359\]/" "$TARGETPKG.spec"
sed -i 's/ME MYSELF <myemail@koozali.org>/rename-e-smith-pkg.sh aka Trevor Batley <trevor@batley.id.au>/' "$TARGETPKG.spec" sed -i 's/ME MYSELF <myemail@koozali.org>/rename-e-smith-pkg.sh aka Trevor Batley <trevor@batley.id.au>/' "$TARGETPKG.spec"
# - add PROVIDES: smeserver-<pkg> # - add PROVIDES: smeserver-<pkg>
@ -259,6 +259,6 @@ if [ !e archivefilename ] ; then rm archivefilename ; fi
# - if there is an e-smith-<pkg>-update event rename to smeserver-<pkg>-update and add symlink # - if there is an e-smith-<pkg>-update event rename to smeserver-<pkg>-update and add symlink
git commit -m "rename-e-smith-pkg script (#12359)" git commit -m "rename-e-smith-pkg script (#12359)"
pit push origin master git push origin master
#Convert repository to a Regular Repository (rather than fork) #Convert repository to a Regular Repository (rather than fork)