Update to .NET SDK 6.0.109 and Runtime 6.0.9
Resolves: RHBZ#2123788
This commit is contained in:
parent
8c42ee7171
commit
5541ee161e
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
|||||||
/dotnet-v6.0.106.tar.gz
|
/dotnet-v6.0.106.tar.gz
|
||||||
/dotnet-v6.0.107.tar.gz
|
/dotnet-v6.0.107.tar.gz
|
||||||
/dotnet-v6.0.108.tar.gz
|
/dotnet-v6.0.108.tar.gz
|
||||||
|
/dotnet-v6.0.109.tar.gz
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
# until that's done, disable LTO. This has to happen before setting the flags below.
|
# until that's done, disable LTO. This has to happen before setting the flags below.
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
%global host_version 6.0.8
|
%global host_version 6.0.9
|
||||||
%global runtime_version 6.0.8
|
%global runtime_version 6.0.9
|
||||||
%global aspnetcore_runtime_version %{runtime_version}
|
%global aspnetcore_runtime_version %{runtime_version}
|
||||||
%global sdk_version 6.0.108
|
%global sdk_version 6.0.109
|
||||||
%global sdk_feature_band_version %(echo %{sdk_version} | sed -e 's|[[:digit:]][[:digit:]]$|00|')
|
%global sdk_feature_band_version %(echo %{sdk_version} | sed -e 's|[[:digit:]][[:digit:]]$|00|')
|
||||||
%global templates_version %{runtime_version}
|
%global templates_version %{runtime_version}
|
||||||
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
|
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
|
||||||
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
Name: dotnet6.0
|
Name: dotnet6.0
|
||||||
Version: %{sdk_rpm_version}
|
Version: %{sdk_rpm_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: .NET Runtime and SDK
|
Summary: .NET Runtime and SDK
|
||||||
License: MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib
|
License: MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib
|
||||||
URL: https://github.com/dotnet/
|
URL: https://github.com/dotnet/
|
||||||
@ -622,6 +622,10 @@ export COMPlus_LTTng=0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 14 2022 Omair Majid <omajid@redhat.com> - 6.0.109-2
|
||||||
|
- Update to .NET SDK 6.0.109 and Runtime 6.0.9
|
||||||
|
- Resolves: RHBZ#2123788
|
||||||
|
|
||||||
* Tue Aug 09 2022 Omair Majid <omajid@redhat.com> - 6.0.108-1
|
* Tue Aug 09 2022 Omair Majid <omajid@redhat.com> - 6.0.108-1
|
||||||
- Update to .NET SDK 6.0.108 and Runtime 6.0.8
|
- Update to .NET SDK 6.0.108 and Runtime 6.0.8
|
||||||
- Resolves: RHBZ#2112409
|
- Resolves: RHBZ#2112409
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./rename-tarball original-name.tar.gz new-name.tar.gz
|
# ./rename-tarball original-name.tar.gz new-name.tar.gz
|
||||||
|
#
|
||||||
|
# The generated new-name.tar.gz will always have a single main
|
||||||
|
# directory (named new-name to match the tarball name) in the archive.
|
||||||
|
# If the original tarball had multiple files in the main directory of
|
||||||
|
# the archive, all those files will be moved to under the new main
|
||||||
|
# directory.
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
@ -44,8 +50,16 @@ echo "New name: ${new_name}.tar.gz"
|
|||||||
mkdir "temp-${new_name}"
|
mkdir "temp-${new_name}"
|
||||||
pushd "temp-${new_name}" > /dev/null
|
pushd "temp-${new_name}" > /dev/null
|
||||||
tar xf "${original_path}"
|
tar xf "${original_path}"
|
||||||
|
# `find` always shows the current directory as one of the entries in
|
||||||
|
# the output. A total of 2 entries means there is only one main
|
||||||
|
# directory in the extracted archive, and we can just move it to the
|
||||||
|
# expected location.
|
||||||
|
if [[ $(find . -maxdepth 1 | wc -l) == 2 ]]; then
|
||||||
|
mv -- ./* ../"${new_name}"
|
||||||
|
else
|
||||||
mkdir -p ../"${new_name}"
|
mkdir -p ../"${new_name}"
|
||||||
mv -- * ../"${new_name}"
|
mv -- ./* ../"${new_name}"
|
||||||
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
tar czf "${new_name}.tar.gz" "${new_name}"
|
tar czf "${new_name}.tar.gz" "${new_name}"
|
||||||
rm -rf "${new_name}"
|
rm -rf "${new_name}"
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (dotnet-v6.0.108.tar.gz) = e5e5bda2c22812714a91511d9b478fb7519d30220241dcefe651410cba3bbb1c903505e93dae1a1493fff0ca6efd395f35536c09e3c1c7ded71e3611c516a800
|
SHA512 (dotnet-v6.0.109.tar.gz) = 2ba76328ed039b1b85cc1e91f1cf69f3d2504a832219551e13d9864fc9e8ae00dc1e0b6683443d787739611c26209feca288c62c207f302627c9af36048ed4e3
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./update-release sdk-version runtime-version [--bug bug-id] [--tarball tarball-name]
|
# ./update-release sdk-version runtime-version [--bug bug-id] [--tarball tarball-name] [--larger-rpm-release]
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
print_usage() {
|
print_usage() {
|
||||||
echo " Usage:"
|
echo " Usage:"
|
||||||
echo " ./update-release sdk-version runtime-version [--bug bug-id] [--tarball tarball-name]"
|
echo " ./update-release sdk-version runtime-version [--bug bug-id] [--tarball tarball-name] [--larger-rpm-release]"
|
||||||
}
|
}
|
||||||
|
|
||||||
user_provided_tarball_name=""
|
user_provided_tarball_name=""
|
||||||
|
|
||||||
|
rpm_release=1
|
||||||
positional_args=()
|
positional_args=()
|
||||||
bug_ids=()
|
bug_ids=()
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
@ -32,6 +33,10 @@ while [[ "$#" -gt 0 ]]; do
|
|||||||
shift;
|
shift;
|
||||||
shift;
|
shift;
|
||||||
;;
|
;;
|
||||||
|
--larger-rpm-release)
|
||||||
|
rpm_release="2"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
positional_args+=("$1")
|
positional_args+=("$1")
|
||||||
shift
|
shift
|
||||||
@ -56,7 +61,11 @@ fi
|
|||||||
|
|
||||||
host_version="$runtime_version"
|
host_version="$runtime_version"
|
||||||
|
|
||||||
|
if [[ "$runtime_version" == "3.1"* ]]; then
|
||||||
|
tag=v${sdk_version}-SDK
|
||||||
|
else
|
||||||
tag=v${sdk_version}
|
tag=v${sdk_version}
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f "dotnet-${tag}-original.tar.gz" ]]; then
|
if [[ -f "dotnet-${tag}-original.tar.gz" ]]; then
|
||||||
echo "dotnet-${tag}-original.tar.gz alredy exists, not rebuilding tarball"
|
echo "dotnet-${tag}-original.tar.gz alredy exists, not rebuilding tarball"
|
||||||
@ -65,6 +74,8 @@ else
|
|||||||
./rename-tarball "$user_provided_tarball_name" "dotnet-${tag}-original.tar.gz"
|
./rename-tarball "$user_provided_tarball_name" "dotnet-${tag}-original.tar.gz"
|
||||||
elif [[ -f "dotnet-${sdk_version}-SDK.tar.gz" ]]; then
|
elif [[ -f "dotnet-${sdk_version}-SDK.tar.gz" ]]; then
|
||||||
./rename-tarball "dotnet-${sdk_version}-SDK.tar.gz" "dotnet-${tag}-original.tar.gz"
|
./rename-tarball "dotnet-${sdk_version}-SDK.tar.gz" "dotnet-${tag}-original.tar.gz"
|
||||||
|
elif [[ -f "dotnet-${sdk_version}.tar.gz" ]]; then
|
||||||
|
./rename-tarball "dotnet-${sdk_version}.tar.gz" "dotnet-${tag}-original.tar.gz"
|
||||||
elif [[ -f "dotnet-${runtime_version}.tar.gz" ]]; then
|
elif [[ -f "dotnet-${runtime_version}.tar.gz" ]]; then
|
||||||
./rename-tarball "dotnet-${runtime_version}.tar.gz" "dotnet-${tag}-original.tar.gz"
|
./rename-tarball "dotnet-${runtime_version}.tar.gz" "dotnet-${tag}-original.tar.gz"
|
||||||
fi
|
fi
|
||||||
@ -81,15 +92,21 @@ sed -i -E "s|^%global runtime_version [[:digit:]]\.[[:digit:]]\.[[:digit:]]+|%gl
|
|||||||
sed -i -E "s|^%global sdk_version [[:digit:]]\.[[:digit:]]\.[[:digit:]][[:digit:]][[:digit:]]|%global sdk_version ${sdk_version}|" "$spec_file"
|
sed -i -E "s|^%global sdk_version [[:digit:]]\.[[:digit:]]\.[[:digit:]][[:digit:]][[:digit:]]|%global sdk_version ${sdk_version}|" "$spec_file"
|
||||||
|
|
||||||
comment="Update to .NET SDK ${sdk_version} and Runtime ${runtime_version}"
|
comment="Update to .NET SDK ${sdk_version} and Runtime ${runtime_version}"
|
||||||
|
commit_message="$comment
|
||||||
|
"
|
||||||
for bug_id in "${bug_ids[@]}"; do
|
for bug_id in "${bug_ids[@]}"; do
|
||||||
comment="$comment
|
comment="$comment
|
||||||
- Resolves: RHBZ#$bug_id"
|
- Resolves: RHBZ#$bug_id"
|
||||||
|
commit_message="$commit_message
|
||||||
|
Resolves: RHBZ#$bug_id"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "$commit_message" > git-commit-message
|
||||||
|
|
||||||
rpmdev-bumpspec --comment="$comment" "$spec_file"
|
rpmdev-bumpspec --comment="$comment" "$spec_file"
|
||||||
|
|
||||||
# Reset release to 1 in 'Release' tag
|
# Reset release in 'Release' tag
|
||||||
sed -i -E 's|^Release: [[:digit:]]+%|Release: 1%|' "$spec_file"
|
sed -i -E 's|^Release: [[:digit:]]+%|Release: '"$rpm_release"'%|' "$spec_file"
|
||||||
# Reset Release in changelog comment
|
# Reset Release in changelog comment
|
||||||
# See https://stackoverflow.com/questions/18620153/find-matching-text-and-replace-next-line
|
# See https://stackoverflow.com/questions/18620153/find-matching-text-and-replace-next-line
|
||||||
sed -i -E '/^%changelog$/!b;n;s/-[[:digit:]]+$/-1/' "$spec_file"
|
sed -i -E '/^%changelog$/!b;n;s/-[[:digit:]]+$/-'"$rpm_release"'/' "$spec_file"
|
||||||
|
Loading…
Reference in New Issue
Block a user