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

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