From fec9d752488ba4ab3850f39903452429306fe41a Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 6 Dec 2023 13:11:10 +0300 Subject: [PATCH] import dotnet5.0-build-reference-packages-0-12.20211117git6ce5818.el9 --- .dotnet5.0-build-reference-packages.metadata | 1 + .gitignore | 1 + SPECS/dotnet5.0-build-reference-packages.spec | 113 ++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 .dotnet5.0-build-reference-packages.metadata create mode 100644 .gitignore create mode 100644 SPECS/dotnet5.0-build-reference-packages.spec diff --git a/.dotnet5.0-build-reference-packages.metadata b/.dotnet5.0-build-reference-packages.metadata new file mode 100644 index 0000000..b80c564 --- /dev/null +++ b/.dotnet5.0-build-reference-packages.metadata @@ -0,0 +1 @@ +cdf71c2646e21e155c9501279716b611e1a24ab9 SOURCES/dotnet5.0-build-reference-packages-6ce5818.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe0d050 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dotnet5.0-build-reference-packages-6ce5818.tar.gz diff --git a/SPECS/dotnet5.0-build-reference-packages.spec b/SPECS/dotnet5.0-build-reference-packages.spec new file mode 100644 index 0000000..bfab783 --- /dev/null +++ b/SPECS/dotnet5.0-build-reference-packages.spec @@ -0,0 +1,113 @@ +%global debug_package %{nil} + +%global commit 6ce5818b1c1828ccdc8ac63d460d029c6391a401 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: dotnet5.0-build-reference-packages +Version: 0 +Release: 12.20211117git%{shortcommit}%{?dist} +Summary: Reference packages needed by the .NET 5.0 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 + +%if 0%{?fedora} > 32 || 0%{?rhel} > 8 +ExclusiveArch: aarch64 x86_64 +%else +ExclusiveArch: x86_64 +%endif + +BuildRequires: dotnet-sdk-5.0 +BuildRequires: dotnet-sdk-5.0-source-built-artifacts + +# The files of dotnet-build-reference-packages and this package +# conflict. They install to the same location and cointain a shared +# (sub)set of files. These packages aren't really meant to be used by +# end-users and a single .NET build will not require both. +Conflicts: dotnet-build-reference-packages + +%description +This contains references packages used for building .NET 5. + +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 {} \; + +%{_libdir}/dotnet/dotnet --info + +./build.sh \ + --with-sdk %{_libdir}/dotnet \ + --with-packages %{_libdir}/dotnet/source-built-artifacts/*.tar.gz + +pushd artifacts/reference-packages +tar cvzf Private.SourceBuild.ReferencePackages.%{version}.tar.gz *.nupkg +popd +mv artifacts/reference-packages/Private.SourceBuild.ReferencePackages.%{version}.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 Dec 06 2023 Arkady L. Shane - 0-12.20211117git6ce5818 +- Rebuilt for MSVSphere 9.3 + +* Wed Nov 17 2021 Omair Majid - 0-12.20211117git6ce5818 +- Update to upstream commit 6ce5818 +- Resolves: RHBZ#2024345 + +* Wed Jun 09 2021 Omair Majid - 0-11.20210607git5f10a4b +- Add Conflicts for dotnet-build-reference-packages +- Resolves: RHBZ#1949251 + +* Mon Jun 07 2021 Omair Majid - 0-10.20210607git5f10a4b +- Update to upstream commit 5f10a4b +- Resolves: RHBZ#1949251 + +* Thu Jan 07 2021 Omair Majid - 0-9.20201223gite1bdd33 +- Update to upstream commit f07c2d3 + +* Tue Dec 08 2020 Omair Majid - 0-8.20201208gitf07c2d3 +- Update to upstream commit f07c2d3 + +* Mon Jul 27 2020 Fedora Release Engineering - 0-7.20200608gitcd5a8c6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Omair Majid - 0-6.20200608gitcd5a8c6 +- Update to upstream commit cd5a8c6 + +* Mon Jul 20 2020 Omair Majid - 0-5.20200608git1b1a695 +- Update to upstream commit 1b1a695 + +* Fri Jun 19 2020 Omair Majid - 0-4.20200608git5aaf20d +- Enable building on aarch64 + +* Mon Jun 08 2020 Chris Rummel - 0-3.20200608git5aaf20d +- Updated to upstream commit 5aaf20d + +* Tue Jun 02 2020 Omair Majid - 0-3.20200528git6e2aee66e2aee6 +- Updated to upstream commit 6e2aee6 + +* Wed Feb 19 2020 Radka Janekova - 0-2.20200108git9cc7dad +- Added license reference +* Tue Feb 11 2020 Omair Majid - 0-1.20200108git9cc7dad +- Initial package