Blame SPECS/rh-dotnet22.spec

0780a6
%global scl_name_prefix rh-
0780a6
%global scl_name_base dotnet
0780a6
%global scl_name_version 22
0780a6
0780a6
%global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}
0780a6
%scl_package %scl
0780a6
0780a6
%global nfsmoutnable 1
0780a6
0780a6
# For testing this RPM by itself.
0780a6
%global install_scl 1
0780a6
0780a6
# Do not produce empty debuginfo package
0780a6
%global debug_package %{nil}
0780a6
0780a6
Name: %scl_name
0780a6
Version: 2.2
edf2aa
Release: 4%{?dist}
0780a6
Summary: Package that installs %scl
0780a6
License: MIT
0780a6
0780a6
BuildRequires:  scl-utils-build
0780a6
%if 0%{?install_scl}
0780a6
Requires:       %{scl_prefix}dotnet
0780a6
%endif
0780a6
0780a6
%description
0780a6
This is the main package for %scl Software Collection.
0780a6
0780a6
0780a6
%package runtime
0780a6
Summary: Package that handles %scl Software Collection.
0780a6
Requires: scl-utils
0780a6
0780a6
%description runtime
0780a6
Package shipping essential scripts to work with %scl Software Collection.
0780a6
0780a6
0780a6
%package build
0780a6
Summary: Package shipping basic build configuration
0780a6
Requires: scl-utils-build
0780a6
0780a6
%description build
0780a6
Package shipping essential configuration macros to build %scl Software Collection.
0780a6
0780a6
0780a6
%prep
0780a6
%setup -c -T
0780a6
0780a6
%build
0780a6
# Nothing to do
0780a6
0780a6
%install
0780a6
%scl_install
0780a6
0780a6
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
0780a6
export PATH="%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}}\${HOME:+:\${HOME}/.dotnet/tools}"
0780a6
export CPATH="%{_includedir}\${CPATH:+:\${CPATH}}"
0780a6
export LD_LIBRARY_PATH="%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}"
0780a6
export MANPATH="%{_mandir}:\${MANPATH:-}"
0780a6
export PKG_CONFIG_PATH="%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}"
0780a6
export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}}
0780a6
export XDG_DATA_DIRS=%{_datadir}:\${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
0780a6
0780a6
# Opt out of telemetry collection by default
0780a6
export DOTNET_CLI_TELEMETRY_OPTOUT=true
0780a6
0780a6
# Set the latest versions of ASP.NET Core packages to be picked up when
0780a6
# building using the older SDKS.
edf2aa
export LatestPatchVersionForAspNetCoreApp2_2=2.2.3
edf2aa
export LatestPatchVersionForAspNetCoreAll2_2=2.2.3
0780a6
EOF
0780a6
0780a6
0780a6
%files
0780a6
0780a6
%files runtime -f filelist
0780a6
%scl_files
0780a6
0780a6
%files build
0780a6
%{_root_sysconfdir}/rpm/macros.%{scl}-config
0780a6
0780a6
0780a6
%changelog
edf2aa
* Wed Mar 06 2019 Omair Majid <omajid@redhat.com> - 2.2-4
edf2aa
- Export environment variables to set ASP.NET Core versions to 2.2.3
edf2aa
- Resolves: RHBZ#1685718
edf2aa
edf2aa
* Wed Jan 30 2019 Omair Majid <omajid@redhat.com> - 2.2-3
edf2aa
- Export environment variables to set ASP.NET Core versions to 2.2.2
edf2aa
- Resolves: RHBZ#1671056
edf2aa
fa3f21
* Mon Dec 17 2018 Omair Majid <omajid@redhat.com> - 2.2-2
fa3f21
- Export environment variables to set ASP.NET Core versions to 2.2.1
fa3f21
- Resolves: RHBZ#1660223
fa3f21
0780a6
* Fri Nov 16 2018 Omair Majid <omajid@redhat.com> - 2.2-1
0780a6
- New spec file based on .NET Core 2.1
0780a6
- Resolves: RHBZ#1649584