%global debug_package %{nil} %global commit 9cc7dad6c4d9302c00803df5dea41c8a7a59e047 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: dotnet-build-reference-packages Version: 0 Release: 2.20200108git%{shortcommit}%{?dist} Summary: Reference packages needed by the .NET Core SDK build License: MIT URL: https://github.com/dotnet/source-build-reference-packages Source0: https://github.com/dotnet/source-build-reference-packages/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: dotnet-sdk-3.1 BuildRequires: dotnet-sdk-3.1-source-built-artifacts %description This contains references packages used for building .NET Core. This is not meant to be used by end-users. %prep %setup -q -n source-build-reference-packages-%{commit} find -name '*.nupkg' -type f -delete find -name '*.dll' -type f -delete find -name '*.so' -type f -delete find -name '*.tar.gz' -type f -delete %build find -iname 'nuget.config' -exec echo {} \; -exec cat {} \; ./build.sh \ --with-sdk %{_libdir}/dotnet \ --with-packages %{_libdir}/dotnet/source-built-artifacts/*.tar.gz %install mkdir -p %{buildroot}/%{_libdir}/dotnet cp -a artifacts/reference-packages %{buildroot}/%{_libdir}/dotnet/ cp -a Private.SourceBuild.ReferencePackages.%{version}.tar.gz %{buildroot}/%{_libdir}/dotnet/reference-packages/ %files %dir %{_libdir}/dotnet/ %{_libdir}/dotnet/reference-packages/ %license LICENSE.txt %changelog * Wed Feb 19 2020 Radka Janekova - 0-2.20200108git9cc7dad - Added license reference * Tue Feb 11 2020 Omair Majid - 0-1.20200108git9cc7dad - Initial package