moved package specific to cvs2git

This commit is contained in:
Trevor Batley 2023-06-15 15:47:06 +10:00
parent 988513d86b
commit 6d940ffda8

View File

@ -277,18 +277,6 @@ sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec"
# - change Source: to new standard of tar.gz # - change Source: to new standard of tar.gz
#sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec" #sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec"
# package specific changes
if [[ $TARGETPKG == "smeserver-grub" ]] ; then
sed -i '/^Source1:/d' "$TARGETPKG.spec"
sed -i '/^Source2:/d' "$TARGETPKG.spec"
sed -i '/^%setup/{n;N;N;N;d}' "$TARGETPKG.spec"
sed -i '/\[SME: 12359\]/a - Remove Source1 & Source2' "$TARGETPKG.spec"
fi
if [[ $TARGETPKG == "smeserver-lib" ]] ; then
sed -i '/mkdir *e-smith-lib-update/d' "$TARGETPKG.spec"
sed -i '/\[SME: 12359\]/a - Remove create e-smith-lib-update event' "$TARGETPKG.spec"
fi
# tell git about the changes # tell git about the changes
git add "$TARGETPKG.spec" git add "$TARGETPKG.spec"