summaryrefslogtreecommitdiff
path: root/packaging/coreclr.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/coreclr.spec')
-rw-r--r--packaging/coreclr.spec41
1 files changed, 34 insertions, 7 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 4768692368..6ce61d43d3 100644
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -23,7 +23,7 @@ Source1000: downloaded_files.tar.gz
Source1001: %{name}.manifest
Source1002: libicu.tar.gz
Source1003: dep_libs.tar.gz
-# Gbp-Ignore-Patches: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+# Gbp-Ignore-Patches: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Patch0: Add-project.assets.json-files.patch
Patch1: Add-Tizen-RuntimeID-case.patch
Patch2: Change-O3-build-in-clang3.8.patch
@@ -37,10 +37,12 @@ Patch9: Set-local-variables-as-addr-exposed-if-it-appears-in.patch
Patch10: Revert-unnecessary-changes.patch
Patch11: Add-skipped-testcase-superpmi.patch
Patch12: tizen-toolchain-support.patch
-Patch13: poison1.patch
-Patch14: poison2.patch
-Patch15: 0001-Fix-CreateDump-related-undefined-reference-on-non-AM.patch
-Patch16: 0001-ARM-Linux-Enable-DacStackWalk.patch
+Patch13: poison1.patch
+Patch14: poison2.patch
+Patch15: 0001-Fix-CreateDump-related-undefined-reference-on-non-AM.patch
+Patch16: 0001-ARM-Linux-Enable-DacStackWalk.patch
+Patch17: profiling.patch
+
ExcludeArch: aarch64
BuildRequires: python
@@ -81,10 +83,8 @@ BuildRequires: gettext-tools
BuildRequires: libopenssl-devel
# C include headers
BuildRequires: libstdc++-devel
-%ifarch x86_64
BuildRequires: pkgconfig(lttng-ust)
%endif
-%endif
%if 0%{skipmscorlib}
%else
@@ -120,6 +120,13 @@ Requires: coreclr
%description test
Unit Test objs
+%package devel
+Summary: Dotnet Core Development package
+Requires: coreclr
+
+%description devel
+Headers and static libraries
+
%package -n mscorlib
Summary: Core Library for MS .NET
Requires: coreclr
@@ -148,6 +155,7 @@ cp %{SOURCE1001} .
%patch14 -p1
%patch15 -p1
%patch16 -p1
+%patch17 -p1
%if 0%{skipmscorlib}
%else
@@ -284,9 +292,18 @@ cp %{_reldir}/libmscordaccore.so %{buildroot}%{_datadir}/%{netcoreappdir}
cp %{_reldir}/libmscordbi.so %{buildroot}%{_datadir}/%{netcoreappdir}
cp %{_reldir}/libsos.so %{buildroot}%{_datadir}/%{netcoreappdir}
cp %{_reldir}/libsosplugin.so %{buildroot}%{_datadir}/%{netcoreappdir}
+cp %{_reldir}/libcoreclrtraceptprovider.so %{buildroot}%{_datadir}/%{netcoreappdir}
cp %{_reldir}/System.Globalization.Native.so %{buildroot}%{_datadir}/%{netcoreappdir}
ln -sf ../%{netcoreappdir}/corerun %{buildroot}%{_datadir}/%{dotnetdir}/corerun
+# .NET Core Headers and static libraries
+mkdir -p %{buildroot}%{_datadir}/%{netcoreappdir}/src/pal/src/
+cp -rf %{_reldir}/inc %{buildroot}%{_datadir}/%{netcoreappdir}/
+cp -rf src/inc %{buildroot}%{_datadir}/%{netcoreappdir}/src/
+cp -rf src/pal/inc %{buildroot}%{_datadir}/%{netcoreappdir}/src/pal/
+cp -rf %{_reldir}/lib %{buildroot}%{_datadir}/%{netcoreappdir}
+cp -rf src/pal/src/include %{buildroot}%{_datadir}/%{netcoreappdir}/src/pal/src
+
# make link for .NET CoreOverlay
ln -sf ../%{netcoreappdir}/corerun %{buildroot}%{_datadir}/%{tizennetdir}
ln -sf ../%{netcoreappdir}/libclrjit.so %{buildroot}%{_datadir}/%{tizennetdir}
@@ -296,6 +313,7 @@ ln -sf ../%{netcoreappdir}/libmscordaccore.so %{buildroot}%{_datadir}/%{tizennet
ln -sf ../%{netcoreappdir}/libmscordbi.so %{buildroot}%{_datadir}/%{tizennetdir}
ln -sf ../%{netcoreappdir}/libsos.so %{buildroot}%{_datadir}/%{tizennetdir}
ln -sf ../%{netcoreappdir}/libsosplugin.so %{buildroot}%{_datadir}/%{tizennetdir}
+ln -sf ../%{netcoreappdir}/libcoreclrtraceptprovider.so %{buildroot}%{_datadir}/%{tizennetdir}
ln -sf ../%{netcoreappdir}/System.Globalization.Native.so %{buildroot}%{_datadir}/%{tizennetdir}
# extra
@@ -343,6 +361,15 @@ ln -sf ../%{netcoreappdir}/SOS.NETCore.dll %{buildroot}%{_datadir}/%{tizenne
%manifest %{name}.manifest
%dir %{_datadir}/%{dotnettestdir}
%{_datadir}/%{dotnettestdir}/*
+
+%files devel
+%manifest %{name}.manifest
+%dir %{_datadir}/%{netcoreappdir}/inc
+%dir %{_datadir}/%{netcoreappdir}/lib
+%dir %{_datadir}/%{netcoreappdir}/src
+%{_datadir}/%{netcoreappdir}/inc/*
+%{_datadir}/%{netcoreappdir}/lib/*
+%{_datadir}/%{netcoreappdir}/src/*
%endif
%if 0%{skipmscorlib}