Blame SPECS/dotnet3.1.spec

f64027
%bcond_with bootstrap
17f982
af9764
# Avoid provides/requires from private libraries
af9764
%global privlibs             libhostfxr
af9764
%global privlibs %{privlibs}|libclrjit
af9764
%global privlibs %{privlibs}|libcoreclr
af9764
%global privlibs %{privlibs}|libcoreclrtraceptprovider
af9764
%global privlibs %{privlibs}|libdbgshim
af9764
%global privlibs %{privlibs}|libhostpolicy
af9764
%global privlibs %{privlibs}|libmscordaccore
af9764
%global privlibs %{privlibs}|libmscordbi
af9764
%global privlibs %{privlibs}|libsos
af9764
%global privlibs %{privlibs}|libsosplugin
af9764
%global __provides_exclude ^(%{privlibs})\\.so
af9764
%global __requires_exclude ^(%{privlibs})\\.so
af9764
af9764
# Filter flags not supported by clang/dotnet:
af9764
#  -fstack-clash-protection is not supported by clang
af9764
#  -specs= is not supported by clang
af9764
%global dotnet_cflags %(echo %optflags | sed -e 's/-fstack-clash-protection//' | sed -re 's/-specs=[^ ]*//g')
ee0a20
%if 0%{?fedora} < 30 && ! 0%{?rhel}
af9764
# on Fedora 29, clang, -fcf-protection and binutils interact in strage ways leading to
af9764
# "<corrupt x86 feature size: 0x8>" errors.
af9764
%global dotnet_cflags %(echo %dotnet_cflags | sed -e 's/ -fcf-protection//')
af9764
%endif
af9764
%global dotnet_ldflags %(echo %{__global_ldflags} | sed -re 's/-specs=[^ ]*//g')
af9764
d2cf4c
%global host_version 3.1.27
d2cf4c
%global runtime_version 3.1.27
af9764
%global aspnetcore_runtime_version %{runtime_version}
d2cf4c
%global sdk_version 3.1.421
af9764
%global templates_version %(echo %{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
af9764
af9764
%global host_rpm_version %{host_version}
af9764
%global runtime_rpm_version %{runtime_version}
af9764
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
af9764
%global sdk_rpm_version %{sdk_version}
af9764
af9764
%if 0%{?fedora} || 0%{?rhel} < 8
af9764
%global use_bundled_libunwind 0
af9764
%else
af9764
%global use_bundled_libunwind 1
af9764
%endif
af9764
af9764
%ifarch x86_64
af9764
%global runtime_arch x64
af9764
%endif
af9764
%ifarch aarch64
af9764
%global runtime_arch arm64
af9764
%endif
af9764
af9764
%if 0%{?fedora}
af9764
%global runtime_id fedora.%{fedora}-%{runtime_arch}
af9764
%else
af9764
%if 0%{?centos}
af9764
%global runtime_id centos.%{centos}-%{runtime_arch}
af9764
%else
af9764
%global runtime_id rhel.%{rhel}-%{runtime_arch}
af9764
%endif
af9764
%endif
af9764
af9764
Name:           dotnet3.1
af9764
Version:        %{sdk_rpm_version}
d2cf4c
Release:        2%{?dist}
af9764
Summary:        .NET Core CLI tools and runtime
af9764
License:        MIT and ASL 2.0 and BSD
af9764
URL:            https://github.com/dotnet/
af9764
af9764
# ./build-dotnet-tarball dotnet-v%%{sdk_version}-SDK
f64027
Source0:        dotnet-v%{sdk_version}-SDK.tar.gz
f64027
#Source0:        dotnet-v%%{sdk_version}-SDK-x64-bootstrap.tar.gz
af9764
af9764
Source100:      check-debug-symbols.py
af9764
Source101:      dotnet.sh.in
af9764
17f982
Patch1:         source-build-ilasm-ildasm-path-fix.patch
17f982
af9764
Patch100:       corefx-optflags-support.patch
af9764
Patch103:       corefx-39633-cgroupv2-mountpoints.patch
af9764
af9764
Patch200:       coreclr-27048-sysctl-deprecation.patch
17f982
# Already applied at tarball build time
c344d0
#Patch201:       coreclr-libunwind-fno-common.patch
af9764
af9764
Patch300:       core-setup-do-not-strip.patch
937df4
Patch301:       core-setup-no-werror.patch
af9764
af9764
Patch500:       cli-telemetry-optout.patch
af9764
af9764
ExclusiveArch:  x86_64
af9764
af9764
BuildRequires:  clang
af9764
BuildRequires:  cmake
af9764
BuildRequires:  coreutils
17f982
%if %{without bootstrap}
17f982
BuildRequires:  dotnet-build-reference-packages
17f982
BuildRequires:  dotnet-sdk-3.1
17f982
BuildRequires:  dotnet-sdk-3.1-source-built-artifacts
17f982
%endif
af9764
BuildRequires:  git
af9764
%if 0%{?fedora} || 0%{?rhel} > 7
af9764
BuildRequires:  glibc-langpack-en
af9764
%endif
af9764
BuildRequires:  hostname
af9764
BuildRequires:  krb5-devel
af9764
BuildRequires:  libcurl-devel
af9764
BuildRequires:  libicu-devel
af9764
%if ! %{use_bundled_libunwind}
af9764
BuildRequires:  libunwind-devel
af9764
%endif
af9764
BuildRequires:  lldb-devel
af9764
BuildRequires:  llvm
af9764
BuildRequires:  lttng-ust-devel
af9764
BuildRequires:  openssl-devel
af9764
BuildRequires:  python3
af9764
BuildRequires:  tar
af9764
BuildRequires:  zlib-devel
af9764
af9764
%description
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, macOS and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
.NET Core contains a runtime conforming to .NET Standards a set of
af9764
framework libraries, an SDK containing compilers and a 'dotnet'
af9764
application to drive everything.
af9764
af9764
af9764
%package -n dotnet
af9764
af9764
Version:        %{sdk_rpm_version}
af9764
Summary:        .NET Core CLI tools and runtime
af9764
af9764
Requires:       dotnet-sdk-3.1%{?_isa} >= %{sdk_rpm_version}-%{release}
af9764
af9764
%description -n dotnet
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, macOS and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
.NET Core contains a runtime conforming to .NET Standards a set of
af9764
framework libraries, an SDK containing compilers and a 'dotnet'
af9764
application to drive everything.
af9764
af9764
af9764
%package -n dotnet-host
af9764
af9764
Version:        %{host_rpm_version}
af9764
Summary:        .NET command line launcher
af9764
af9764
%description -n dotnet-host
af9764
The .NET Core host is a command line program that runs a standalone
af9764
.NET core application or launches the SDK.
af9764
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%package -n dotnet-hostfxr-3.1
af9764
af9764
Version:        %{host_rpm_version}
af9764
Summary:        .NET Core command line host resolver
af9764
af9764
# Theoretically any version of the host should work. But lets aim for the one
af9764
# provided by this package, or from a newer version of .NET Core
af9764
Requires:       dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
af9764
af9764
%description -n dotnet-hostfxr-3.1
af9764
The .NET Core host resolver contains the logic to resolve and select
af9764
the right version of the .NET Core SDK or runtime to use.
af9764
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%package -n dotnet-runtime-3.1
af9764
af9764
Version:        %{runtime_rpm_version}
af9764
Summary:        NET Core 3.1 runtime
af9764
af9764
Requires:       dotnet-hostfxr-3.1%{?_isa} >= %{host_rpm_version}-%{release}
af9764
af9764
# libicu is dlopen()ed
af9764
Requires:       libicu
af9764
c344d0
# See src/corefx.*/src/Native/AnyOS/brotli-version.txt
c344d0
Provides: bundled(libbrotli) = 1.0.9
af9764
%if %{use_bundled_libunwind}
af9764
Provides: bundled(libunwind) = 1.3
af9764
%endif
af9764
af9764
%description -n dotnet-runtime-3.1
af9764
The .NET Core runtime contains everything needed to run .NET Core applications.
af9764
It includes a high performance Virtual Machine as well as the framework
af9764
libraries used by .NET Core applications.
af9764
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%package -n aspnetcore-runtime-3.1
af9764
af9764
Version:        %{aspnetcore_runtime_rpm_version}
af9764
Summary:        ASP.NET Core 3.1 runtime
af9764
af9764
Requires:       dotnet-runtime-3.1%{?_isa} >= %{runtime_rpm_version}-%{release}
af9764
af9764
%description -n aspnetcore-runtime-3.1
af9764
The ASP.NET Core runtime contains everything needed to run .NET Core
af9764
web applications. It includes a high performance Virtual Machine as
af9764
well as the framework libraries used by .NET Core applications.
af9764
af9764
ASP.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform web applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%package -n dotnet-templates-3.1
af9764
af9764
Version:        %{sdk_rpm_version}
af9764
Summary:        .NET Core 3.1 templates
af9764
af9764
# Theoretically any version of the host should work. But lets aim for the one
af9764
# provided by this package, or from a newer version of .NET Core
af9764
Requires:       dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
af9764
af9764
%description -n dotnet-templates-3.1
af9764
This package contains templates used by the .NET Core SDK.
af9764
af9764
ASP.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform web applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%package -n dotnet-sdk-3.1
af9764
af9764
Version:        %{sdk_rpm_version}
af9764
Summary:        .NET Core 3.1 Software Development Kit
af9764
af9764
Requires:       dotnet-runtime-3.1%{?_isa} >= %{runtime_rpm_version}-%{release}
af9764
Requires:       aspnetcore-runtime-3.1%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
af9764
af9764
Requires:       dotnet-apphost-pack-3.1%{?_isa} >= %{runtime_rpm_version}-%{release}
af9764
Requires:       dotnet-targeting-pack-3.1%{?_isa} >= %{runtime_rpm_version}-%{release}
af9764
Requires:       aspnetcore-targeting-pack-3.1%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
af9764
Requires:       netstandard-targeting-pack-2.1%{?_isa} >= %{sdk_rpm_version}-%{release}
af9764
af9764
Requires:       dotnet-templates-3.1%{?_isa} >= %{sdk_rpm_version}-%{release}
af9764
af9764
%description -n dotnet-sdk-3.1
af9764
The .NET Core SDK is a collection of command line applications to
af9764
create, build, publish and run .NET Core applications.
af9764
af9764
.NET Core is a fast, lightweight and modular platform for creating
af9764
cross platform applications that work on Linux, Mac and Windows.
af9764
af9764
It particularly focuses on creating console applications, web
af9764
applications and micro-services.
af9764
af9764
af9764
%define dotnet_targeting_pack() %{expand:
af9764
%package -n %{1}
af9764
af9764
Version:        %{2}
af9764
Summary:        Targeting Pack for %{3} %{4}
af9764
af9764
Requires:       dotnet-host
af9764
af9764
%description -n %{1}
af9764
This package provides a targetting pack for %{3} %{4}
af9764
that allows developers to compile against and target %{3} %{4}
af9764
applications using the .NET Core SDK.
af9764
af9764
%files -n %{1}
af9764
%dir %{_libdir}/dotnet/packs
af9764
%{_libdir}/dotnet/packs/%{5}
af9764
}
af9764
af9764
%dotnet_targeting_pack dotnet-apphost-pack-3.1 %{runtime_rpm_version} Microsoft.NETCore.App 3.1 Microsoft.NETCore.App.Host.%{runtime_id}
af9764
%dotnet_targeting_pack dotnet-targeting-pack-3.1 %{runtime_rpm_version} Microsoft.NETCore.App 3.1 Microsoft.NETCore.App.Ref
af9764
%dotnet_targeting_pack aspnetcore-targeting-pack-3.1 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 3.1 Microsoft.AspNetCore.App.Ref
ea6f56
#%%dotnet_targeting_pack netstandard-targeting-pack-2.1 %%{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref
af9764
7fddea
%package -n dotnet-sdk-3.1-source-built-artifacts
7fddea
7fddea
Version:        %{sdk_rpm_version}
7fddea
Summary:        Internal package for building .NET Core 3.1 Software Development Kit
7fddea
7fddea
%description -n dotnet-sdk-3.1-source-built-artifacts
7fddea
The .NET Core source-built archive is a collection of packages needed
7fddea
to build the .NET Core SDK itself.
7fddea
7fddea
These are not meant for general use.
7fddea
af9764
af9764
%prep
b9bbf6
%if %{with bootstrap}
b9bbf6
af9764
%ifarch x86_64
b9bbf6
%setup T -b0 -q -n dotnet-v%{sdk_version}-SDK-%{runtime_arch}-bootstrap
af9764
%endif
af9764
%ifarch aarch64
b9bbf6
%setup T -b1 -q -n dotnet-v%{sdk_version}-SDK-%{runtime_arch}-bootstrap
b9bbf6
%endif
b9bbf6
b9bbf6
%else
b9bbf6
%setup -q -n dotnet-v%{sdk_version}-SDK
af9764
%endif
af9764
17f982
%if %{without bootstrap}
17f982
# Remove all prebuilts
17f982
find -iname '*.dll' -type f -delete
17f982
find -iname '*.so' -type f -delete
17f982
find -iname '*.tar.gz' -type f -delete
17f982
find -iname '*.nupkg' -type f -delete
17f982
find -iname '*.zip' -type f -delete
17f982
rm -rf .dotnet/
17f982
rm -rf packages/source-built
17f982
%endif
17f982
17f982
%if %{without bootstrap}
17f982
mkdir -p packages/archive
17f982
ln -s %{_libdir}/dotnet/source-built-artifacts/*.tar.gz packages/archive/
17f982
ln -s %{_libdir}/dotnet/reference-packages/Private.SourceBuild.ReferencePackages*.tar.gz packages/archive
17f982
%endif
17f982
af9764
# Fix bad hardcoded path in build
c344d0
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/dotnet-core-setup.*/src/corehost/common/pal.unix.cpp
af9764
af9764
# Disable warnings
af9764
sed -i 's|skiptests|skiptests ignorewarnings|' repos/coreclr.common.props
af9764
17f982
%patch1 -p1
17f982
c344d0
pushd src/dotnet-corefx.*
af9764
%patch100 -p1
af9764
%patch103 -p1
af9764
popd
af9764
c344d0
pushd src/dotnet-coreclr.*
af9764
%patch200 -p1
c344d0
#%%patch201 -p1
af9764
popd
af9764
c344d0
pushd src/dotnet-core-setup.*
af9764
%patch300 -p1
937df4
%patch301 -p1
af9764
popd
af9764
c344d0
pushd src/dotnet-cli.*
af9764
%patch500 -p1
af9764
popd
af9764
af9764
# If CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE is misisng, add it back
af9764
grep CLR_CMAKE_USE_SYSTEM_LIBUNWIND repos/coreclr.common.props || \
af9764
    sed -i 's|\$(BuildArguments) </BuildArguments>|$(BuildArguments) cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE</BuildArguments>|' repos/coreclr.common.props
af9764
af9764
%if %{use_bundled_libunwind}
af9764
sed -i 's|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=FALSE|' repos/coreclr.common.props
af9764
%endif
af9764
af9764
cat source-build-info.txt
af9764
af9764
find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;
af9764
af9764
af9764
%build
af9764
cat /etc/os-release
af9764
17f982
%if %{without bootstrap}
17f982
# We need to create a copy because we will mutate this
17f982
cp -a %{_libdir}/dotnet previously-built-dotnet
17f982
%endif
17f982
af9764
export CFLAGS="%{dotnet_cflags}"
af9764
export CXXFLAGS="%{dotnet_cflags}"
af9764
export LDFLAGS="%{dotnet_ldflags}"
af9764
af9764
VERBOSE=1 ./build.sh \
17f982
%if %{without bootstrap}
17f982
    --with-sdk previously-built-dotnet \
17f982
%endif
17f982
    -- \
17f982
    /v:n \
17f982
    /p:SkipPortableRuntimeBuild=true \
17f982
    /p:LogVerbosity=n \
17f982
    /p:MinimalConsoleLogOutput=false \
17f982
    /p:ContinueOnPrebuiltBaselineError=true \
af9764
af9764
af9764
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE101} > dotnet.sh
af9764
af9764
af9764
%install
af9764
install -dm 0755 %{buildroot}%{_libdir}/dotnet
17f982
find artifacts/%{runtime_arch}/Release
5eaed3
tar xf artifacts/%{runtime_arch}/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/
af9764
af9764
# Install managed symbols
5eaed3
tar xf artifacts/%{runtime_arch}/Release/runtime/dotnet-runtime-symbols-%{runtime_version}-%{runtime_id}.tar.gz \
af9764
    -C %{buildroot}/%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}/
