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

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