From 2164691f6b0c25eb2eaa960653ab266a700bb76b Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Feb 14 2017 23:44:12 +0000 Subject: Use LICENSE as a source artifact, and mark all licenses as %license --- diff --git a/dotnetcore.spec b/dotnetcore.spec index 427f0da..e19aadf 100644 --- a/dotnetcore.spec +++ b/dotnetcore.spec @@ -35,6 +35,7 @@ BuildRequires: zlib-devel # Everything is build from git, this archive only contains the RHEL SRPM with payload Source0: dotnetcore.tar.gz +Source1: https://raw.githubusercontent.com/dotnet/core-setup/release/%{version}/LICENSE # This patch is for including debug info into shared object files. That info is then stripped into a separate package. # Upstream: Not in the upstream yet @@ -126,8 +127,9 @@ install -dm 755 %{buildroot}%{_libdir}/%{name}/ cd core/tools/dotnet-bootstrap/fedora.%{fedora}-x64-dotnet/bin/ cp -a dotnet sdk host shared ThirdPartyNotices.txt %{buildroot}%{_libdir}/%{name}/ -# Get the proper LICENSE file, ignore the bundled one -curl -sSL -o %{buildroot}%{_libdir}/%{name}/LICENSE https://raw.githubusercontent.com/dotnet/core-setup/release/%{version}/LICENSE +# Use the upstream license file. +# https://github.com/dotnet/core-setup/issues/676 +cp -a %SOURCE1 %{buildroot}%{_libdir}/%{name}/ mkdir -p %{buildroot}%{_bindir} ln -s %{_libdir}/%{name}/dotnet %{buildroot}/%{_bindir}/ @@ -135,6 +137,8 @@ ln -s %{_libdir}/%{name}/dotnet %{buildroot}/%{_bindir}/ %files %{_libdir}/%{name} %{_bindir}/* +%license %{_libdir}/%{name}/LICENSE +%license %{_libdir}/%{name}/ThirdPartyNotices.txt %changelog * Thu Feb 09 2017 Nemanja Milosevic