af9764
af9764
# Fix executable permissions on files
af9764
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
af9764
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
af9764
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
af9764
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
af9764
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
af9764
chmod 0755 %{buildroot}/%{_libdir}/dotnet/sdk/%{sdk_version}/AppHostTemplate/apphost
131807
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.10/data/FrameworkList.xml
131807
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.10/data/PackageOverrides.txt
131807
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.10/data/PlatformManifest.txt
131807
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.10/ref/netcoreapp3.1/*.xml
af9764
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/nethost.h
af9764
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.1.0/data/FrameworkList.xml
ea6f56
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.1.0/data/PackageOverrides.txt
af9764
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.1.0/data/PlatformManifest.txt
af9764
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/FrameworkList.xml
ea6f56
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/PackageOverrides.txt
ea6f56
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/apphost
ea6f56
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/libnethost.so
5eaed3
4b783a
# Provided by dotnet-host from another SRPM
d2cf4c
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/profile.d/
d2cf4c
#install dotnet.sh %%{buildroot}%%{_sysconfdir}/profile.d/
af9764
4b783a
# Provided by dotnet-host from another SRPM
4b783a
#install -dm 0755 %%{buildroot}/%%{_datadir}/bash-completion/completions
af9764
# dynamic completion needs the file to be named the same as the base command
c344d0
#install src/dotnet-cli.*/scripts/register-completions.bash %%{buildroot}/%%{_datadir}/bash-completion/completions/dotnet
af9764
af9764
# TODO: the zsh completion script needs to be ported to use #compdef
af9764
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
c344d0
#install src/dotnet-cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet
af9764
4b783a
# Provided by dotnet-host from another SRPM
4b783a
#install -dm 0755 %%{buildroot}%%{_bindir}
4b783a
#ln -s ../../%%{_libdir}/dotnet/dotnet %%{buildroot}%%{_bindir}/
af9764
4b783a
# Provided by dotnet-host from another SRPM
4b783a
#install -dm 0755 %%{buildroot}%%{_mandir}/man1/
4b783a
#find -iname 'dotnet*.1' -type f -exec cp {} %%{buildroot}%%{_mandir}/man1/ \;
af9764
4b783a
# Provided by dotnet-host from another SRPM
4b783a
#echo "%%{_libdir}/dotnet" >> install_location
4b783a
#install -dm 0755 %%{buildroot}%%{_sysconfdir}/dotnet
4b783a
#install install_location %%{buildroot}%%{_sysconfdir}/dotnet/
af9764
7fddea
install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
7fddea
install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/
7fddea
af9764
# Check debug symbols in all elf objects. This is not in %%check
af9764
# because native binaries are stripped by rpm-build after %%install.
af9764
# So we need to do this check earlier.
af9764
echo "Testing build results for debug symbols..."
af9764
%{SOURCE100} -v %{buildroot}%{_libdir}/dotnet/
af9764
4b783a
# Self-check
af9764
%{buildroot}%{_libdir}/dotnet/dotnet --info
af9764
4b783a
# Provided by dotnet-host from another SRPM
4b783a
rm %{buildroot}%{_libdir}/dotnet/LICENSE.txt
4b783a
rm %{buildroot}%{_libdir}/dotnet/ThirdPartyNotices.txt
4b783a
rm %{buildroot}%{_libdir}/dotnet/dotnet
af9764
ea6f56
# Provided by netstandard-targeting-pack-2.1 from another SRPM
ea6f56
rm -rf %{buildroot}%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0
ea6f56
af9764
%files -n dotnet-hostfxr-3.1
af9764
%dir %{_libdir}/dotnet/host/fxr
af9764
%{_libdir}/dotnet/host/fxr/%{host_version}
af9764
af9764
%files -n dotnet-runtime-3.1
af9764
%dir %{_libdir}/dotnet/shared
af9764
%dir %{_libdir}/dotnet/shared/Microsoft.NETCore.App
af9764
%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}
af9764
af9764
%files -n aspnetcore-runtime-3.1
af9764
%dir %{_libdir}/dotnet/shared
af9764
%dir %{_libdir}/dotnet/shared/Microsoft.AspNetCore.App
af9764
%{_libdir}/dotnet/shared/Microsoft.AspNetCore.App/%{aspnetcore_runtime_version}
af9764
af9764
%files -n dotnet-templates-3.1
af9764
%dir %{_libdir}/dotnet/templates
af9764
%{_libdir}/dotnet/templates/%{templates_version}
af9764
af9764
%files -n dotnet-sdk-3.1
af9764
%dir %{_libdir}/dotnet/sdk
af9764
%{_libdir}/dotnet/sdk/%{sdk_version}
af9764
%dir %{_libdir}/dotnet/packs
af9764
7fddea
%files -n dotnet-sdk-3.1-source-built-artifacts
7fddea
%dir %{_libdir}/dotnet
7fddea
%{_libdir}/dotnet/source-built-artifacts
7fddea
af9764
%changelog
d2cf4c
* Thu Jul 21 2022 Omair Majid <omajid@redhat.com> - 3.1.421-2
d2cf4c
- Update to .NET SDK 3.1.421 and Runtime 3.1.27
d2cf4c
- Resolves: RHBZ#2103273
d2cf4c
22d9fe
* Thu Jun 23 2022 Omair Majid <omajid@redhat.com> - 3.1.420-1
22d9fe
- Update to .NET SDK 3.1.420 and Runtime 3.1.26
22d9fe
- Resolves: RHBZ#2096318
22d9fe
f9eedd
* Mon May 16 2022 Omair Majid <omajid@redhat.com> - 3.1.419-1
f9eedd
- Update to .NET SDK 3.1.419 and Runtime 3.1.25
f9eedd
- Resolves: RHBZ#2081442
f9eedd
74e7fe
* Wed Apr 27 2022 Omair Majid <omajid@redhat.com> - 3.1.418-2
74e7fe
- Bump release
74e7fe
- Related: RHBZ#2072012
74e7fe
74e7fe
* Mon Apr 25 2022 Omair Majid <omajid@redhat.com> - 3.1.418-1
74e7fe
- Update to .NET SDK 3.1.418 and Runtime 3.1.24
74e7fe
- Resolves: RHBZ#2072012
c344d0
937df4
* Tue Jan 25 2022 Omair Majid <omajid@redhat.com> - 3.1.416-4
b9bbf6
- Update to .NET SDK 3.1.416 and Runtime 3.1.22
b9bbf6
- Resolves: RHBZ#2011820
937df4
- Resolves: RHBZ#2003077
937df4
- Resolves: RHBZ#2031428
fbc1d9
2e8232
* Sat Aug 14 2021 Omair Majid <omajid@redhat.com> - 3.1.118-1
2e8232
- Update to .NET SDK 3.1.118 and Runtime 3.1.18
2e8232
- Resolves: RHBZ#1990174
2e8232
b6afdd
* Wed Aug 11 2021 Omair Majid <omajid@redhat.com> - 3.1.117-1
b6afdd
- Update to .NET SDK 3.1.117 and Runtime 3.1.17
b6afdd
- Resolves: RHBZ#1978389
b6afdd
17f982
* Fri Jun 11 2021 Omair Majid <omajid@redhat.com> - 3.1.116-1
17f982
- Update to .NET SDK 3.1.116 and Runtime 3.1.16
17f982
- Resolves: RHBZ#1965499
17f982
- Resolves: RHBZ#1966998
17f982
17f982
* Wed Jun 02 2021 Omair Majid <omajid@redhat.com> - 3.1.115-1
17f982
- Update to .NET SDK 3.1.115 and Runtime 3.1.15
17f982
- Resolves: RHBZ#1954324
17f982
7fddea
* Thu Apr 22 2021 Omair Majid <omajid@redhat.com> - 3.1.114-2
7fddea
- Update to .NET SDK 3.1.114 and Runtime 3.1.14
7fddea
- Add dotnet-sdk-3.1-source-built-artifacts subpackage
7fddea
- Resolves: RHBZ#1946721
43f252
316bca
* Wed Feb 10 2021 Omair Majid <omajid@redhat.com> - 3.1.112-2
316bca
- Update to .NET Core SDK 3.1.112 and Runtime 3.1.12
316bca
- Resolves: RHBZ#1923370
316bca
f78892
* Wed Jan 13 2021 Omair Majid <omajid@redhat.com> - 3.1.111-2
f78892
- Update to .NET Core SDK 3.1.111 and Runtime 3.1.11
f78892
- Resolves: RHBZ#1907627
f78892
131807
* Fri Nov 06 2020 Omair Majid <omajid@redhat.com> - 3.1.110-2
131807
- Update to .NET Core SDK 3.1.110 and Runtime 3.1.10
131807
- Resolves: RHBZ#1893778
131807
df204b
* Tue Oct 13 2020 Omair Majid <omajid@redhat.com> - 3.1.109-3
df204b
- Update to .NET Core SDK 3.1.109 and Runtime 3.1.9
df204b
- Resolves: RHBZ#1886546
df204b
c665e5
* Fri Sep 18 2020 Omair Majid <omajid@redhat.com> - 3.1.108-3
c665e5
- Bump release to preserve upgrade path
c665e5
- Resolves: RHBZ#1874503
c665e5
ea6f56
* Fri Sep 04 2020 Omair Majid <omajid@redhat.com> - 3.1.108-2
ea6f56
- Stop producing netstandard-targeting-pack-2.1
ea6f56
- Resolves: RHBZ#1874503
ea6f56
ea6f56
* Fri Sep 04 2020 Omair Majid <omajid@redhat.com> - 3.1.108-1
ea6f56
- Update to .NET Core SDK 3.1.108 and Runtime 3.1.8
ea6f56
- Resolves: RHBZ#1874503
ea6f56
- Resolves: RHBZ#1873454
ea6f56
4b783a
* Mon Aug 17 2020 Omair Majid <omajid@redhat.com> - 3.1.107-2
4b783a
- Remove subpackages that conflict with dotnet5.0
4b783a
- Resolves: RHBZ#1862590
4b783a
4b783a
* Thu Aug 13 2020 Omair Majid <omajid@redhat.com> - 3.1.107-1
4b783a
- Update to .NET Core SDK 3.1.107 and Runtime 3.1.7
4b783a
- Resolves: RHBZ#1862590
4b783a
- Resolves: RHBZ#1861114
4b783a
749825
* Thu Jul 30 2020 Omair Majid <omajid@redhat.com> - 3.1.106-6
749825
- Remove duplicate LDFLAGS (actually typoed ASMFLAGS) for build
749825
- Resolves: RHBZ#1811776
749825
749825
* Wed Jul 29 2020 Omair Majid <omajid@redhat.com> - 3.1.106-5
749825
- Export ASMFLAGS during build
749825
- Resolves: RHBZ#1811776
749825
ee0a20
* Tue Jul 28 2020 Omair Majid <omajid@redhat.com> - 3.1.106-4
ee0a20
- Enable -fcf-protection
ee0a20
- Resolves: RHBZ#1811776
ee0a20
0137a2
* Mon Jul 27 2020 Omair Majid <omajid@redhat.com> - 3.1.106-3
0137a2
- Improve hardening in core-setup and corefx
0137a2
- Resolves: RHBZ#1811776
0137a2
0137a2
* Fri Jul 24 2020 Omair Majid <omajid@redhat.com> - 3.1.106-2
0137a2
- Improve hardening in CoreCLR
0137a2
- Resolves: RHBZ#1811776
0137a2
0137a2
* Thu Jul 16 2020 Omair Majid <omajid@redhat.com> - 3.1.106-1
0137a2
- Update to .NET Core SDK 3.1.106 and Runtime 3.1.6
0137a2
- Resolves: RHBZ#1853772
0137a2
- Resolves: RHBZ#1856939
0137a2
5eaed3
* Tue Jun 09 2020 Omair Majid <omajid@redhat.com> - 3.1.105-1
5eaed3
- Update to .NET Core Runtime 3.1.5 and SDK 3.1.105
5eaed3
- Resolves: RHBZ#1844491
5eaed3
1c3935
* Mon Jun 01 2020 Omair Majid <omajid@redhat.com> - 3.1.104-3
1c3935
- Update to .NET Core Runtime 3.1.4 and SDK 3.1.104
1c3935
- Resolves: RHBZ#1832685
1c3935
af9764
* Fri Mar 20 2020 Omair Majid <omajid@redhat.com> - 3.1.103-2
af9764
- Update to .NET Core Runtime 3.1.3 and SDK 3.1.103
af9764
- Resolves: RHBZ#1815632
af9764
af9764
* Wed Feb 19 2020 Omair Majid <omajid@redhat.com> - 3.1.102-2
af9764
- Update to .NET Core Runtime 3.1.2 and SDK 3.1.102
af9764
- Resolves: RHBZ#1804452
af9764
af9764
* Thu Jan 23 2020 Omair Majid <omajid@redhat.com> - 3.1.101-2
af9764
- Update to .NET Core Runtime 3.1.1 and SDK 3.1.101
af9764
- Resolves: RHBZ#1789154
af9764
af9764
* Wed Dec 04 2019 Omair Majid <omajid@redhat.com> - 3.1.100-2
af9764
- Remove arm64 variant of the source tarball
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Tue Dec 03 2019 Omair Majid <omajid@redhat.com> - 3.1.100-1
af9764
- Update to .NET Core Runtime 3.1.0 and SDK 3.1.100
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Wed Nov 27 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.7.preview3
af9764
- Extract self-contained executables under $HOME
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Wed Nov 27 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.6.preview3
af9764
- Drop local fixes for cgroupv2
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Mon Nov 18 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.5.preview3
af9764
- Fix permissions on apphost
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Mon Nov 18 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.4.preview3
af9764
- Update to .NET Core Runtime 3.1.0-preview3.19553.2 and SDK 3.1.100-preview3-014645
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Wed Nov 13 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.3
af9764
- Add gating tests
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Wed Nov 13 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.2
af9764
- Initial import from Fedora into RHEL
af9764
- Resolves: RHBZ#1711405
af9764
af9764
* Wed Nov 06 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.2
af9764
- Update to .NET Core 3.1 Preview 2
af9764
af9764
* Wed Oct 30 2019 Omair Majid <omajid@redhat.com> - 3.1.100-0.1
af9764
- Update to .NET Core 3.1 Preview 1
af9764
af9764
* Thu Oct 24 2019 Omair Majid <omajid@redhat.com> - 3.0.100-5
af9764
- Add cgroupv2 support to .NET Core
af9764
af9764
* Wed Oct 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-4
af9764
- Include fix from coreclr for building on Fedora 32
af9764
af9764
* Wed Oct 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-3
af9764
- Harden built binaries to pass annocheck
af9764
af9764
* Fri Oct 11 2019 Omair Majid <omajid@redhat.com> - 3.0.100-2
af9764
- Export DOTNET_ROOT in profile to make apphost lookup work
af9764
af9764
* Fri Sep 27 2019 Omair Majid <omajid@redhat.com> - 3.0.100-1
af9764
- Update to .NET Core Runtime 3.0.0 and SDK 3.0.100
af9764
af9764
* Wed Sep 25 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.18.rc1
af9764
- Update to .NET Core Runtime 3.0.0-rc1-19456-20 and SDK 3.0.100-rc1-014190
af9764
af9764
* Tue Sep 17 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.16.preview9
af9764
- Fix files duplicated between dotnet-apphost-pack-3.0 and dotnet-targeting-pack-3.0
af9764
- Fix dependencies between .NET SDK and the targeting packs
af9764
af9764
* Mon Sep 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.15.preview9
af9764
- Update to .NET Core Runtime 3.0.0-preview 9 and SDK 3.0.100-preview9
af9764
af9764
* Mon Aug 19 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.11.preview8
af9764
- Update to .NET Core Runtime 3.0.0-preview8-28405-07 and SDK
af9764
  3.0.100-preview8-013656
