Blame SPECS/dotnet5.0.spec

600222
%bcond_with bootstrap
7c038d
7c038d
# Avoid provides/requires from private libraries
7c038d
%global privlibs             libhostfxr
7c038d
%global privlibs %{privlibs}|libclrjit
7c038d
%global privlibs %{privlibs}|libcoreclr
7c038d
%global privlibs %{privlibs}|libcoreclrtraceptprovider
7c038d
%global privlibs %{privlibs}|libdbgshim
7c038d
%global privlibs %{privlibs}|libhostpolicy
7c038d
%global privlibs %{privlibs}|libmscordaccore
7c038d
%global privlibs %{privlibs}|libmscordbi
7c038d
%global privlibs %{privlibs}|libsos
7c038d
%global privlibs %{privlibs}|libsosplugin
7c038d
%global __provides_exclude ^(%{privlibs})\\.so
7c038d
%global __requires_exclude ^(%{privlibs})\\.so
7c038d
15bd86
# LTO triggers a compilation error for a source level issue.  Given that LTO should not
15bd86
# change the validity of any given source and the nature of the error (undefined enum), I
15bd86
# suspect a generator program is mis-behaving in some way.  This needs further debugging,
15bd86
# until that's done, disable LTO.  This has to happen before setting the flags below.
15bd86
%define _lto_cflags %{nil}
15bd86
71ea0f
%global host_version 5.0.16
71ea0f
%global runtime_version 5.0.16
736817
%global aspnetcore_runtime_version %{runtime_version}
71ea0f
%global sdk_version 5.0.213
736817
%global templates_version %{runtime_version}
7c038d
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
7c038d
15bd86
%global host_rpm_version %{host_version}
15bd86
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
15bd86
%global runtime_rpm_version %{runtime_version}
15bd86
%global sdk_rpm_version %{sdk_version}
7c038d
7c038d
# upstream can update releases without revving the SDK version so these don't always match
59219d
%global src_version %{sdk_version}
7c038d
7c038d
%if 0%{?fedora} || 0%{?rhel} < 8
7c038d
%global use_bundled_libunwind 0
7c038d
%else
7c038d
%global use_bundled_libunwind 1
7c038d
%endif
7c038d
7c038d
%ifarch aarch64
7c038d
%global use_bundled_libunwind 1
7c038d
%endif
7c038d
7c038d
%ifarch x86_64
7c038d
%global runtime_arch x64
7c038d
%endif
7c038d
%ifarch aarch64
7c038d
%global runtime_arch arm64
7c038d
%endif
7c038d
15bd86
%{!?runtime_id:%global runtime_id %(. /etc/os-release ; echo "${ID}.${VERSION_ID%%.*}")-%{runtime_arch}}
7c038d
7c038d
Name:           dotnet5.0
7c038d
Version:        %{sdk_rpm_version}
ecf591
Release:        2%{?dist}
f1ee4f
Summary:        .NET Runtime and SDK
7c038d
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
7c038d
URL:            https://github.com/dotnet/
7c038d
68ffca
# The source is generated on a RHEL/Fedora box via:
7c038d
# ./build-dotnet-tarball v%%{src_version}-SDK
736817
Source0:        dotnet-v%{src_version}-SDK.tar.gz
7c038d
Source1:        check-debug-symbols.py
7c038d
Source2:        dotnet.sh.in
7c038d
0f3123
Patch1:         source-build-remove-test-references-from-patches.patch
0f3123
ecf591
Patch100:       runtime-62170-clang13.patch
ecf591
7c038d
# Disable telemetry by default; make it opt-in
7c038d
Patch500:       sdk-telemetry-optout.patch
7c038d
15bd86
%if 0%{?fedora} > 32 || 0%{?rhel} > 8
15bd86
ExclusiveArch:  aarch64 x86_64
15bd86
%else
7c038d
ExclusiveArch:  x86_64
15bd86
%endif
15bd86
7c038d
7c038d
BuildRequires:  clang
7c038d
BuildRequires:  cmake
7c038d
BuildRequires:  coreutils
385f53
BuildRequires:  dotnet-sdk-5.0
7c038d
%if %{without bootstrap}
600222
BuildRequires:  dotnet5.0-build-reference-packages
7c038d
BuildRequires:  dotnet-sdk-5.0-source-built-artifacts
7c038d
%endif
7c038d
BuildRequires:  findutils
7c038d
BuildRequires:  git
7c038d
%if 0%{?fedora} || 0%{?rhel} > 7
7c038d
BuildRequires:  glibc-langpack-en
7c038d
%endif
7c038d
BuildRequires:  hostname
7c038d
BuildRequires:  krb5-devel
7c038d
BuildRequires:  libcurl-devel
7c038d
BuildRequires:  libicu-devel
7c038d
%if ! %{use_bundled_libunwind}
7c038d
BuildRequires:  libunwind-devel
7c038d
%endif
7c038d
BuildRequires:  lldb-devel
7c038d
BuildRequires:  llvm
7c038d
BuildRequires:  lttng-ust-devel
7c038d
BuildRequires:  make
7c038d
BuildRequires:  openssl-devel
7c038d
BuildRequires:  python3
7c038d
BuildRequires:  systemtap-sdt-devel
7c038d
BuildRequires:  tar
7c038d
BuildRequires:  zlib-devel
7c038d
7c038d
%description
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, macOS and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
f1ee4f
.NET contains a runtime conforming to .NET Standards a set of
7c038d
framework libraries, an SDK containing compilers and a 'dotnet'
7c038d
application to drive everything.
7c038d
7c038d
7c038d
%package -n dotnet
7c038d
7c038d
Version:        %{sdk_rpm_version}
f1ee4f
Summary:        .NET CLI tools and runtime
7c038d
7c038d
Requires:       dotnet-sdk-5.0%{?_isa} >= %{sdk_rpm_version}-%{release}
7c038d
7c038d
%description -n dotnet
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, macOS and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
f1ee4f
.NET contains a runtime conforming to .NET Standards a set of
7c038d
framework libraries, an SDK containing compilers and a 'dotnet'
7c038d
application to drive everything.
7c038d
7c038d
7c038d
%package -n dotnet-host
7c038d
7c038d
Version:        %{host_rpm_version}
7c038d
Summary:        .NET command line launcher
7c038d
7c038d
%description -n dotnet-host
f1ee4f
The .NET host is a command line program that runs a standalone
f1ee4f
.NET application or launches the SDK.
7c038d
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%package -n dotnet-hostfxr-5.0
7c038d
7c038d
Version:        %{host_rpm_version}
f1ee4f
Summary:        .NET command line host resolver
7c038d
7c038d
# Theoretically any version of the host should work. But lets aim for the one
f1ee4f
# provided by this package, or from a newer version of .NET
7c038d
Requires:       dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
7c038d
7c038d
%description -n dotnet-hostfxr-5.0
f1ee4f
The .NET host resolver contains the logic to resolve and select
f1ee4f
the right version of the .NET SDK or runtime to use.
7c038d
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%package -n dotnet-runtime-5.0
7c038d
7c038d
Version:        %{runtime_rpm_version}
f1ee4f
Summary:        NET 5.0 runtime
7c038d
7c038d
Requires:       dotnet-hostfxr-5.0%{?_isa} >= %{host_rpm_version}-%{release}
7c038d
7c038d
# libicu is dlopen()ed
7c038d
Requires:       libicu%{?_isa}
7c038d
71ea0f
# See src/runtime.*/src/libraries/Native/AnyOS/brotli-version.txt
71ea0f
Provides:       bundled(brotli) = 1.0.9
7c038d
%if %{use_bundled_libunwind}
7c038d
Provides: bundled(libunwind) = 1.3
7c038d
%endif
7c038d
7c038d
%description -n dotnet-runtime-5.0
f1ee4f
The .NET runtime contains everything needed to run .NET applications.
7c038d
It includes a high performance Virtual Machine as well as the framework
f1ee4f
libraries used by .NET applications.
7c038d
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%package -n aspnetcore-runtime-5.0
7c038d
7c038d
Version:        %{aspnetcore_runtime_rpm_version}
7c038d
Summary:        ASP.NET Core 5.0 runtime
7c038d
7c038d
Requires:       dotnet-runtime-5.0%{?_isa} >= %{runtime_rpm_version}-%{release}
7c038d
7c038d
%description -n aspnetcore-runtime-5.0
f1ee4f
The ASP.NET Core runtime contains everything needed to run .NET
7c038d
web applications. It includes a high performance Virtual Machine as
f1ee4f
well as the framework libraries used by .NET applications.
7c038d
7c038d
ASP.NET Core is a fast, lightweight and modular platform for creating
7c038d
cross platform web applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%package -n dotnet-templates-5.0
7c038d
7c038d
Version:        %{sdk_rpm_version}
f1ee4f
Summary:        .NET 5.0 templates
7c038d
7c038d
# Theoretically any version of the host should work. But lets aim for the one
f1ee4f
# provided by this package, or from a newer version of .NET
7c038d
Requires:       dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
7c038d
7c038d
%description -n dotnet-templates-5.0
f1ee4f
This package contains templates used by the .NET SDK.
7c038d
f1ee4f
.NET is a fast, lightweight and modular platform for creating
f1ee4f
cross platform applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%package -n dotnet-sdk-5.0
7c038d
7c038d
Version:        %{sdk_rpm_version}
f1ee4f
Summary:        .NET 5.0 Software Development Kit
7c038d
7c038d
Provides:       bundled(js-jquery)
7c038d
Provides:       bundled(npm)
7c038d
7c038d
Requires:       dotnet-runtime-5.0%{?_isa} >= %{runtime_rpm_version}-%{release}
7c038d
Requires:       aspnetcore-runtime-5.0%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
7c038d
7c038d
Requires:       dotnet-apphost-pack-5.0%{?_isa} >= %{runtime_rpm_version}-%{release}
7c038d
Requires:       dotnet-targeting-pack-5.0%{?_isa} >= %{runtime_rpm_version}-%{release}
7c038d
Requires:       aspnetcore-targeting-pack-5.0%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
7c038d
Requires:       netstandard-targeting-pack-2.1%{?_isa} >= %{sdk_rpm_version}-%{release}
7c038d
7c038d
Requires:       dotnet-templates-5.0%{?_isa} >= %{sdk_rpm_version}-%{release}
7c038d
7c038d
%description -n dotnet-sdk-5.0
f1ee4f
The .NET SDK is a collection of command line applications to
f1ee4f
create, build, publish and run .NET applications.
7c038d
f1ee4f
.NET is a fast, lightweight and modular platform for creating
7c038d
cross platform applications that work on Linux, Mac and Windows.
7c038d
7c038d
It particularly focuses on creating console applications, web
7c038d
applications and micro-services.
7c038d
7c038d
7c038d
%global dotnet_targeting_pack() %{expand:
7c038d
%package -n %{1}
7c038d
7c038d
Version:        %{2}
7c038d
Summary:        Targeting Pack for %{3} %{4}
7c038d
7c038d
Requires:       dotnet-host%{?_isa}
7c038d
7c038d
%description -n %{1}
7c038d
This package provides a targeting pack for %{3} %{4}
7c038d
that allows developers to compile against and target %{3} %{4}
f1ee4f
applications using the .NET SDK.
7c038d
7c038d
%files -n %{1}
7c038d
%dir %{_libdir}/dotnet/packs
7c038d
%{_libdir}/dotnet/packs/%{5}
7c038d
}
7c038d
7c038d
%dotnet_targeting_pack dotnet-apphost-pack-5.0 %{runtime_rpm_version} Microsoft.NETCore.App 5.0 Microsoft.NETCore.App.Host.%{runtime_id}
7c038d
%dotnet_targeting_pack dotnet-targeting-pack-5.0 %{runtime_rpm_version} Microsoft.NETCore.App 5.0 Microsoft.NETCore.App.Ref
7c038d
%dotnet_targeting_pack aspnetcore-targeting-pack-5.0 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 5.0 Microsoft.AspNetCore.App.Ref
8227cd
#%%dotnet_targeting_pack netstandard-targeting-pack-2.1 %%{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref
7c038d
7c038d
7c038d
%package -n dotnet-sdk-5.0-source-built-artifacts
7c038d
7c038d
Version:        %{sdk_rpm_version}
f1ee4f
Summary:        Internal package for building .NET 5.0 Software Development Kit
7c038d
7c038d
%description -n dotnet-sdk-5.0-source-built-artifacts
f1ee4f
The .NET source-built archive is a collection of packages needed
f1ee4f
to build the .NET SDK itself.
7c038d
7c038d
These are not meant for general use.
7c038d
7c038d
7c038d
%prep
736817
%setup -q -n dotnet-v%{src_version}-SDK
7c038d
7c038d
%if %{without bootstrap}
7c038d
# Remove all prebuilts
7c038d
find -iname '*.dll' -type f -delete
7c038d
find -iname '*.so' -type f -delete
7c038d
find -iname '*.tar.gz' -type f -delete
7c038d
find -iname '*.nupkg' -type f -delete
7c038d
find -iname '*.zip' -type f -delete
7c038d
rm -rf .dotnet/
7c038d
rm -rf packages/source-built
7c038d
%endif
7c038d
7c038d
%if %{without bootstrap}
7c038d
mkdir -p packages/archive
7c038d
ln -s %{_libdir}/dotnet/source-built-artifacts/*.tar.gz packages/archive/
7c038d
ln -s %{_libdir}/dotnet/reference-packages/Private.SourceBuild.ReferencePackages*.tar.gz packages/archive
7c038d
%endif
7c038d
7c038d
# Fix bad hardcoded path in build
59219d
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/dotnet-runtime.*/src/installer/corehost/cli/hostmisc/pal.unix.cpp
7c038d
7c038d
# Disable warnings
7c038d
sed -i 's|skiptests|skiptests ignorewarnings|' repos/runtime.common.props
7c038d
0f3123
%patch1 -p1
0f3123
59219d
pushd src/dotnet-runtime.*
ecf591
%patch100 -p1
7c038d
popd
7c038d
59219d
pushd src/dotnet-sdk.*
7c038d
%patch500 -p1
7c038d
popd
7c038d
7c038d
%ifnarch x86_64
7c038d
mkdir -p artifacts/obj/%{runtime_arch}/Release
7c038d
cp artifacts/obj/x64/Release/PackageVersions.props artifacts/obj/%{runtime_arch}/Release/PackageVersions.props
7c038d
%endif
7c038d
7c038d
cat source-build-info.txt
7c038d
7c038d
find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;
7c038d
7c038d
7c038d
%build
7c038d
cat /etc/os-release
7c038d
385f53
cp -a %{_libdir}/dotnet previously-built-dotnet
7c038d
%if %{without bootstrap}
7c038d
# We need to create a copy because we will mutate this
7c038d
%endif
7c038d
15bd86
%if 0%{?fedora} > 32 || 0%{?rhel} > 8
15bd86
# Setting this macro ensures that only clang supported options will be
15bd86
# added to ldflags and cflags.
15bd86
%global toolchain clang
15bd86
%set_build_flags
15bd86
%else
15bd86
# Filter flags not supported by clang
15bd86
%global dotnet_cflags %(echo %optflags | sed -re 's/-specs=[^ ]*//g')
15bd86
%global dotnet_ldflags %(echo %{__global_ldflags} | sed -re 's/-specs=[^ ]*//g')
15bd86
export CFLAGS="%{dotnet_cflags}"
15bd86
export CXXFLAGS="%{dotnet_cflags}"
15bd86
export LDFLAGS="%{dotnet_ldflags}"
15bd86
%endif
15bd86
 
