Blame dotnet5.0.spec

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