specfile updates included
This commit is contained in:
parent
0eeda2655a
commit
73b43037ad
@ -200,7 +200,7 @@ cd $GITFiles
|
||||
|
||||
# Delete the local first
|
||||
if [ -d "$TARGETPKG" ] ; then
|
||||
if [ $DEBUG ] ; then echo "************Deleting local GIT files" ; fi
|
||||
if [ $DEBUG ] ; then echo "Deleting local GIT files" ; fi
|
||||
rm -Rf $GITFiles/$TARGETPKG
|
||||
fi
|
||||
|
||||
@ -213,31 +213,52 @@ cd $GITFiles/$TARGETPKG
|
||||
#Update README.md
|
||||
# - new name
|
||||
# - Bugzilla link to new name whilst keeping old link for Legacy
|
||||
sed -i '/^e-smith/a smeserver' README.md
|
||||
sed -i 's/e-smith/smeserver/g' README.md
|
||||
git add README.md
|
||||
|
||||
#Update Makefile
|
||||
# - NAME := smeserver-<pkg>
|
||||
|
||||
sed -i 's/e-smith/smeserver/g' Makefile
|
||||
git add Makefile
|
||||
|
||||
# spec file
|
||||
#Rename e-smith-<pkg>.spec as smeserver-<pkg>.spec
|
||||
mv "$SOURCEPKG.spec" "$TARGETPKG.spec"
|
||||
|
||||
#Update smeserver-<pkg>.spec
|
||||
# - change name to smeserver-<pkg> (%define name)
|
||||
# - add PROVIDES: e-smith-<pkg>
|
||||
# - change all Requires: e-smith* to smeserver*
|
||||
# - change Source: to new standard of tar.gz
|
||||
# - delete archivefilename file
|
||||
# - add changelog entry (Bugzilla #12359)
|
||||
|
||||
sed -i "s/^%define name */%define name $TARGETPKG/" "$TARGETPKG.spec"
|
||||
|
||||
# - change all Requires: and BuildRequires: e-smith* to smeserver*
|
||||
sed -i 's/^Requires:.*e-smith/Requires: smeserver/g' "$TARGETPKG.spec"
|
||||
sed -i 's/^BuildRequires:.*e-smith/BuildRequires: smeserver/g' "$TARGETPKG.spec"
|
||||
|
||||
# - add changelog entry (Bugzilla #12359)
|
||||
# Bump the release and add changelog
|
||||
change-log "$TARGETPKG.spec"
|
||||
# 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/ME MYSELF <myemail@koozali.org>/rename-e-smith-pkg.sh aka Trevor Batley <trevor@batley.id.au>/' "$TARGETPKG.spec"
|
||||
|
||||
# - add PROVIDES: smeserver-<pkg>
|
||||
sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec"
|
||||
|
||||
# - change Source: to new standard of tar.gz
|
||||
sed -i "s/tar.xz/tar.gz/" "$TARGETPKG.spec"
|
||||
|
||||
# tell git about the changes
|
||||
git rm "$SOURCEPKG.spec"
|
||||
git add "$TARGETPKG.spec"
|
||||
|
||||
#Update createlinks
|
||||
# - if there is an e-smith-<pkg>-update event rename to smeserver-<pkg>-update
|
||||
#Delete archivefilename file if it follows the new standard
|
||||
if [ !e archivefilename ] ; then rm archivefilename ; fi
|
||||
|
||||
git commit -m "rename-e-smith-pkg"
|
||||
#Update createlinks
|
||||
# - 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)"
|
||||
pit push origin master
|
||||
|
||||
#Convert repository to a Regular Repository (rather than fork)
|
||||
|
Loading…
Reference in New Issue
Block a user