15bd86
%ifarch aarch64
15bd86
# -mbranch-protection=standard breaks unwinding in CoreCLR through libunwind
15bd86
CFLAGS=$(echo $CFLAGS | sed -e 's/-mbranch-protection=standard //')
15bd86
CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-mbranch-protection=standard //')
15bd86
%endif
15bd86
 
15bd86
# -fstack-clash-protection breaks CoreCLR
15bd86
CFLAGS=$(echo $CFLAGS  | sed -e 's/-fstack-clash-protection//' )
15bd86
CXXFLAGS=$(echo $CXXFLAGS  | sed -e 's/-fstack-clash-protection//' )
15bd86
15bd86
export EXTRA_CFLAGS="$CFLAGS"
15bd86
export EXTRA_CXXFLAGS="$CXXFLAGS"
15bd86
export EXTRA_LDFLAGS="$LDFLAGS"
15bd86
15bd86
unset CFLAGS
15bd86
unset CXXFLAGS
15bd86
unset LDFLAGS
7c038d
7c038d
#%%if %%{without bootstrap}
7c038d
#  --with-ref-packages %%{_libdir}/dotnet/reference-packages/ \
7c038d
#  --with-packages %%{_libdir}/dotnet/source-built-artifacts/*.tar.gz \
7c038d
#  --with-sdk %%{_libdir}/dotnet \
7c038d
#%%endif
7c038d
7c038d
VERBOSE=1 ./build.sh \
7c038d
    --with-sdk previously-built-dotnet \
