Blame SPECS/rh-dotnetcore10.spec

af36dc
%global scl_name_prefix rh-
af36dc
%global scl_name_base dotnetcore
af36dc
%global scl_name_version 10
af36dc
%global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}
af36dc
af36dc
%scl_package %scl
af36dc
af36dc
%global install_scl 1
af36dc
af36dc
# do not produce empty debuginfo package
af36dc
%global debug_package %{nil}
af36dc
af36dc
Summary: Package that installs %scl
af36dc
Name: %scl_name
af36dc
Version: 1.0
af36dc
Release: 4%{?dist}
af36dc
License: MIT
af36dc
af36dc
BuildRequires: scl-utils-build
af36dc
BuildRequires: python
af36dc
af36dc
%if 0%{?install_scl}
af36dc
Requires: %{scl_prefix}dotnetcore
af36dc
%endif
af36dc
af36dc
%description
af36dc
This is the main package for %scl Software Collection.
af36dc
af36dc
%package runtime
af36dc
Summary: Package that handles %scl Software Collection.
af36dc
Requires: scl-utils
af36dc
af36dc
%description runtime
af36dc
Package shipping essential scripts to work with %scl Software Collection.
af36dc
af36dc
%package build
af36dc
Summary: Package shipping basic build configuration
af36dc
Requires: scl-utils-build
af36dc
af36dc
%description build
af36dc
Package shipping essential configuration macros to build %scl Software Collection.
af36dc
af36dc
%prep
af36dc
%setup -c -T
af36dc
af36dc
%build
af36dc
# nothing to do
af36dc
af36dc
%install
af36dc
%scl_install
af36dc
af36dc
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
af36dc
export PATH=%{_bindir}\${PATH:+:\${PATH}}
af36dc
export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
af36dc
export MANPATH=%{_mandir}:\$MANPATH
af36dc
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}
af36dc
export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}}
af36dc
# dotnet reports metrics to some remote server by default. disable that.
af36dc
export DOTNET_CLI_TELEMETRY_OPTOUT=true
af36dc
EOF
af36dc
af36dc
# scl doesn't include this directory
af36dc
mkdir -p %{buildroot}%{_scl_root}%{python_sitelib}
af36dc
mkdir -p %{buildroot}%{_libdir}/pkgconfig
af36dc
mkdir -p %{buildroot}%{_scl_root}/usr/lib/python2.7
af36dc
af36dc
%files
af36dc
af36dc
%files runtime -f filelist
af36dc
%scl_files
af36dc
%dir %{_scl_root}%{python_sitelib}
af36dc
%dir %{_scl_root}/usr/lib/python2.7
af36dc
af36dc
%files build
af36dc
%{_root_sysconfdir}/rpm/macros.%{scl}-config
af36dc
af36dc
%changelog
af36dc
* Wed Jun 15 2016 Severin Gehwolf <sgehwolf@redhat.com> 1.0-4
af36dc
- Add BR python for proper python_sitelib expansion.
af36dc
af36dc
* Mon Jun 13 2016 Severin Gehwolf <sgehwolf@redhat.com> 1.0-3
af36dc
- Enable SCL-ized python libs.
af36dc
af36dc
* Thu Apr 28 2016 Omair Majid <omajid@redhat.com> 1.0-2
af36dc
- Disable telemetry reporting
af36dc
af36dc
* Mon Apr 18 2016 Omair Majid <omajid@redhat.com> 1.0-1
af36dc
- Package name change
af36dc
af36dc
* Fri Mar 11 2016 Omair Majid <omajid@redhat.com> 1.0-1
af36dc
- Initial package