Blame SPECS/dotnet-build-reference-packages.spec

c80dc8
%global debug_package %{nil}
c80dc8
c80dc8
%global commit cd5a8c6f5c67cbaa87755aafa8765e812ceaa2dc
c80dc8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
c80dc8
c80dc8
Name:           dotnet-build-reference-packages
c80dc8
Version:        0
c80dc8
Release:        9.20200608git%{shortcommit}%{?dist}
c80dc8
Summary:        Reference packages needed by the .NET Core SDK build
c80dc8
c80dc8
License:        MIT
c80dc8
URL:            https://github.com/dotnet/source-build-reference-packages
c80dc8
Source0:        https://github.com/dotnet/source-build-reference-packages/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
c80dc8
c80dc8
%if 0%{?fedora} > 32 || 0%{?rhel} > 8
c80dc8
ExclusiveArch:  aarch64 x86_64
c80dc8
%else
c80dc8
ExclusiveArch:  x86_64
c80dc8
%endif
c80dc8
c80dc8
BuildRequires:  dotnet-sdk-3.1
c80dc8
BuildRequires:  dotnet-sdk-3.1-source-built-artifacts
c80dc8
c80dc8
%description
c80dc8
This contains references packages used for building .NET Core.
c80dc8
c80dc8
This is not meant to be used by end-users.
c80dc8
c80dc8
c80dc8
%prep
c80dc8
%setup -q -n source-build-reference-packages-%{commit}
c80dc8
c80dc8
find -name '*.nupkg' -type f -delete
c80dc8
find -name '*.dll' -type f -delete
c80dc8
find -name '*.so' -type f -delete
c80dc8
find -name '*.tar.gz' -type f -delete
c80dc8
c80dc8
%build
c80dc8
find -iname 'nuget.config' -exec echo {} \; -exec cat {} \;
c80dc8
c80dc8
%{_libdir}/dotnet/dotnet --info
c80dc8
c80dc8
./build.sh \
c80dc8
  --with-sdk %{_libdir}/dotnet \
c80dc8
  --with-packages %{_libdir}/dotnet/source-built-artifacts/*.tar.gz
c80dc8
c80dc8
pushd artifacts/reference-packages
c80dc8
tar cvzf Private.SourceBuild.ReferencePackages.%{version}.tar.gz *.nupkg
c80dc8
popd
c80dc8
mv artifacts/reference-packages/Private.SourceBuild.ReferencePackages.%{version}.tar.gz .
c80dc8
c80dc8
%install
c80dc8
mkdir -p %{buildroot}/%{_libdir}/dotnet
c80dc8
cp -a artifacts/reference-packages %{buildroot}/%{_libdir}/dotnet/
c80dc8
cp -a Private.SourceBuild.ReferencePackages.%{version}.tar.gz %{buildroot}/%{_libdir}/dotnet/reference-packages/
c80dc8
c80dc8
c80dc8
%files
c80dc8
%dir %{_libdir}/dotnet/
c80dc8
%{_libdir}/dotnet/reference-packages/
c80dc8
%license LICENSE.txt
c80dc8
c80dc8
c80dc8
%changelog
c80dc8
* Wed May 26 2021 Omair Majid <omajid@redhat.com> - 0-9.20200608gitcd5a8c6
c80dc8
- Add gating tests
c80dc8
c80dc8
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-8.20200608gitcd5a8c6
c80dc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c80dc8
c80dc8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-7.20200608gitcd5a8c6
c80dc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c80dc8
c80dc8
* Tue Jul 21 2020 Omair Majid <omajid@redhat.com> - 0-6.20200608gitcd5a8c6
c80dc8
- Update to upstream commit cd5a8c6
c80dc8
c80dc8
* Mon Jul 20 2020 Omair Majid <omajid@redhat.com> - 0-5.20200608git1b1a695
c80dc8
- Update to upstream commit 1b1a695
c80dc8
c80dc8
* Fri Jun 19 2020 Omair Majid <omajid@redhat.com> - 0-4.20200608git5aaf20d
c80dc8
- Enable building on aarch64
c80dc8
c80dc8
* Mon Jun 08 2020 Chris Rummel <crummel@microsoft.com> - 0-3.20200608git5aaf20d
c80dc8
- Updated to upstream commit 5aaf20d
c80dc8
c80dc8
* Tue Jun 02 2020 Omair Majid <omajid@redhat.com> - 0-3.20200528git6e2aee66e2aee6
c80dc8
- Updated to upstream commit 6e2aee6
c80dc8
c80dc8
* Wed Feb 19 2020 Radka Janekova <rjanekov@redhat.com> - 0-2.20200108git9cc7dad
c80dc8
- Added license reference
c80dc8
* Tue Feb 11 2020 Omair Majid <omajid@redhat.com> - 0-1.20200108git9cc7dad
c80dc8
- Initial package