385f53
%if %{without bootstrap}
7c038d
%endif
7c038d
    -- \
7c038d
    /v:n \
7c038d
    /p:SkipPortableRuntimeBuild=true \
7c038d
    /p:LogVerbosity=n \
7c038d
    /p:MinimalConsoleLogOutput=false \
7c038d
    /p:ContinueOnPrebuiltBaselineError=true \
15bd86
%if %{use_bundled_libunwind}
15bd86
    /p:UseSystemLibunwind=false \
15bd86
%else
15bd86
    /p:UseSystemLibunwind=true \
15bd86
%endif
7c038d
7c038d
7c038d
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE2} > dotnet.sh
7c038d
7c038d
7c038d
%install
7c038d
install -dm 0755 %{buildroot}%{_libdir}/dotnet
7c038d
ls artifacts/%{runtime_arch}/Release
f1ee4f
tar xf artifacts/%{runtime_arch}/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/
7c038d
7c038d
# Install managed symbols
7c038d
tar xf artifacts/%{runtime_arch}/Release/runtime/dotnet-runtime-symbols-%{runtime_version}-%{runtime_id}.tar.gz \
7c038d
    -C %{buildroot}/%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}/
7c038d
7c038d
# Fix executable permissions on files
15bd86
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.a' -exec chmod -x {} \;
7c038d
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
15bd86
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.h' -exec chmod -x {} \;
7c038d
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
7c038d
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
7c038d
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
7c038d
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
15bd86
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.xml' -exec chmod -x {} \;
7c038d
chmod 0755 %{buildroot}/%{_libdir}/dotnet/sdk/%{sdk_version}/AppHostTemplate/apphost
7c038d
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/apphost
f1ee4f
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/libnethost.so
7c038d
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/nethost.h
f1ee4f
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/singlefilehost
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/profile.d/
8227cd
#install dotnet.sh %%{buildroot}%%{_sysconfdir}/profile.d/
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
#install -dm 0755 %%{buildroot}/%%{_datadir}/bash-completion/completions
7c038d
# dynamic completion needs the file to be named the same as the base command
59219d
#install src/dotnet-sdk.*/scripts/register-completions.bash %%{buildroot}/%%{_datadir}/bash-completion/completions/dotnet
7c038d
7c038d
# TODO: the zsh completion script needs to be ported to use #compdef
7c038d
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
7c038d
#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
#install -dm 0755 %%{buildroot}%%{_bindir}
8227cd
#ln -s ../../%%{_libdir}/dotnet/dotnet %%{buildroot}%%{_bindir}/
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
#install -dm 0755 %%{buildroot}%%{_mandir}/man1/
8227cd
#find -iname 'dotnet*.1' -type f -exec cp {} %%{buildroot}%%{_mandir}/man1/ \;
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
#echo "%%{_libdir}/dotnet" >> install_location
8227cd
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/dotnet
8227cd
#install install_location %%{buildroot}%%{_sysconfdir}/dotnet/
7c038d
385f53
install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
385f53
install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
7c038d
7c038d
# Check debug symbols in all elf objects. This is not in %%check
7c038d
# because native binaries are stripped by rpm-build after %%install.
7c038d
# So we need to do this check earlier.
7c038d
echo "Testing build results for debug symbols..."
7c038d
%{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/
7c038d
8227cd
# Self-check
7c038d
%{buildroot}%{_libdir}/dotnet/dotnet --info
7c038d
8227cd
# Provided by dotnet-host from another SRPM
8227cd
rm %{buildroot}%{_libdir}/dotnet/LICENSE.txt
8227cd
rm %{buildroot}%{_libdir}/dotnet/ThirdPartyNotices.txt
8227cd
rm %{buildroot}%{_libdir}/dotnet/dotnet
7c038d
8227cd
# Provided by netstandard-targeting-pack-2.1 from another SRPM
8227cd
rm -rf %{buildroot}%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0
7c038d
7c038d
7c038d
%files -n dotnet-hostfxr-5.0
7c038d
%dir %{_libdir}/dotnet/host/fxr
7c038d
%{_libdir}/dotnet/host/fxr/%{host_version}
7c038d
7c038d
%files -n dotnet-runtime-5.0
7c038d
%dir %{_libdir}/dotnet/shared
7c038d
%dir %{_libdir}/dotnet/shared/Microsoft.NETCore.App
7c038d
%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}
7c038d
7c038d
%files -n aspnetcore-runtime-5.0
7c038d
%dir %{_libdir}/dotnet/shared
7c038d
%dir %{_libdir}/dotnet/shared/Microsoft.AspNetCore.App
7c038d
%{_libdir}/dotnet/shared/Microsoft.AspNetCore.App/%{aspnetcore_runtime_version}
7c038d
7c038d
%files -n dotnet-templates-5.0
7c038d
%dir %{_libdir}/dotnet/templates
7c038d
%{_libdir}/dotnet/templates/%{templates_version}
7c038d
7c038d
%files -n dotnet-sdk-5.0
7c038d
%dir %{_libdir}/dotnet/sdk
7c038d
%{_libdir}/dotnet/sdk/%{sdk_version}
7c038d
%dir %{_libdir}/dotnet/packs
7c038d
385f53
%files -n dotnet-sdk-5.0-source-built-artifacts
385f53
%dir %{_libdir}/dotnet
385f53
%{_libdir}/dotnet/source-built-artifacts
7c038d
7c038d
7c038d
%changelog
71ea0f
* Thu Apr 28 2022 Omair Majid <omajid@redhat.com> - 5.0.213-2
71ea0f
- Update to .NET SDK 5.0.213 and Runtime 5.0.16
71ea0f
- Resolves: RHBZ#2080053
71ea0f
e1f9a1
* Wed Mar 23 2022 Omair Majid <omajid@redhat.com> - 5.0.212-2
e1f9a1
- Update to .NET SDK 5.0.212 and Runtime 5.0.15
e1f9a1
- Resolves: RHBZ#2060495
e1f9a1
e1f9a1
* Wed Mar 23 2022 Omair Majid <omajid@redhat.com> - 5.0.211-1
e1f9a1
- Update to .NET SDK 5.0.211 and Runtime 5.0.14
e1f9a1
- Resolves: RHBZ#2047766
e1f9a1
ecf591
* Wed Jan 05 2022 Omair Majid <omajid@redhat.com> - 5.0.210-2
59219d
- Update to .NET SDK 5.0.210 and Runtime 5.0.13
ecf591
- Resolves: RHBZ#2030737
68ffca
ecf591
* Thu Dec 02 2021 Omair Majid <omajid@redhat.com> - 5.0.209-2
ecf591
- Bump release
ecf591
- Related: RHBZ#2011058
ecf591
- Related: RHBZ#2003078
68ffca
ecf591
* Sun Nov 21 2021 Omair Majid <omajid@redhat.com> - 5.0.209.1-1
ecf591
- Update to .NET SDK 5.0.209 and Runtime 5.0.12
ecf591
- Resolves: RHBZ#2024319
ecf591
- Resolves: RHBZ#2011058
ecf591
- Resolves: RHBZ#2003078
f359c8
7ef0f3
* Thu Aug 12 2021 Omair Majid <omajid@redhat.com> - 5.0.206-1
7ef0f3
- Update to .NET SDK 5.0.206 and Runtime 5.0.9
7ef0f3
- Resolves: RHBZ#1990940
7ef0f3
0f3123
* Tue Aug 10 2021 Omair Majid <omajid@redhat.com> - 5.0.205-1
0f3123
- Update to .NET SDK 5.0.205 and Runtime 5.0.8
0f3123
- Resolves: RHBZ#1985445
0f3123
600222
* Fri Jun 11 2021 Omair Majid <omajid@redhat.com> - 5.0.204-1
600222
- Update to .NET SDK 5.0.204 and Runtime 5.0.7
600222
- Resolves: RHBZ#1966164
600222
- Resolves: RHBZ#1966996
600222
600222
* Fri Jun 11 2021 Omair Majid <omajid@redhat.com> - 5.0.203-1
600222
- Update to .NET SDK 5.0.203 and Runtime 5.0.6
600222
- Resolves: RHBZ#1954327
600222
385f53
* Thu Apr 22 2021 Omair Majid <omajid@redhat.com> - 5.0.202-2
385f53
- Update to .NET SDK 5.0.202 and Runtime 5.0.5
385f53
- Create -source-built-artifacts subpackage
385f53
- Resolves: RHBZ#1947600
ad9f10
e379de
* Wed Feb 10 2021 Omair Majid <omajid@redhat.com> - 5.0.103-2
e379de
- Update to .NET SDK 5.0.103 and Runtime 5.0.3
e379de
- Resolves: RHBZ#1924762
e379de
736817
* Wed Jan 13 2021 Omair Majid <omajid@redhat.com> - 5.0.102-2
736817
- Update to .NET SDK 5.0.102 and Runtime 5.0.2
736817
- Resolves: RHBZ#1912569
736817
15bd86
* Thu Dec 03 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.10.20201203git337413b
15bd86
- Update to latest commit of .NET Core SDK 5.0.100 and Runtime 5.0.0
15bd86
- Resolves: RHBZ#1897362
15bd86
15bd86
* Thu Nov 12 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.9
15bd86
- Update to a work-in-progres .NET 5 GA build
15bd86
- Resolves: RHBZ#1897362
15bd86
15bd86
* Mon Oct 26 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.8.rc1
15bd86
- Bump version
15bd86
- Resolves: RHBZ#1891094
15bd86
15bd86
* Fri Oct 23 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.7.rc1
15bd86
- Update to .NET Core SDK 5.0.100 RC1 and Runtime 5.0.0 RC1
15bd86
- Resolves: RHBZ#1891094
15bd86
f1ee4f
* Tue Sep 15 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.6.preview8
f1ee4f
- Switch to a smaller tarball
f1ee4f
- Fix restore-with-rid
f1ee4f
- Resolves: RHBZ#1835019
f1ee4f
f1ee4f
* Mon Sep 14 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.5.preview8
f1ee4f
- Fix package descriptions
f1ee4f
- Fix permissions in installed files
f1ee4f
- Resolves: RHBZ#1835019
f1ee4f
f1ee4f
* Fri Sep 11 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.4.preview8
f1ee4f
- Update to .NET SDK 5.0 Preview 8
f1ee4f
- Remove "Core" from descriptions
f1ee4f
- Resolves: RHBZ#1835019
f1ee4f
473c39
* Fri Aug 21 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.3.preview4
473c39
- Generate new source tarball with test files removed.
473c39
- Resolves: RHBZ#1835019
473c39
7c038d
* Thu Aug 06 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.2.preview4
7c038d
- Backport cmake compatiblity fix
7c038d
7c038d
* Fri Jul 10 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.2.preview4
7c038d
- Fix building with custom CFLAGS/CXXFLAGS/LDFLAGS
7c038d
- Clean up patches
7c038d
7c038d
* Mon Jul 06 2020 Omair Majid <omajid@redhat.com> - 5.0.100-0.1.preview4
7c038d
- Initial build
7c038d
7c038d
* Sat Jun 27 2020 Omair Majid <omajid@redhat.com> - 3.1.105-4
7c038d
- Disable bootstrap
7c038d
7c038d
* Fri Jun 26 2020 Omair Majid <omajid@redhat.com> - 3.1.105-3
7c038d
- Re-bootstrap aarch64
7c038d
7c038d
* Fri Jun 19 2020 Omair Majid <omajid@redhat.com> - 3.1.105-3
7c038d
- Disable bootstrap
7c038d
7c038d
* Thu Jun 18 2020 Omair Majid <omajid@redhat.com> - 3.1.105-1
7c038d
- Bootstrap aarch64
7c038d
7c038d
* Tue Jun 16 2020 Chris Rummel <crummel@microsoft.com> - 3.1.105-1
7c038d
- Update to .NET Core Runtime 3.1.5 and SDK 3.1.105
7c038d
7c038d
* Fri Jun 05 2020 Chris Rummel <crummel@microsoft.com> - 3.1.104-1
7c038d
- Update to .NET Core Runtime 3.1.4 and SDK 3.1.104
7c038d
7c038d
* Thu Apr 09 2020 Chris Rummel <crummel@microsoft.com> - 3.1.103-1
7c038d
- Update to .NET Core Runtime 3.1.3 and SDK 3.1.103
7c038d
7c038d
* Mon Mar 16 2020 Omair Majid <omajid@redhat.com> - 3.1.102-1
7c038d
- Update to .NET Core Runtime 3.1.2 and SDK 3.1.102
7c038d
7c038d
* Fri Feb 28 2020 Omair Majid <omajid@redhat.com> - 3.1.101-4
7c038d
- Disable bootstrap
7c038d
7c038d
* Fri Feb 28 2020 Omair Majid <omajid@redhat.com> - 3.1.101-3
7c038d
- Enable bootstrap
7c038d
- Add Fedora 33 runtime ids
7c038d
7c038d
* Thu Feb 27 2020 Omair Majid <omajid@redhat.com> - 3.1.101-2
7c038d
- Disable bootstrap
7c038d
7c038d
* Tue Jan 21 2020 Omair Majid <omajid@redhat.com> - 3.1.101-1
7c038d
- Update to .NET Core Runtime 3.1.1 and SDK 3.1.101
7c038d
7c038d
* Thu Dec 05 2019 Omair Majid <omajid@redhat.com> - 3.1.100-1
7c038d
- Update to .NET Core Runtime 3.1.0 and SDK 3.1.100
7c038d
7c038d
* Mon Nov 18 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.4.preview3
7c038d
- Fix apphost permissions
7c038d
7c038d
* Fri Nov 15 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.3.preview3
7c038d
- Update to .NET Core Runtime 3.1.0-preview3.19553.2 and SDK
7c038d
  3.1.100-preview3-014645
