|
|
|
@ -20,10 +20,10 @@
|
|
|
|
|
# until that's done, disable LTO. This has to happen before setting the flags below.
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
|
|
|
|
|
%global host_version 5.0.10
|
|
|
|
|
%global runtime_version 5.0.10
|
|
|
|
|
%global host_version 5.0.17
|
|
|
|
|
%global runtime_version 5.0.17
|
|
|
|
|
%global aspnetcore_runtime_version %{runtime_version}
|
|
|
|
|
%global sdk_version 5.0.207
|
|
|
|
|
%global sdk_version 5.0.214
|
|
|
|
|
%global templates_version %{runtime_version}
|
|
|
|
|
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
|
|
|
|
|
|
|
|
|
@ -56,12 +56,12 @@
|
|
|
|
|
|
|
|
|
|
Name: dotnet5.0
|
|
|
|
|
Version: %{sdk_rpm_version}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
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
|
|
|
|
|
URL: https://github.com/dotnet/
|
|
|
|
|
|
|
|
|
|
# The source is generated on a Fedora box via:
|
|
|
|
|
# The source is generated on a RHEL/Fedora box via:
|
|
|
|
|
# ./build-dotnet-tarball v%%{src_version}-SDK
|
|
|
|
|
Source0: dotnet-v%{src_version}-SDK.tar.gz
|
|
|
|
|
Source1: check-debug-symbols.py
|
|
|
|
@ -69,6 +69,8 @@ Source2: dotnet.sh.in
|
|
|
|
|
|
|
|
|
|
Patch1: source-build-remove-test-references-from-patches.patch
|
|
|
|
|
|
|
|
|
|
Patch100: runtime-62170-clang13.patch
|
|
|
|
|
|
|
|
|
|
# Disable telemetry by default; make it opt-in
|
|
|
|
|
Patch500: sdk-telemetry-optout.patch
|
|
|
|
|
|
|
|
|
@ -186,6 +188,8 @@ Requires: dotnet-hostfxr-5.0%{?_isa} >= %{host_rpm_version}-%{release}
|
|
|
|
|
# libicu is dlopen()ed
|
|
|
|
|
Requires: libicu%{?_isa}
|
|
|
|
|
|
|
|
|
|
# See src/runtime.*/src/libraries/Native/AnyOS/brotli-version.txt
|
|
|
|
|
Provides: bundled(brotli) = 1.0.9
|
|
|
|
|
%if %{use_bundled_libunwind}
|
|
|
|
|
Provides: bundled(libunwind) = 1.3
|
|
|
|
|
%endif
|
|
|
|
@ -290,7 +294,7 @@ applications using the .NET SDK.
|
|
|
|
|
%dotnet_targeting_pack dotnet-apphost-pack-5.0 %{runtime_rpm_version} Microsoft.NETCore.App 5.0 Microsoft.NETCore.App.Host.%{runtime_id}
|
|
|
|
|
%dotnet_targeting_pack dotnet-targeting-pack-5.0 %{runtime_rpm_version} Microsoft.NETCore.App 5.0 Microsoft.NETCore.App.Ref
|
|
|
|
|
%dotnet_targeting_pack aspnetcore-targeting-pack-5.0 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 5.0 Microsoft.AspNetCore.App.Ref
|
|
|
|
|
%dotnet_targeting_pack netstandard-targeting-pack-2.1 %{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref
|
|
|
|
|
#%%dotnet_targeting_pack netstandard-targeting-pack-2.1 %%{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n dotnet-sdk-5.0-source-built-artifacts
|
|
|
|
@ -326,17 +330,18 @@ ln -s %{_libdir}/dotnet/reference-packages/Private.SourceBuild.ReferencePackages
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Fix bad hardcoded path in build
|
|
|
|
|
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/runtime.*/src/installer/corehost/cli/hostmisc/pal.unix.cpp
|
|
|
|
|
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/dotnet-runtime.*/src/installer/corehost/cli/hostmisc/pal.unix.cpp
|
|
|
|
|
|
|
|
|
|
# Disable warnings
|
|
|
|
|
sed -i 's|skiptests|skiptests ignorewarnings|' repos/runtime.common.props
|
|
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
pushd src/runtime.*
|
|
|
|
|
pushd src/dotnet-runtime.*
|
|
|
|
|
%patch100 -p1
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd src/sdk.*
|
|
|
|
|
pushd src/dotnet-sdk.*
|
|
|
|
|
%patch500 -p1
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
@ -440,26 +445,31 @@ chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{run
|
|
|
|
|
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/nethost.h
|
|
|
|
|
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/singlefilehost
|
|
|
|
|
|
|
|
|
|
install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
|
|
install dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/profile.d/
|
|
|
|
|
#install dotnet.sh %%{buildroot}%%{_sysconfdir}/profile.d/
|
|
|
|
|
|
|
|
|
|
install -dm 0755 %{buildroot}/%{_datadir}/bash-completion/completions
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
#install -dm 0755 %%{buildroot}/%%{_datadir}/bash-completion/completions
|
|
|
|
|
# dynamic completion needs the file to be named the same as the base command
|
|
|
|
|
install src/sdk.*/scripts/register-completions.bash %{buildroot}/%{_datadir}/bash-completion/completions/dotnet
|
|
|
|
|
#install src/dotnet-sdk.*/scripts/register-completions.bash %%{buildroot}/%%{_datadir}/bash-completion/completions/dotnet
|
|
|
|
|
|
|
|
|
|
# TODO: the zsh completion script needs to be ported to use #compdef
|
|
|
|
|
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
|
|
|
|
|
#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet
|
|
|
|
|
|
|
|
|
|
install -dm 0755 %{buildroot}%{_bindir}
|
|
|
|
|
ln -s ../../%{_libdir}/dotnet/dotnet %{buildroot}%{_bindir}/
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
#install -dm 0755 %%{buildroot}%%{_bindir}
|
|
|
|
|
#ln -s ../../%%{_libdir}/dotnet/dotnet %%{buildroot}%%{_bindir}/
|
|
|
|
|
|
|
|
|
|
install -dm 0755 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
find -iname 'dotnet*.1' -type f -exec cp {} %{buildroot}%{_mandir}/man1/ \;
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
#install -dm 0755 %%{buildroot}%%{_mandir}/man1/
|
|
|
|
|
#find -iname 'dotnet*.1' -type f -exec cp {} %%{buildroot}%%{_mandir}/man1/ \;
|
|
|
|
|
|
|
|
|
|
echo "%{_libdir}/dotnet" >> install_location
|
|
|
|
|
install -dm 0755 %{buildroot}%{_sysconfdir}/dotnet
|
|
|
|
|
install install_location %{buildroot}%{_sysconfdir}/dotnet/
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
#echo "%%{_libdir}/dotnet" >> install_location
|
|
|
|
|
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/dotnet
|
|
|
|
|
#install install_location %%{buildroot}%%{_sysconfdir}/dotnet/
|
|
|
|
|
|
|
|
|
|
install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
|
|
|
|
|
install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
|
|
|
|
@ -470,28 +480,17 @@ install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz
|
|
|
|
|
echo "Testing build results for debug symbols..."
|
|
|
|
|
%{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Self-check
|
|
|
|
|
%{buildroot}%{_libdir}/dotnet/dotnet --info
|
|
|
|
|
|
|
|
|
|
# Provided by dotnet-host from another SRPM
|
|
|
|
|
rm %{buildroot}%{_libdir}/dotnet/LICENSE.txt
|
|
|
|
|
rm %{buildroot}%{_libdir}/dotnet/ThirdPartyNotices.txt
|
|
|
|
|
rm %{buildroot}%{_libdir}/dotnet/dotnet
|
|
|
|
|
|
|
|
|
|
%files -n dotnet
|
|
|
|
|
# empty package useful for dependencies
|
|
|
|
|
# Provided by netstandard-targeting-pack-2.1 from another SRPM
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0
|
|
|
|
|
|
|
|
|
|
%files -n dotnet-host
|
|
|
|
|
%dir %{_libdir}/dotnet
|
|
|
|
|
%{_libdir}/dotnet/dotnet
|
|
|
|
|
%dir %{_libdir}/dotnet/host
|
|
|
|
|
%dir %{_libdir}/dotnet/host/fxr
|
|
|
|
|
%{_bindir}/dotnet
|
|
|
|
|
%license %{_libdir}/dotnet/LICENSE.txt
|
|
|
|
|
%license %{_libdir}/dotnet/ThirdPartyNotices.txt
|
|
|
|
|
%doc %{_mandir}/man1/dotnet*.1.gz
|
|
|
|
|
%{_sysconfdir}/profile.d/dotnet.sh
|
|
|
|
|
%{_sysconfdir}/dotnet
|
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
|
%{_datadir}/bash-completion/completions/dotnet
|
|
|
|
|
|
|
|
|
|
%files -n dotnet-hostfxr-5.0
|
|
|
|
|
%dir %{_libdir}/dotnet/host/fxr
|
|
|
|
@ -522,9 +521,36 @@ echo "Testing build results for debug symbols..."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Sep 24 2021 Omair Majid <omajid@redhat.com> - 5.0.207-2
|
|
|
|
|
- Update to .NET SDK 5.0.207 and Runtime 5.0.10
|
|
|
|
|
- Resolves: RHBZ#2000319
|
|
|
|
|
* Thu May 05 2022 Omair Majid <omajid@redhat.com> - 5.0.214-1
|
|
|
|
|
- Update to .NET SDK 5.0.214 and Runtime 5.0.17
|
|
|
|
|
- Resolves: RHBZ#2082258
|
|
|
|
|
|
|
|
|
|
* Thu Apr 28 2022 Omair Majid <omajid@redhat.com> - 5.0.213-2
|
|
|
|
|
- Update to .NET SDK 5.0.213 and Runtime 5.0.16
|
|
|
|
|
- Resolves: RHBZ#2080053
|
|
|
|
|
|
|
|
|
|
* Wed Mar 23 2022 Omair Majid <omajid@redhat.com> - 5.0.212-2
|
|
|
|
|
- Update to .NET SDK 5.0.212 and Runtime 5.0.15
|
|
|
|
|
- Resolves: RHBZ#2060495
|
|
|
|
|
|
|
|
|
|
* Wed Mar 23 2022 Omair Majid <omajid@redhat.com> - 5.0.211-1
|
|
|
|
|
- Update to .NET SDK 5.0.211 and Runtime 5.0.14
|
|
|
|
|
- Resolves: RHBZ#2047766
|
|
|
|
|
|
|
|
|
|
* Wed Jan 05 2022 Omair Majid <omajid@redhat.com> - 5.0.210-2
|
|
|
|
|
- Update to .NET SDK 5.0.210 and Runtime 5.0.13
|
|
|
|
|
- Resolves: RHBZ#2030737
|
|
|
|
|
|
|
|
|
|
* Thu Dec 02 2021 Omair Majid <omajid@redhat.com> - 5.0.209-2
|
|
|
|
|
- Bump release
|
|
|
|
|
- Related: RHBZ#2011058
|
|
|
|
|
- Related: RHBZ#2003078
|
|
|
|
|
|
|
|
|
|
* Sun Nov 21 2021 Omair Majid <omajid@redhat.com> - 5.0.209.1-1
|
|
|
|
|
- Update to .NET SDK 5.0.209 and Runtime 5.0.12
|
|
|
|
|
- Resolves: RHBZ#2024319
|
|
|
|
|
- Resolves: RHBZ#2011058
|
|
|
|
|
- Resolves: RHBZ#2003078
|
|
|
|
|
|
|
|
|
|
* Thu Aug 12 2021 Omair Majid <omajid@redhat.com> - 5.0.206-1
|
|
|
|
|
- Update to .NET SDK 5.0.206 and Runtime 5.0.9
|
|
|
|
|