Blame SPECS/rh-dotnet50.spec

b11313
%global scl_name_prefix rh-
b11313
%global scl_name_base dotnet
b11313
%global scl_name_version 50
b11313
b11313
%global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}
b11313
%scl_package %scl
b11313
b11313
%global nfsmoutnable 1
b11313
b11313
# For testing this RPM by itself.
b11313
%global install_scl 1
b11313
b11313
# Do not produce empty debuginfo package
b11313
%global debug_package %{nil}
b11313
b11313
Name: %scl_name
b11313
Version: 5.0
b11313
Release: 2%{?dist}
b11313
Summary: Package that installs %scl
b11313
License: MIT
b11313
b11313
BuildRequires:  scl-utils-build
b11313
%if 0%{?install_scl}
b11313
Requires:       %{scl_prefix}dotnet
b11313
%endif
b11313
b11313
%description
b11313
This is the main package for %scl Software Collection.
b11313
b11313
b11313
%package runtime
b11313
Summary: Package that handles %scl Software Collection.
b11313
Requires: scl-utils
b11313
b11313
%description runtime
b11313
Package shipping essential scripts to work with %scl Software Collection.
b11313
b11313
b11313
%package build
b11313
Summary: Package shipping basic build configuration
b11313
Requires: scl-utils-build
b11313
b11313
%description build
b11313
Package shipping essential configuration macros to build %scl Software Collection.
b11313
b11313
b11313
%prep
b11313
%setup -c -T
b11313
b11313
%build
b11313
# Nothing to do
b11313
b11313
%install
b11313
%scl_install
b11313
b11313
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
b11313
export PATH="%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}}\${HOME:+:\${HOME}/.dotnet/tools}"
b11313
export CPATH="%{_includedir}\${CPATH:+:\${CPATH}}"
b11313
export LD_LIBRARY_PATH="%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}"
b11313
export MANPATH="%{_mandir}:\${MANPATH:-}"
b11313
export PKG_CONFIG_PATH="%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}"
b11313
export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}}
b11313
export XDG_DATA_DIRS=%{_datadir}:\${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
b11313
b11313
# Set DOTNET_ROOT to fix apphost lookup
b11313
export DOTNET_ROOT="%{_libdir}/dotnet"
b11313
b11313
EOF
b11313
b11313
b11313
%files
b11313
b11313
%files runtime -f filelist
b11313
%scl_files
b11313
b11313
%files build
b11313
%{_root_sysconfdir}/rpm/macros.%{scl}-config
b11313
b11313
b11313
%changelog
b11313
* Tue Dec 01 2020 Omair Majid <omajid@redhat.com> - 5.0-2
b11313
- Rely on the .NET build itself to have disabled telemetry by default
b11313
- Resolves: RHBZ#1879711
b11313
b11313
* Fri Sep 18 2020 Omair Majid <omajid@redhat.com> - 5.0-1
b11313
- Update for .NET 5.0
b11313
- Resolves: RHBZ#1879711
b11313
b11313
* Sun Dec 1 2019 Omair Majid <omajid@redhat.com> - 3.1-3
b11313
- Fix escaping in DOTNET_BUNDLE_EXTRACT_BASE_DIR
b11313
- Resolves: RHBZ#1767056
b11313
b11313
* Sun Dec 1 2019 Omair Majid <omajid@redhat.com> - 3.1-2
b11313
- Set DOTNET_BUNDLE_EXTRACT_BASE_DIR
b11313
- Resolves: RHBZ#1767056
b11313
b11313
* Mon Nov 18 2019 Omair Majid <omajid@redhat.com> - 3.1-1
b11313
- New spec file based on .NET Core 3.0
b11313
- Resolves: RHBZ#1767056