7c038d
7c038d
* Wed Nov 06 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.2
7c038d
- Update to .NET Core 3.1 Preview 2
7c038d
7c038d
* Wed Oct 30 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.1
7c038d
- Update to .NET Core 3.1 Preview 1
7c038d
7c038d
* Thu Oct 24 2019 Omair Majid <omajid@redhat.com> - 3.0.100-5
7c038d
- Add cgroupv2 support to .NET Core
7c038d
7c038d
* Wed Oct 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-4
7c038d
- Include fix from coreclr for building on Fedora 32
7c038d
7c038d
* Wed Oct 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-3
7c038d
- Harden built binaries to pass annocheck
7c038d
7c038d
* Fri Oct 11 2019 Omair Majid <omajid@redhat.com> - 3.0.100-2
7c038d
- Export DOTNET_ROOT in profile to make apphost lookup work
7c038d
7c038d
* Fri Sep 27 2019 Omair Majid <omajid@redhat.com> - 3.0.100-1
7c038d
- Update to .NET Core Runtime 3.0.0 and SDK 3.0.100
7c038d
7c038d
* Wed Sep 25 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.18.rc1
7c038d
- Update to .NET Core Runtime 3.0.0-rc1-19456-20 and SDK 3.0.100-rc1-014190
7c038d
7c038d
* Tue Sep 17 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.16.preview9
7c038d
- Fix files duplicated between dotnet-apphost-pack-3.0 and dotnet-targeting-pack-3.0
7c038d
- Fix dependencies between .NET SDK and the targeting packs
7c038d
7c038d
* Mon Sep 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.15.preview9
7c038d
- Update to .NET Core Runtime 3.0.0-preview 9 and SDK 3.0.100-preview9
7c038d
7c038d
* Mon Aug 19 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.11.preview8
7c038d
- Update to .NET Core Runtime 3.0.0-preview8-28405-07 and SDK
7c038d
  3.0.100-preview8-013656
