Blame SPECS/dotnet5.0.spec

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