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