7c038d
7c038d
* Tue Jul 30 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.9.preview7
7c038d
- Update to .NET Core Runtime 3.0.0-preview7-27912-14 and SDK
7c038d
  3.0.100-preview7-012821
7c038d
7c038d
* Fri Jul 26 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.8.preview7
7c038d
- Update to .NET Core Runtime 3.0.0-preview7-27902-19 and SDK
7c038d
  3.0.100-preview7-012802
7c038d
7c038d
* Wed Jun 26 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.7.preview6
7c038d
- Obsolete dotnet-sdk-3.0.1xx
7c038d
- Add supackages for targeting packs
7c038d
- Add -fcf-protection to CFLAGS
7c038d
7c038d
* Wed Jun 26 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.6.preview6
7c038d
- Update to .NET Core Runtime 3.0.0-preview6-27804-01 and SDK 3.0.100-preview6-012264
7c038d
- Set dotnet installation location in /etc/dotnet/install_location
7c038d
- Update targeting packs
7c038d
- Install managed symbols
7c038d
- Completely conditionalize libunwind bundling
7c038d
7c038d
* Tue May 07 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.3.preview4
7c038d
- Update to .NET Core 3.0 preview 4
7c038d
7c038d
* Tue Dec 18 2018 Omair Majid <omajid@redhat.com> - 3.0.0-0.1.preview1
7c038d
- Update to .NET Core 3.0 preview 1
7c038d
7c038d
* Fri Dec 07 2018 Omair Majid <omajid@redhat.com> - 2.2.100
7c038d
- Update to .NET Core 2.2.0
7c038d
7c038d
* Wed Nov 07 2018 Omair Majid <omajid@redhat.com> - 2.2.100-0.2.preview3
7c038d
- Update to .NET Core 2.2.0-preview3
7c038d
7c038d
* Fri Nov 02 2018 Omair Majid <omajid@redhat.com> - 2.1.403-3
7c038d
- Add host-fxr-2.1 subpackage
7c038d
7c038d
* Mon Oct 15 2018 Omair Majid <omajid@redhat.com> - 2.1.403-2
7c038d
- Disable telemetry by default
7c038d
- Users have to manually export DOTNET_CLI_TELEMETRY_OPTOUT=0 to enable
7c038d
7c038d
* Tue Oct 02 2018 Omair Majid <omajid@redhat.com> - 2.1.403-1
7c038d
- Update to .NET Core Runtime 2.1.5 and SDK 2.1.403
7c038d
7c038d
* Wed Sep 26 2018 Omair Majid <omajid@redhat.com> - 2.1.402-2
7c038d
- Add ~/.dotnet/tools to $PATH to make it easier to use dotnet tools
7c038d
7c038d
* Thu Sep 13 2018 Omair Majid <omajid@redhat.com> - 2.1.402-1
7c038d
- Update to .NET Core Runtime 2.1.4 and SDK 2.1.402
7c038d
7c038d
* Wed Sep 05 2018 Omair Majid <omajid@redhat.com> - 2.1.401-2
7c038d
- Use distro-standard flags when building .NET Core
7c038d
7c038d
* Tue Aug 21 2018 Omair Majid <omajid@redhat.com> - 2.1.401-1
7c038d
- Update to .NET Core Runtime 2.1.3 and SDK 2.1.401
7c038d
7c038d
* Mon Aug 20 2018 Omair Majid <omajid@redhat.com> - 2.1.302-1
7c038d
- Update to .NET Core Runtime 2.1.2 and SDK 2.1.302
7c038d
7c038d
* Fri Jul 20 2018 Omair Majid <omajid@redhat.com> - 2.1.301-1
7c038d
- Update to .NET Core 2.1
7c038d
7c038d
* Thu May 03 2018 Omair Majid <omajid@redhat.com> - 2.0.7-1
7c038d
- Update to .NET Core 2.0.7
7c038d
7c038d
* Wed Mar 28 2018 Omair Majid <omajid@redhat.com> - 2.0.6-2
7c038d
- Enable bash completion for dotnet
7c038d
- Remove redundant buildrequires and requires
7c038d
7c038d
* Wed Mar 14 2018 Omair Majid <omajid@redhat.com> - 2.0.6-1
7c038d
- Update to .NET Core 2.0.6
7c038d
7c038d
* Fri Feb 23 2018 Omair Majid <omajid@redhat.com> - 2.0.5-1
7c038d
- Update to .NET Core 2.0.5
7c038d
7c038d
* Wed Jan 24 2018 Omair Majid <omajid@redhat.com> - 2.0.3-5
7c038d
- Don't apply corefx clang warnings fix on clang < 5
7c038d
7c038d
* Fri Jan 19 2018 Omair Majid <omajid@redhat.com> - 2.0.3-4
7c038d
- Add a test script to sanity check debug and symbol info.
7c038d
- Build with clang 5.0
7c038d
- Make main package real instead of using a virtual provides (see RHBZ 1519325)
7c038d
7c038d
* Wed Nov 29 2017 Omair Majid <omajid@redhat.com> - 2.0.3-3
7c038d
- Add a Provides for 'dotnet'
7c038d
- Fix conditional macro
7c038d
7c038d
* Tue Nov 28 2017 Omair Majid <omajid@redhat.com> - 2.0.3-2
7c038d
- Fix build on Fedora 27
7c038d
7c038d
* Fri Nov 17 2017 Omair Majid <omajid@redhat.com> - 2.0.3-1
7c038d
- Update to .NET Core 2.0.3
7c038d
7c038d
* Thu Oct 19 2017 Omair Majid <omajid@redhat.com> - 2.0.0-4
7c038d
- Add a hack to let omnisharp work
7c038d
7c038d
* Wed Aug 30 2017 Omair Majid <omajid@redhat.com> - 2.0.0-3
7c038d
- Add a patch for building coreclr and core-setup correctly on Fedora >= 27
7c038d
7c038d
* Fri Aug 25 2017 Omair Majid <omajid@redhat.com> - 2.0.0-2
7c038d
- Move libicu/libcurl/libunwind requires to runtime package
7c038d
- Make sdk depend on the exact version of the runtime package
7c038d
7c038d
* Thu Aug 24 2017 Omair Majid <omajid@redhat.com> - 2.0.0-1
7c038d
- Update to 2.0.0 final release
7c038d
7c038d
* Wed Jul 26 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.3.preview2
7c038d
- Add man pages
7c038d
7c038d
* Tue Jul 25 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.2.preview2
7c038d
- Add Requires on libicu
7c038d
- Split into multiple packages
7c038d
- Do not repeat first-run message
7c038d
7c038d
* Fri Jul 21 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.1.preview2
7c038d
- Update to .NET Core 2.0 Preview 2
7c038d
7c038d
* Thu Mar 16 2017 Nemanja Milošević <nmilosevnm@gmail.com> - 1.1.0-7
7c038d
- rebuilt with latest libldb
7c038d
* Wed Feb 22 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-6
7c038d
- compat-openssl 1.0 for F26 for now
7c038d
* Sun Feb 19 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-5
7c038d
- Fix wrong commit id's
7c038d
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-4
7c038d
- Use commit id's instead of branch names
7c038d
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-3
7c038d
- Improper patch5 fix
7c038d
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-2
7c038d
- SPEC cleanup
7c038d
- git removal (using all tarballs for reproducible builds)
7c038d
- more reasonable versioning
7c038d
* Thu Feb 09 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-1
7c038d
- Fixed debuginfo going to separate package (Patch1)
7c038d
- Added F25/F26 RIL and fixed the version info (Patch2)
7c038d
- Added F25/F26 RIL in Microsoft.NETCore.App suported runtime graph (Patch3)
7c038d
- SPEC file cleanup
7c038d
* Wed Jan 11 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-0
7c038d
- Initial RPM for Fedora 25/26.