|
|
593a89 |
# Avoid provides/requires from private libraries
|
|
|
593a89 |
%global privlibs libhostfxr
|
|
|
593a89 |
%global privlibs %{privlibs}|libclrjit
|
|
|
593a89 |
%global privlibs %{privlibs}|libcoreclr
|
|
|
593a89 |
%global privlibs %{privlibs}|libcoreclrtraceptprovider
|
|
|
593a89 |
%global privlibs %{privlibs}|libdbgshim
|
|
|
593a89 |
%global privlibs %{privlibs}|libhostpolicy
|
|
|
593a89 |
%global privlibs %{privlibs}|libmscordaccore
|
|
|
593a89 |
%global privlibs %{privlibs}|libmscordbi
|
|
|
593a89 |
%global privlibs %{privlibs}|libsos
|
|
|
593a89 |
%global privlibs %{privlibs}|libsosplugin
|
|
|
593a89 |
%global __provides_exclude ^(%{privlibs})\\.so
|
|
|
593a89 |
%global __requires_exclude ^(%{privlibs})\\.so
|
|
|
593a89 |
|
|
|
593a89 |
# Filter flags not supported by clang/dotnet:
|
|
|
593a89 |
# -fstack-clash-protection is not supported by clang
|
|
|
593a89 |
# -specs= is not supported by clang
|
|
|
593a89 |
%global dotnet_cflags %(echo %optflags | sed -e 's/-fstack-clash-protection//' | sed -re 's/-specs=[^ ]*//g')
|
|
|
593a89 |
%if 0%{?fedora} < 30
|
|
|
593a89 |
# on Fedora 29, clang, -fcf-protection and binutils interact in strage ways leading to
|
|
|
593a89 |
# "<corrupt x86 feature size: 0x8>" errors.
|
|
|
593a89 |
%global dotnet_cflags %(echo %dotnet_cflags | sed -e 's/ -fcf-protection//')
|
|
|
593a89 |
%endif
|
|
|
593a89 |
%global dotnet_ldflags %(echo %{__global_ldflags} | sed -re 's/-specs=[^ ]*//g')
|
|
|
593a89 |
|
|
|
4344fd |
%global host_version 3.0.3
|
|
|
4344fd |
%global runtime_version 3.0.3
|
|
|
593a89 |
%global aspnetcore_runtime_version %{runtime_version}
|
|
|
4344fd |
%global sdk_version 3.0.103
|
|
|
4344fd |
%global templates_version %(echo %{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')
|
|
|
593a89 |
|
|
|
593a89 |
%global host_rpm_version %{host_version}
|
|
|
593a89 |
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
|
|
|
593a89 |
%global runtime_rpm_version %{runtime_version}
|
|
|
593a89 |
%global sdk_rpm_version %{sdk_version}
|
|
|
593a89 |
|
|
|
593a89 |
%if 0%{?fedora} || 0%{?rhel} < 8
|
|
|
593a89 |
%global use_bundled_libunwind 0
|
|
|
593a89 |
%else
|
|
|
593a89 |
%global use_bundled_libunwind 1
|
|
|
593a89 |
%endif
|
|
|
593a89 |
|
|
|
593a89 |
%if 0%{?fedora}
|
|
|
593a89 |
%global runtime_id fedora.%{fedora}-x64
|
|
|
593a89 |
%else
|
|
|
593a89 |
%if 0%{?centos}
|
|
|
593a89 |
%global runtime_id centos.%{centos}-x64
|
|
|
593a89 |
%else
|
|
|
593a89 |
%global runtime_id rhel.%{rhel}-x64
|
|
|
593a89 |
%endif
|
|
|
593a89 |
%endif
|
|
|
593a89 |
|
|
|
593a89 |
Name: dotnet3.0
|
|
|
593a89 |
Version: %{sdk_rpm_version}
|
|
|
4344fd |
Release: 1%{?dist}
|
|
|
593a89 |
Summary: .NET Core CLI tools and runtime
|
|
|
593a89 |
License: MIT and ASL 2.0 and BSD
|
|
|
593a89 |
URL: https://github.com/dotnet/
|
|
|
593a89 |
|
|
|
593a89 |
# The source is generated on a Fedora box via:
|
|
|
593a89 |
# ./build-dotnet-tarball dotnet-v%%{runtime_version}
|
|
|
e1118f |
Source0: dotnet-v%{sdk_version}-SDK.tar.gz
|
|
|
593a89 |
Source1: check-debug-symbols.py
|
|
|
593a89 |
Source2: dotnet.sh
|
|
|
593a89 |
|
|
|
4344fd |
Patch1: shared-compilation.patch
|
|
|
4344fd |
|
|
|
593a89 |
Patch100: corefx-optflags-support.patch
|
|
|
593a89 |
|
|
|
593a89 |
Patch300: core-setup-do-not-strip.patch
|
|
|
593a89 |
|
|
|
593a89 |
Patch500: cli-telemetry-optout.patch
|
|
|
593a89 |
|
|
|
593a89 |
ExclusiveArch: x86_64
|
|
|
593a89 |
|
|
|
593a89 |
BuildRequires: clang
|
|
|
593a89 |
BuildRequires: cmake
|
|
|
593a89 |
# Bootstrap SDK needs OpenSSL 1.0 to run, but we can build and then
|
|
|
593a89 |
# run with either OpenSSL 1.0 or 1.1
|
|
|
593a89 |
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
|
|
|
593a89 |
BuildRequires: compat-openssl10
|
|
|
593a89 |
%endif
|
|
|
593a89 |
BuildRequires: coreutils
|
|
|
593a89 |
BuildRequires: git
|
|
|
593a89 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
593a89 |
BuildRequires: glibc-langpack-en
|
|
|
593a89 |
%endif
|
|
|
593a89 |
BuildRequires: hostname
|
|
|
593a89 |
BuildRequires: krb5-devel
|
|
|
593a89 |
BuildRequires: libcurl-devel
|
|
|
593a89 |
BuildRequires: libicu-devel
|
|
|
593a89 |
%if ! %{use_bundled_libunwind}
|
|
|
593a89 |
BuildRequires: libunwind-devel
|
|
|
593a89 |
%endif
|
|
|
593a89 |
BuildRequires: libuuid-devel
|
|
|
593a89 |
BuildRequires: lldb-devel
|
|
|
593a89 |
BuildRequires: llvm
|
|
|
593a89 |
BuildRequires: lttng-ust-devel
|
|
|
593a89 |
BuildRequires: openssl-devel
|
|
|
593a89 |
BuildRequires: python3
|
|
|
593a89 |
BuildRequires: strace
|
|
|
593a89 |
BuildRequires: tar
|
|
|
593a89 |
BuildRequires: zlib-devel
|
|
|
593a89 |
|
|
|
593a89 |
%description
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, macOS and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core contains a runtime conforming to .NET Standards a set of
|
|
|
593a89 |
framework libraries, an SDK containing compilers and a 'dotnet'
|
|
|
593a89 |
application to drive everything.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{sdk_rpm_version}
|
|
|
593a89 |
Summary: .NET Core CLI tools and runtime
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-sdk-3.0%{?_isa} >= %{sdk_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, macOS and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core contains a runtime conforming to .NET Standards a set of
|
|
|
593a89 |
framework libraries, an SDK containing compilers and a 'dotnet'
|
|
|
593a89 |
application to drive everything.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet-host
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{host_rpm_version}
|
|
|
593a89 |
Summary: .NET command line launcher
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet-host
|
|
|
593a89 |
The .NET Core host is a command line program that runs a standalone
|
|
|
593a89 |
.NET core application or launches the SDK.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet-hostfxr-3.0
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{host_rpm_version}
|
|
|
593a89 |
Summary: .NET Core command line host resolver
|
|
|
593a89 |
|
|
|
593a89 |
# Theoretically any version of the host should work. But lets aim for the one
|
|
|
593a89 |
# provided by this package, or from a newer version of .NET Core
|
|
|
593a89 |
Requires: dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet-hostfxr-3.0
|
|
|
593a89 |
The .NET Core host resolver contains the logic to resolve and select
|
|
|
593a89 |
the right version of the .NET Core SDK or runtime to use.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet-runtime-3.0
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{runtime_rpm_version}
|
|
|
593a89 |
Summary: NET Core 3.0 runtime
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-hostfxr-3.0%{?_isa} >= %{host_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
# libicu is dlopen()ed
|
|
|
593a89 |
Requires: libicu
|
|
|
593a89 |
|
|
|
593a89 |
%if %{use_bundled_libunwind}
|
|
|
593a89 |
Provides: bundled(libunwind) = 1.3
|
|
|
593a89 |
%endif
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet-runtime-3.0
|
|
|
593a89 |
The .NET Core runtime contains everything needed to run .NET Core applications.
|
|
|
593a89 |
It includes a high performance Virtual Machine as well as the framework
|
|
|
593a89 |
libraries used by .NET Core applications.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n aspnetcore-runtime-3.0
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{aspnetcore_runtime_rpm_version}
|
|
|
593a89 |
Summary: ASP.NET Core 3.0 runtime
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-runtime-3.0%{?_isa} >= %{runtime_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
%description -n aspnetcore-runtime-3.0
|
|
|
593a89 |
The ASP.NET Core runtime contains everything needed to run .NET Core
|
|
|
593a89 |
web applications. It includes a high performance Virtual Machine as
|
|
|
593a89 |
well as the framework libraries used by .NET Core applications.
|
|
|
593a89 |
|
|
|
593a89 |
ASP.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform web applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet-templates-3.0
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{sdk_rpm_version}
|
|
|
593a89 |
Summary: .NET Core 3.0 templates
|
|
|
593a89 |
|
|
|
593a89 |
# Theoretically any version of the host should work. But lets aim for the one
|
|
|
593a89 |
# provided by this package, or from a newer version of .NET Core
|
|
|
593a89 |
Requires: dotnet-host%{?_isa} >= %{host_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet-templates-3.0
|
|
|
593a89 |
This package contains templates used by the .NET Core SDK.
|
|
|
593a89 |
|
|
|
593a89 |
ASP.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform web applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%package -n dotnet-sdk-3.0
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{sdk_rpm_version}
|
|
|
593a89 |
Summary: .NET Core 3.0 Software Development Kit
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-runtime-3.0%{?_isa} >= %{runtime_rpm_version}-%{release}
|
|
|
593a89 |
Requires: aspnetcore-runtime-3.0%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-apphost-pack-3.0%{?_isa} >= %{runtime_rpm_version}-%{release}
|
|
|
593a89 |
Requires: dotnet-targeting-pack-3.0%{?_isa} >= %{runtime_rpm_version}-%{release}
|
|
|
593a89 |
Requires: aspnetcore-targeting-pack-3.0%{?_isa} >= %{aspnetcore_runtime_rpm_version}-%{release}
|
|
|
593a89 |
Requires: netstandard-targeting-pack-2.1%{?_isa} >= %{sdk_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-templates-3.0%{?_isa} >= %{sdk_rpm_version}-%{release}
|
|
|
593a89 |
|
|
|
593a89 |
%description -n dotnet-sdk-3.0
|
|
|
593a89 |
The .NET Core SDK is a collection of command line applications to
|
|
|
593a89 |
create, build, publish and run .NET Core applications.
|
|
|
593a89 |
|
|
|
593a89 |
.NET Core is a fast, lightweight and modular platform for creating
|
|
|
593a89 |
cross platform applications that work on Linux, Mac and Windows.
|
|
|
593a89 |
|
|
|
593a89 |
It particularly focuses on creating console applications, web
|
|
|
593a89 |
applications and micro-services.
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%define dotnet_targeting_pack() %{expand:
|
|
|
593a89 |
%package -n %{1}
|
|
|
593a89 |
|
|
|
593a89 |
Version: %{2}
|
|
|
593a89 |
Summary: Targeting Pack for %{3} %{4}
|
|
|
593a89 |
|
|
|
593a89 |
Requires: dotnet-host
|
|
|
593a89 |
|
|
|
593a89 |
%description -n %{1}
|
|
|
593a89 |
This package provides a targetting pack for %{3} %{4}
|
|
|
593a89 |
that allows developers to compile against and target %{3} %{4}
|
|
|
593a89 |
applications using the .NET Core SDK.
|
|
|
593a89 |
|
|
|
593a89 |
%files -n %{1}
|
|
|
593a89 |
%dir %{_libdir}/dotnet/packs
|
|
|
593a89 |
%{_libdir}/dotnet/packs/%{5}
|
|
|
593a89 |
}
|
|
|
593a89 |
|
|
|
593a89 |
%dotnet_targeting_pack dotnet-apphost-pack-3.0 %{runtime_rpm_version} Microsoft.NETCore.App 3.0 Microsoft.NETCore.App.Host.%{runtime_id}
|
|
|
593a89 |
%dotnet_targeting_pack dotnet-targeting-pack-3.0 %{runtime_rpm_version} Microsoft.NETCore.App 3.0 Microsoft.NETCore.App.Ref
|
|
|
593a89 |
%dotnet_targeting_pack aspnetcore-targeting-pack-3.0 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 3.0 Microsoft.AspNetCore.App.Ref
|
|
|
593a89 |
%dotnet_targeting_pack netstandard-targeting-pack-2.1 %{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%prep
|
|
|
e1118f |
%setup -q -n dotnet-v%{sdk_version}-SDK
|
|
|
593a89 |
|
|
|
593a89 |
# Fix bad hardcoded path in build
|
|
|
4344fd |
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/core-setup.*/src/corehost/common/pal.unix.cpp
|
|
|
593a89 |
|
|
|
593a89 |
# Disable warnings
|
|
|
593a89 |
sed -i 's|skiptests|skiptests ignorewarnings|' repos/coreclr.proj
|
|
|
593a89 |
|
|
|
4344fd |
%patch1 -p1
|
|
|
4344fd |
|
|
|
593a89 |
pushd src/corefx.*
|
|
|
593a89 |
%patch100 -p1
|
|
|
593a89 |
popd
|
|
|
593a89 |
|
|
|
593a89 |
pushd src/coreclr.*
|
|
|
593a89 |
popd
|
|
|
593a89 |
|
|
|
4344fd |
pushd src/core-setup.*
|
|
|
593a89 |
%patch300 -p1
|
|
|
593a89 |
popd
|
|
|
593a89 |
|
|
|
4344fd |
pushd src/cli.*
|
|
|
593a89 |
%patch500 -p1
|
|
|
593a89 |
popd
|
|
|
593a89 |
|
|
|
593a89 |
# If CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE is misisng, add it back
|
|
|
593a89 |
grep CLR_CMAKE_USE_SYSTEM_LIBUNWIND repos/coreclr.proj || \
|
|
|
593a89 |
sed -i 's|\$(BuildArguments) </BuildArguments>|$(BuildArguments) cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE</BuildArguments>|' repos/coreclr.proj
|
|
|
593a89 |
|
|
|
593a89 |
%if %{use_bundled_libunwind}
|
|
|
593a89 |
sed -i 's|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=FALSE|' repos/coreclr.proj
|
|
|
593a89 |
%endif
|
|
|
593a89 |
|
|
|
593a89 |
cat source-build-info.txt
|
|
|
593a89 |
|
|
|
593a89 |
find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%build
|
|
|
593a89 |
cat /etc/os-release
|
|
|
593a89 |
|
|
|
593a89 |
export CFLAGS="%{dotnet_cflags}"
|
|
|
593a89 |
export CXXFLAGS="%{dotnet_cflags}"
|
|
|
593a89 |
export LDFLAGS="%{dotnet_ldflags}"
|
|
|
593a89 |
|
|
|
593a89 |
VERBOSE=1 ./build.sh \
|
|
|
593a89 |
/v:n \
|
|
|
593a89 |
/p:LogVerbosity=n \
|
|
|
593a89 |
/p:MinimalConsoleLogOutput=false \
|
|
|
593a89 |
/p:ContinueOnPrebuiltBaselineError=true \
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%install
|
|
|
593a89 |
install -dm 0755 %{buildroot}%{_libdir}/dotnet
|
|
|
593a89 |
ls bin/x64/Release
|
|
|
593a89 |
tar xf bin/x64/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/
|
|
|
593a89 |
|
|
|
593a89 |
# Install managed symbols
|
|
|
593a89 |
tar xf bin/x64/Release/runtime/dotnet-runtime-symbols-%{runtime_version}-%{runtime_id}.tar.gz \
|
|
|
593a89 |
-C %{buildroot}/%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}/
|
|
|
593a89 |
|
|
|
e1118f |
# Fix permissions on files
|
|
|
593a89 |
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
|
|
|
593a89 |
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
|
|
|
593a89 |
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
|
|
|
593a89 |
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
|
|
|
593a89 |
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.0.0/data/PackageOverrides.txt
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.0.0/data/FrameworkList.xml
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Ref/3.0.0/data/PlatformManifest.txt
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/ref/netcoreapp3.0/*.xml
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/data/PackageOverrides.txt
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/data/FrameworkList.xml
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/data/PlatformManifest.txt
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/Microsoft.AspNetCore.App.Ref/3.0.1/Debug/netstandard2.0/Microsoft.AspNetCore.App.Ref.assets.cache
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/obj/Microsoft.AspNetCore.App.Ref.csproj.nuget.cache
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/obj/Microsoft.AspNetCore.App.Ref.csproj.nuget.dgspec.json
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.0.1/obj/project.assets.json
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/PackageOverrides.txt
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/FrameworkList.xml
|
|
|
e1118f |
chmod 0755 %{buildroot}/%{_libdir}/dotnet/sdk/%{sdk_version}/AppHostTemplate/apphost
|
|
|
e1118f |
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/apphost
|
|
|
e1118f |
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/libnethost.so
|
|
|
e1118f |
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/nethost.h
|
|
|
e1118f |
|
|
|
593a89 |
|
|
|
593a89 |
# Add ~/.dotnet/tools to $PATH for all users
|
|
|
593a89 |
install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
593a89 |
install %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
593a89 |
|
|
|
593a89 |
install -dm 0755 %{buildroot}/%{_datadir}/bash-completion/completions
|
|
|
593a89 |
# dynamic completion needs the file to be named the same as the base command
|
|
|
4344fd |
install src/cli.*/scripts/register-completions.bash %{buildroot}/%{_datadir}/bash-completion/completions/dotnet
|
|
|
593a89 |
|
|
|
593a89 |
# TODO: the zsh completion script needs to be ported to use #compdef
|
|
|
593a89 |
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
|
|
|
593a89 |
#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet
|
|
|
593a89 |
|
|
|
593a89 |
install -dm 0755 %{buildroot}%{_bindir}
|
|
|
593a89 |
ln -s %{_libdir}/dotnet/dotnet %{buildroot}%{_bindir}/
|
|
|
593a89 |
|
|
|
593a89 |
install -dm 0755 %{buildroot}%{_mandir}/man1/
|
|
|
593a89 |
find -iname 'dotnet*.1' -type f -exec cp {} %{buildroot}%{_mandir}/man1/ \;
|
|
|
593a89 |
|
|
|
593a89 |
echo "%{_libdir}/dotnet" >> install_location
|
|
|
593a89 |
install -dm 0755 %{buildroot}%{_sysconfdir}/dotnet
|
|
|
593a89 |
install install_location %{buildroot}%{_sysconfdir}/dotnet/
|
|
|
593a89 |
|
|
|
593a89 |
# Check debug symbols in all elf objects. This is not in %%check
|
|
|
593a89 |
# because native binaries are stripped by rpm-build after %%install.
|
|
|
593a89 |
# So we need to do this check earlier.
|
|
|
593a89 |
echo "Testing build results for debug symbols..."
|
|
|
593a89 |
%{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%check
|
|
|
593a89 |
%{buildroot}%{_libdir}/dotnet/dotnet --info
|
|
|
593a89 |
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet
|
|
|
593a89 |
# empty package useful for dependencies
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet-host
|
|
|
593a89 |
%dir %{_libdir}/dotnet
|
|
|
593a89 |
%{_libdir}/dotnet/dotnet
|
|
|
593a89 |
%dir %{_libdir}/dotnet/host
|
|
|
593a89 |
%dir %{_libdir}/dotnet/host/fxr
|
|
|
593a89 |
%{_bindir}/dotnet
|
|
|
593a89 |
%license %{_libdir}/dotnet/LICENSE.txt
|
|
|
593a89 |
%license %{_libdir}/dotnet/ThirdPartyNotices.txt
|
|
|
593a89 |
%doc %{_mandir}/man1/dotnet*.1.gz
|
|
|
593a89 |
%{_sysconfdir}/profile.d/dotnet.sh
|
|
|
593a89 |
%{_sysconfdir}/dotnet
|
|
|
593a89 |
%dir %{_datadir}/bash-completion
|
|
|
593a89 |
%dir %{_datadir}/bash-completion/completions
|
|
|
593a89 |
%{_datadir}/bash-completion/completions/dotnet
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet-hostfxr-3.0
|
|
|
593a89 |
%dir %{_libdir}/dotnet/host/fxr
|
|
|
593a89 |
%{_libdir}/dotnet/host/fxr/%{host_version}
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet-runtime-3.0
|
|
|
593a89 |
%dir %{_libdir}/dotnet/shared
|
|
|
593a89 |
%dir %{_libdir}/dotnet/shared/Microsoft.NETCore.App
|
|
|
593a89 |
%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}
|
|
|
593a89 |
|
|
|
593a89 |
%files -n aspnetcore-runtime-3.0
|
|
|
593a89 |
%dir %{_libdir}/dotnet/shared
|
|
|
593a89 |
%dir %{_libdir}/dotnet/shared/Microsoft.AspNetCore.App
|
|
|
593a89 |
%{_libdir}/dotnet/shared/Microsoft.AspNetCore.App/%{aspnetcore_runtime_version}
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet-templates-3.0
|
|
|
593a89 |
%dir %{_libdir}/dotnet/templates
|
|
|
593a89 |
%{_libdir}/dotnet/templates/%{templates_version}
|
|
|
593a89 |
|
|
|
593a89 |
%files -n dotnet-sdk-3.0
|
|
|
593a89 |
%dir %{_libdir}/dotnet/sdk
|
|
|
593a89 |
%{_libdir}/dotnet/sdk/%{sdk_version}
|
|
|
593a89 |
%dir %{_libdir}/dotnet/packs
|
|
|
593a89 |
|
|
|
593a89 |
%changelog
|
|
|
4344fd |
* Thu Mar 05 2020 Omair Majid <omajid@redhat.com> - 3.0.103-1
|
|
|
4344fd |
- Update to .NET Core Runtime 3.0.3 and SDK 3.0.103
|
|
|
4344fd |
- Resolves: RHBZ#1806956
|
|
|
4344fd |
|
|
|
e1118f |
* Wed Jan 15 2020 Omair Majid <omajid@redhat.com> - 3.0.102-2
|
|
|
e1118f |
- Fix prebuilts leaking into the final build
|
|
|
e1118f |
- Fix regressions in binary hardering
|
|
|
e1118f |
- Resolves: RHBZ#1788171
|
|
|
e1118f |
|
|
|
e1118f |
* Fri Jan 10 2020 Omair Majid <omajid@redhat.com> - 3.0.102-1
|
|
|
e1118f |
- Update to .NET Core Runtime 3.0.2 and SDK 3.0.102
|
|
|
e1118f |
- Resolves: RHBZ#1788171
|
|
|
e1118f |
|
|
|
593a89 |
* Fri Sep 27 2019 Omair Majid <omajid@redhat.com> - 3.0.100-1
|
|
|
593a89 |
- Update to .NET Core Runtime 3.0.0 and SDK 3.0.100
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Thu Sep 19 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.8.preview9
|
|
|
593a89 |
- Fix package descriptions for targeting packs
|
|
|
593a89 |
- Re-generate tarball to remove samples
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Mon Sep 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.7.preview9
|
|
|
593a89 |
- Do not put targeting pack files in mutliple packages
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Mon Sep 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.6.preview9
|
|
|
593a89 |
- Update source archive
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Mon Sep 16 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.5.preview9
|
|
|
593a89 |
- Fix package Require versions on dotnet-sdk-3.0
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Sun Sep 15 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.4.preview9
|
|
|
593a89 |
- Update to .NET Core 3.0 Preview 9
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|
|
|
593a89 |
|
|
|
593a89 |
* Fri Aug 09 2019 Omair Majid <omajid@redhat.com> - 3.0.100-0.3.preview7
|
|
|
593a89 |
- Initial import into RHEL 8
|
|
|
593a89 |
- Resolves: RHBZ#1711403
|