af9764
af9764
* Tue Jul 30 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.9.preview7
af9764
- Update to .NET Core Runtime 3.0.0-preview7-27912-14 and SDK
af9764
  3.0.100-preview7-012821
af9764
af9764
* Fri Jul 26 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.8.preview7
af9764
- Update to .NET Core Runtime 3.0.0-preview7-27902-19 and SDK
af9764
  3.0.100-preview7-012802
af9764
af9764
* Wed Jun 26 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.7.preview6
af9764
- Obsolete dotnet-sdk-3.0.1xx
af9764
- Add supackages for targeting packs
af9764
- Add -fcf-protection to CFLAGS
af9764
af9764
* Wed Jun 26 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.6.preview6
af9764
- Update to .NET Core Runtime 3.0.0-preview6-27804-01 and SDK 3.0.100-preview6-012264
af9764
- Set dotnet installation location in /etc/dotnet/install_location
af9764
- Update targetting packs
af9764
- Install managed symbols
af9764
- Completely conditionalize libunwind bundling
af9764
af9764
* Tue May 07 2019 Omair Majid <omajid@redhat.com> - 3.0.0-0.3.preview4
af9764
- Update to .NET Core 3.0 preview 4
af9764
af9764
* Tue Dec 18 2018 Omair Majid <omajid@redhat.com> - 3.0.0-0.1.preview1
af9764
- Update to .NET Core 3.0 preview 1
af9764
af9764
* Fri Dec 07 2018 Omair Majid <omajid@redhat.com> - 2.2.100
af9764
- Update to .NET Core 2.2.0
af9764
af9764
* Wed Nov 07 2018 Omair Majid <omajid@redhat.com> - 2.2.100-0.2.preview3
af9764
- Update to .NET Core 2.2.0-preview3
af9764
af9764
* Fri Nov 02 2018 Omair Majid <omajid@redhat.com> - 2.1.403-3
af9764
- Add host-fxr-2.1 subpackage
af9764
af9764
* Mon Oct 15 2018 Omair Majid <omajid@redhat.com> - 2.1.403-2
af9764
- Disable telemetry by default
af9764
- Users have to manually export DOTNET_CLI_TELEMETRY_OPTOUT=0 to enable
af9764
af9764
* Tue Oct 02 2018 Omair Majid <omajid@redhat.com> - 2.1.403-1
af9764
- Update to .NET Core Runtime 2.1.5 and SDK 2.1.403
af9764
af9764
* Wed Sep 26 2018 Omair Majid <omajid@redhat.com> - 2.1.402-2
af9764
- Add ~/.dotnet/tools to $PATH to make it easier to use dotnet tools
af9764
af9764
* Thu Sep 13 2018 Omair Majid <omajid@redhat.com> - 2.1.402-1
af9764
- Update to .NET Core Runtime 2.1.4 and SDK 2.1.402
af9764
af9764
* Wed Sep 05 2018 Omair Majid <omajid@redhat.com> - 2.1.401-2
af9764
- Use distro-standard flags when building .NET Core
af9764
af9764
* Tue Aug 21 2018 Omair Majid <omajid@redhat.com> - 2.1.401-1
af9764
- Update to .NET Core Runtime 2.1.3 and SDK 2.1.401
af9764
af9764
* Mon Aug 20 2018 Omair Majid <omajid@redhat.com> - 2.1.302-1
af9764
- Update to .NET Core Runtime 2.1.2 and SDK 2.1.302
af9764
af9764
* Fri Jul 20 2018 Omair Majid <omajid@redhat.com> - 2.1.301-1
af9764
- Update to .NET Core 2.1
af9764
af9764
* Thu May 03 2018 Omair Majid <omajid@redhat.com> - 2.0.7-1
af9764
- Update to .NET Core 2.0.7
af9764
af9764
* Wed Mar 28 2018 Omair Majid <omajid@redhat.com> - 2.0.6-2
af9764
- Enable bash completion for dotnet
af9764
- Remove redundant buildrequires and requires
af9764
af9764
* Wed Mar 14 2018 Omair Majid <omajid@redhat.com> - 2.0.6-1
af9764
- Update to .NET Core 2.0.6
af9764
af9764
* Fri Feb 23 2018 Omair Majid <omajid@redhat.com> - 2.0.5-1
af9764
- Update to .NET Core 2.0.5
af9764
af9764
* Wed Jan 24 2018 Omair Majid <omajid@redhat.com> - 2.0.3-5
af9764
- Don't apply corefx clang warnings fix on clang < 5
af9764
af9764
* Fri Jan 19 2018 Omair Majid <omajid@redhat.com> - 2.0.3-4
af9764
- Add a test script to sanity check debug and symbol info.
af9764
- Build with clang 5.0
af9764
- Make main package real instead of using a virtual provides (see RHBZ 1519325)
af9764
af9764
* Wed Nov 29 2017 Omair Majid <omajid@redhat.com> - 2.0.3-3
af9764
- Add a Provides for 'dotnet'
af9764
- Fix conditional macro
af9764
af9764
* Tue Nov 28 2017 Omair Majid <omajid@redhat.com> - 2.0.3-2
af9764
- Fix build on Fedora 27
af9764
af9764
* Fri Nov 17 2017 Omair Majid <omajid@redhat.com> - 2.0.3-1
af9764
- Update to .NET Core 2.0.3
af9764
af9764
* Thu Oct 19 2017 Omair Majid <omajid@redhat.com> - 2.0.0-4
af9764
- Add a hack to let omnisharp work
af9764
af9764
* Wed Aug 30 2017 Omair Majid <omajid@redhat.com> - 2.0.0-3
af9764
- Add a patch for building coreclr and core-setup correctly on Fedora >= 27
af9764
af9764
* Fri Aug 25 2017 Omair Majid <omajid@redhat.com> - 2.0.0-2
af9764
- Move libicu/libcurl/libunwind requires to runtime package
af9764
- Make sdk depend on the exact version of the runtime package
af9764
af9764
* Thu Aug 24 2017 Omair Majid <omajid@redhat.com> - 2.0.0-1
af9764
- Update to 2.0.0 final release
af9764
af9764
* Wed Jul 26 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.3.preview2
af9764
- Add man pages
af9764
af9764
* Tue Jul 25 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.2.preview2
af9764
- Add Requires on libicu
af9764
- Split into multiple packages
af9764
- Do not repeat first-run message
af9764
af9764
* Fri Jul 21 2017 Omair Majid <omajid@redhat.com> - 2.0.0-0.1.preview2
af9764
- Update to .NET Core 2.0 Preview 2
af9764
af9764
* Thu Mar 16 2017 Nemanja Milošević <nmilosevnm@gmail.com> - 1.1.0-7
af9764
- rebuilt with latest libldb
af9764
* Wed Feb 22 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-6
af9764
- compat-openssl 1.0 for F26 for now
af9764
* Sun Feb 19 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-5
af9764
- Fix wrong commit id's
af9764
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-4
af9764
- Use commit id's instead of branch names
af9764
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-3
af9764
- Improper patch5 fix
af9764
* Sat Feb 18 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-2
af9764
- SPEC cleanup
af9764
- git removal (using all tarballs for reproducible builds)
af9764
- more reasonable versioning
af9764
* Thu Feb 09 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-1
af9764
- Fixed debuginfo going to separate package (Patch1)
af9764
- Added F25/F26 RIL and fixed the version info (Patch2)
af9764
- Added F25/F26 RIL in Microsoft.NETCore.App suported runtime graph (Patch3)
af9764
- SPEC file cleanup
af9764
* Wed Jan 11 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.1.0-0
af9764
- Initial RPM for Fedora 25/26.
af9764