Blame SPECS/dotnet5.0-build-reference-packages.spec

7e23b6
%global debug_package %{nil}
7e23b6
58e58b
%global commit 6ce5818b1c1828ccdc8ac63d460d029c6391a401
7e23b6
%global shortcommit %(c=%{commit}; echo ${c:0:7})
7e23b6
7e23b6
Name:           dotnet5.0-build-reference-packages
7e23b6
Version:        0
58e58b
Release:        13.20211119git%{shortcommit}%{?dist}
7e23b6
Summary:        Reference packages needed by the .NET 5.0 SDK build
7e23b6
7e23b6
License:        MIT
7e23b6
URL:            https://github.com/dotnet/source-build-reference-packages
7e23b6
Source0:        https://github.com/dotnet/source-build-reference-packages/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
7e23b6
7e23b6
%if 0%{?fedora} > 32 || 0%{?rhel} > 8
7e23b6
ExclusiveArch:  aarch64 x86_64
7e23b6
%else
7e23b6
ExclusiveArch:  x86_64
7e23b6
%endif
7e23b6
7e23b6
BuildRequires:  dotnet-sdk-5.0
7e23b6
BuildRequires:  dotnet-sdk-5.0-source-built-artifacts
7e23b6
7e23b6
# The files of dotnet-build-reference-packages and this package
7e23b6
# conflict. They install to the same location and cointain a shared
7e23b6
# (sub)set of files. These packages aren't really meant to be used by
7e23b6
# end-users and a single .NET build will not require both.
7e23b6
Conflicts:      dotnet-build-reference-packages
7e23b6
7e23b6
%description
7e23b6
This contains references packages used for building .NET 5.
7e23b6
7e23b6
This is not meant to be used by end-users.
7e23b6
7e23b6
7e23b6
%prep
7e23b6
%setup -q -n source-build-reference-packages-%{commit}
7e23b6
7e23b6
find -name '*.nupkg' -type f -delete
7e23b6
find -name '*.dll' -type f -delete
7e23b6
find -name '*.so' -type f -delete
7e23b6
find -name '*.tar.gz' -type f -delete
7e23b6
7e23b6
%build
7e23b6
find -iname 'nuget.config' -exec echo {} \; -exec cat {} \;
7e23b6
7e23b6
%{_libdir}/dotnet/dotnet --info
7e23b6
7e23b6
./build.sh \
7e23b6
  --with-sdk %{_libdir}/dotnet \
7e23b6
  --with-packages %{_libdir}/dotnet/source-built-artifacts/*.tar.gz
7e23b6
7e23b6
pushd artifacts/reference-packages
7e23b6
tar cvzf Private.SourceBuild.ReferencePackages.%{version}.tar.gz *.nupkg
7e23b6
popd
7e23b6
mv artifacts/reference-packages/Private.SourceBuild.ReferencePackages.%{version}.tar.gz .
7e23b6
7e23b6
%install
7e23b6
mkdir -p %{buildroot}/%{_libdir}/dotnet
7e23b6
cp -a artifacts/reference-packages %{buildroot}/%{_libdir}/dotnet/
7e23b6
cp -a Private.SourceBuild.ReferencePackages.%{version}.tar.gz %{buildroot}/%{_libdir}/dotnet/reference-packages/
7e23b6
7e23b6
7e23b6
%files
7e23b6
%dir %{_libdir}/dotnet/
7e23b6
%{_libdir}/dotnet/reference-packages/
7e23b6
%license LICENSE.txt
7e23b6
7e23b6
7e23b6
%changelog
58e58b
* Sat Nov 20 2021 Omair Majid <omajid@redhat.com> - 0-13.20211119git6ce5818
58e58b
- Update to upstream commit 6ce5818
58e58b
- Resolves: RHBZ#2024343
58e58b
7e23b6
* Wed Jun 09 2021 Omair Majid <omajid@redhat.com> - 0-11.20210607git5f10a4b
7e23b6
- Add Conflicts for dotnet-build-reference-packages
7e23b6
- Resolves: RHBZ#1949251
7e23b6
7e23b6
* Mon Jun 07 2021 Omair Majid <omajid@redhat.com> - 0-10.20210607git5f10a4b
7e23b6
- Update to upstream commit 5f10a4b
7e23b6
- Resolves: RHBZ#1949251
7e23b6
7e23b6
* Thu Jan 07 2021 Omair Majid <omajid@redhat.com> - 0-9.20201223gite1bdd33
7e23b6
- Update to upstream commit f07c2d3
7e23b6
7e23b6
* Tue Dec 08 2020 Omair Majid <omajid@redhat.com> - 0-8.20201208gitf07c2d3
7e23b6
- Update to upstream commit f07c2d3
7e23b6
7e23b6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-7.20200608gitcd5a8c6
7e23b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7e23b6
7e23b6
* Tue Jul 21 2020 Omair Majid <omajid@redhat.com> - 0-6.20200608gitcd5a8c6
7e23b6
- Update to upstream commit cd5a8c6
7e23b6
7e23b6
* Mon Jul 20 2020 Omair Majid <omajid@redhat.com> - 0-5.20200608git1b1a695
7e23b6
- Update to upstream commit 1b1a695
7e23b6
7e23b6
* Fri Jun 19 2020 Omair Majid <omajid@redhat.com> - 0-4.20200608git5aaf20d
7e23b6
- Enable building on aarch64
7e23b6
7e23b6
* Mon Jun 08 2020 Chris Rummel <crummel@microsoft.com> - 0-3.20200608git5aaf20d
7e23b6
- Updated to upstream commit 5aaf20d
7e23b6
7e23b6
* Tue Jun 02 2020 Omair Majid <omajid@redhat.com> - 0-3.20200528git6e2aee66e2aee6
7e23b6
- Updated to upstream commit 6e2aee6
7e23b6
7e23b6
* Wed Feb 19 2020 Radka Janekova <rjanekov@redhat.com> - 0-2.20200108git9cc7dad
7e23b6
- Added license reference
7e23b6
* Tue Feb 11 2020 Omair Majid <omajid@redhat.com> - 0-1.20200108git9cc7dad
7e23b6
- Initial package