Blame SPECS/dotnet3.1.spec

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