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

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