From 4c1c3aa5098d509b3261da68e910fdb7573ed861 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 23 Mar 2024 11:28:17 +1100 Subject: [PATCH] Move Provides: to before Requires and re-add Requires: and BuildRequires: --- rename-e-smith-pkg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index d53078a..a419d7d 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -266,8 +266,8 @@ sed -i "/^%description/{ n; s/e-smith/smeserver/}" "$TARGETPKG.spec" # Hold off on these for now # - 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" +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 @@ -277,7 +277,7 @@ sed -i "s/fix \[SME: \]/Rename to $TARGETPKG \[SME: 12359\]/" "$TARGETPKG.spec" sed -i 's/ME MYSELF /rename-e-smith-pkg.sh by Trevor Batley /' "$TARGETPKG.spec" # - add PROVIDES: smeserver- -sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec" +sed -i "/Requires:/i Provides: $SOURCEPKG" "$TARGETPKG.spec" # - change Source: to new standard of tar.gz #sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec"